Wrap element (ToDSType(Boolean)) after unwraping in python

Hi Guys,

I am a newbie in writing Dynamo code and Python. Hope you guys would be able to help me.

I am trying to use the custom node StructuralFraming.DisallowJoins . The problem is when I pass on the elements created from Dynamo node, they need to be “unwrapped” so they can be used with Revit API. I need those elements to be remained as “Dynamo elements” (that means when I rerun the Dynamo script (changing sizes or locations of elements) the objects are not duplicated by new objects).

So I added 2 new lines 41 and 42 in the attached script to keep them as Dynamo element using the ToDSType extension. But it does not seem to work. Can someone help please ?

1 Like

Hi,
Try putting it in “TRY and EXCEPT” format.

Let us know if it worked.