I want to return the group the object is in. I have a lot of groups so to use the "is member" command is my last option. But is there any other way to return the group the object is in?
I want to return the group the object is in. I have a lot of groups so to use the "is member" command is my last option. But is there any other way to return the group the object is in?
Hi Pinakin, hope you are doing well!
this worked for me:
Variant myGroups = myObj.getProperty("Groups");
It gives you an array with the names of each group the object is in.
Additionally, the AllGroups property will return an array of all the groups that the object is in directly and indirectly. If you aren't using nested groups then Groups and AllGroups will return the same thing. See this question for more details, Property Tables columns "Groups" vs "AllGroups"
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