I am creating a list of 3D object Queue with flexscript using createinstance() function. For each of it I want to set trigger on enter and exit while I create them to avoid adding them later manually. How can I achieve it?
I am creating a list of 3D object Queue with flexscript using createinstance() function. For each of it I want to set trigger on enter and exit while I create them to avoid adding them later manually. How can I achieve it?
Alternatively create a template with activated triggers and use this later. You can also put customized objects in a custom library and load it later to a new model.
perhaps you can edit a property table or do a query about a property table to insert missing triggers.
Use setproperty() to add triggers by code. This will work in future versions also.
Object Queue =Model.find("Queue1"); string y ="Object current = param(1);";//code as string Queue.setProperty("Triggers.OnEntry",y);
16 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