V1.3 to v2.0 lacing trouble

revit
#1

Hello,

I’m having a trouble understanding what’s wrong with the following line of code in my .dyn:

getParam = allElements<1>.GetParameterValueByName(param<2>);

The error prompt is:
“Warning: Internal error, please report: Dereferencing a non-pointer.”

I believe that the issue lies somewhere in the upgrade from v1.3 to v2.0.

I tried to read up on and understand the updates from v1.3 to v2.0, but its jargon to me, and will take a lot of time to make sense of it all.

Please assist if possible.

Workspace image export below:

Thank you,
Connor

0 Likes

#2

You are missing the input for AllElements, there is nothing going into it so the de-referencing a non-pointer means you are referencing nothing.

0 Likes

#3

Whoops, forgot to link Elements to allElements.

But thank you for elaborating.

0 Likes

#4

No problem, happens to the best of us. :wink: Typically when I see that error, it means either I am forgetting to plug in an input or there is a null somewhere in my lists so that is what you should double check.

2 Likes