Dynamo version
1.2, 1.3, 2.0
Operating system
Windows 7, Windows 10
What did you do?
wrote a class definition in a code block, such as :
Also tried it with [InternalClass] and [InternalClassAttribute] attributes on the class.
However, saving that class definition to a whatever.ds file and loading that in through File > Import happily registers the class and enables it to be further used in DS code blocks.
Also tried
Disabled the line in Dynamo source code that checks for the class keyword in code blocks and halts evaluation and rebuilt project, still won't let me use it. Not sure what the issue is?
What did you expect to see?
Class definition to work.
What did you see instead?
Code block node reports classes are not supported in code block node.

(in Dynamo 2.0, disregard actual class code which might be incorrect)
Dynamo version
1.2, 1.3, 2.0
Operating system
Windows 7, Windows 10
What did you do?
wrote a class definition in a code block, such as :
Also tried it with
[InternalClass]and[InternalClassAttribute]attributes on the class.However, saving that class definition to a
whatever.dsfile and loading that in through File > Import happily registers the class and enables it to be further used in DS code blocks.Also tried
Disabled the line in Dynamo source code that checks for the
classkeyword in code blocks and halts evaluation and rebuilt project, still won't let me use it. Not sure what the issue is?What did you expect to see?
Class definition to work.
What did you see instead?
Code block node reports

classesare not supported in code block node.(in Dynamo 2.0, disregard actual class code which might be incorrect)