I have a problem about Code block



i got a problem about code block it doesnt work

The error say…
Error: Sheet is a class name, can’t be used as a variable.

i didnt understand it

i use dynamo


If you want variables, change it a bit:


Most common revit objects are built in a class wich need to have a name.

Those names are RESERVED to make sure commands called under the hood or custom blocks using those classes work properly.

As Johannes said, change them a bit, as they are case sensitive. I usually add a reference after it to know what is going on like: View_Filtered or Sheet_Series100. works a bit like comments in a code.


oh i see thanks