question

mike E avatar image
2 Likes"
mike E asked anthony.johnson edited

Template inheritance and User Libraries

I have a few questions about template inheritance in FlexSim 2021 Update 2:

If you create a template object, can it be put into the user library?

If so, if you edit the properties of the library object are they automatically inherited by the instances in the model?

Can the parent object itself be a child of another object such that some of the inheritance cascades from the grandparent... all whilst in the library?

If not, what do you envisage will be the methodology (e.g. having a set of templates in the model which are not attached and represent an internal “template library” within the model).

Other (please specify)
Other
templatesuser libraries
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered anthony.johnson commented

Hi Mike!

I think the answer will be 'yes' but with possibly with some caveats if the developers haven't yet embraced the idea that the templates could be stored outside the traditional model areas.

Yes the object template can be in a user library, but since you want that template relationship to persist with the model, you may want to move the user library into the model when you save it (use the modellibraries triggers).

Yes, then editing the user library objects properties will propogate to the inherited instances, if they're edited in an Ortho view or GUIs or directly via the setProperty method.

Yes cascading inheritance will work.

The other question is what if someone gives you a newer library of templates that updates the old ones - that might involve some scripting to transfer the template references over - but should all be possible, even if it's not automatic. As far as I'm aware there's no versioning for such a template/library system yet. @anthony.johnson may know otherwise on that or any of the points you mention here.


· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.