Set Crop Region Visible or Not Visible For Section

Hello Guys,

I have created dynamo script to ‘Turn On/Off’ crop region visibility for sections.

But it is giving ‘warning: Internal error, please report: Dereferencing a non-pointer’ at node ‘Element.SetParameterByName’.

Could you please advise me?

FYI: I am using Revit 2015 & Dynamo 1.2 version.

Thank you for your help.

Set Crop Region Visible or Not Visible For Section.dyn (14.1 KB)

value should be 1 and 0

Hello Lucifer,
Thank you for your advice.
I tried your solution but no luck.

should be feeding element not value

Hello Lucifer,
Thank you for quick response.
I tried but showing same warning.

show your current graph

Hello Lucifer,

My Apologies.
Initially i misunderstood, Again i tried your solution & it is working properly.

Thank you again for your help.

See below image without warning.


Set Crop Region Visible or Not Visible For Section_Warning Resolved.dyn (9.1 KB)