Hi, when i add an object from a custom user library I want to add it to a process flow Attached Objects. I can do that on reset by checking the object class. Is there a way to this to in a flexscript block to avoid the manual task?
Hi, when i add an object from a custom user library I want to add it to a process flow Attached Objects. I can do that on reset by checking the object class. Is there a way to this to in a flexscript block to avoid the manual task?
21.2 Update:
There's now a ProcessFlows property that can be used with the Object.setProperty() method.
obj.setProperty("ProcessFlows", "ObjectFlow"); // Attach obj by name reference obj.setProperty("ProcessFlows", processFlow); // Attach obj by node reference
*Note that this method will detach the object from any other flows it may be attached to that aren't passed into the setProperty method.
You can attach the object to multiple flows by passing in an array:
obj.setProperty("ProcessFlows", ["ObjectFlow", "ObjectFlow2"]);
You can also pass a null value to detach the object from all flows:
obj.setProperty("ProcessFlows", 0);
Original Answer:
function_s(processFlow, "attachObject", obj)
where processFlow is a pointer to your process flow object and obj is the object you want to attach.
@Matthew Gillespie : Is there a way to detach an object from process flow using flexscript similar to above?
7 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