Replies: 1 comment 3 replies
-
Hello Sebastian, The idea would be to define the default value of the property as "EndWindingCirc( )" (in the .csv), then in the init the default value would be -1 and in the setter if we have -1 we set EndWindingCirc( ) (to avoid sharing the same object in all instances). Best regards, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello @BonneelP,
is it possible to set set a class property of type X to a default value of x. With x is an inherited class of X.
Less abstract: I have created an end_winding prop. on Winding. Prop. type is abstract class EndWinding. Now I would like to set this prop. to EndWindingCirc (inherited by EndWinding) by default.
How could I do that?
Best regards, Sebastian
Beta Was this translation helpful? Give feedback.
All reactions