Unwrap Element syntax

Hey guys,

I am starting to work in Dynamo and working towards trying to get my own python code blocks working – however, I have run into a small issue here. I can’t seem to get my UnwrapElement(); command to work properly.

It seems to me that maybe I am forgetting to import a package but I keep running into the following error when trying to make imports:

Error: openparen expected.

I have some experience with Python which is why I started diving in, but admittedly my skills are somewhat rusty so I can’t put my finger on what the issue with my Syntax is.

Thanks for the help!

Import RevitNodes library:

# Import ToDSType(bool) extension method
import Revit

Awesome, thanks.
although I am getting a different error now when I put this into the top of the code:

Error: EOF Expected

It looks as if you are trying to use a import method from python within a code block that will use designscript therefore if you are trying to code in python you need to use one of the two python nodes.


Oh that looks to be correct, thank you.