Primer 2 Question

Hi, I’m trying to follow along with Dynamo - Primer 2 - chapter: Coding in Dynamo - section: Geometry with Design Script - Subsection: Design Script Geometry Basics. I’ve included an image of the the code that I copied from the primer and pasted into a Code Block. For some reason it does not generate the Loft Surface.

The warnings are:

  1. Multiple definitions for ‘Surface’ are found as
    Autodesk.DesignScript.Geometry.Surface
    AnalyticalAutomation.Geometry.Surface

  2. Internal Error, please report:
    Dereferencing a non-pointer
    DereferencingNonPointer.html

Any help would be appreciated, Thanks.

When using Designscript, you could have multiple packages loaded in addition to the OOTB Dynamo packages and each has a definition for creating the same thing (case in point Surfaces). Dynamo doesn’t know which definition you want to use, so you have to be explicit and declare the definition. Another example is Points, as shown below. The second error is that it’s trying to process a blank input or a null reference.

1 Like

Thanks so much.

1 Like