Hi I am not sure if Object.create() can be used for object from the user library. Anyone can advise me? From the forum, it looks like createinstance or createcopy is still the approach.
David
Hi I am not sure if Object.create() can be used for object from the user library. Anyone can advise me? From the forum, it looks like createinstance or createcopy is still the approach.
David
As far as I'm aware Object.create() can only create objects that are present in the library folder of the main tree and does so by referencing their class name.
Apart from the node location, an object from a user library will likely just be a customized version of some default object and as such still belong to the same class.
So no, I don't think Object.create() can be used for user library objects.
It could however be used of objects that are part of custom modules that implement their own class.
15 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved