CreateProperty of type real or expression

Via Python you can create real and expression properties with the following code:

prop = comp.createProperty(VC_REAL,“KSID”)
prop = comp.createProperty(VC_EXPRESSION,“KSID”)

For C# you need to define a type of type System.Type and there is no real or expression type.

What is the correct way to create real or expression properties in .Net?

Thank you for your help!

You can use typeof(double) and typeof(IExpressionProperty)

1 Like