question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Jason Lightfoot edited

How to add objects group in custom library?

Hi Team,

I want to add group of objects in custom library but it is only copying single object "boundary wall" to library not complete group.

How to add complete group in library?

1662735772048.png

Thank you!

FlexSim 21.1.5
groupobjectscustom library
1662735772048.png (281.6 KiB)
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

·
Sebastián Cañas avatar image
1 Like"
Sebastián Cañas answered Jason Lightfoot edited

Hi @Ankur A3 ,
If you want to add all of the objects as one in the custom library, you should move those objects to a container object (such as a plane object) and then try to add the container object to the custom library. I recommend you to read this part of the manual "Using Containers as a Model Management Tool" and also this "Custom Libraries" to learn how to do it.

· 3
5 |100000

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

Ankur A3 avatar image Ankur A3 commented ·

Hi @Sebastián Cañas,

Thank you for your answer!

Once objects are dropped from custom library instead of standard library, it is not available in respective group. I need to add it manually in group every time to make model work.

1662957245483.png

Is there any better way to do it?

Thank you!

0 Likes 0 ·
1662957245483.png (115.5 KiB)
Sebastián Cañas avatar image Sebastián Cañas Ankur A3 commented ·
Hi @Ankur A3,

Sure! There should be a way to do it, however, I suggest you post this as a different question since it's different from the original one. This way we can keep things more organized. Remember reading the best practices for using this site.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Ankur A3 commented ·

If the objects in the custom library are in the group/lists then the created instances will be added when you drop a copy of the collection/cell into the model (hit reset to check the lists entries). Note that if they are in the list and not in the model - this is also likely to be a problem.

However if you create a new model or load the library, then the objects do not know in which groups they belong. This is because FlexSim objects are not transportable - in that not self-contained and rely on other objects to define their behaviour/ properties - in this case the coupling to Group object. In other cases it's the membership of a Timetable, MTBF/MTTR, or the need for specific parameters in the parameters table. etc...

One way to get around this oversight is to list which groups the object is a member as a label on the object and then use the onDrop or onCreate behavior to reinstate both the group, if it does not already exist, and the object's membership.

Another way is to just assert the membership during the reset based on the label that lists groups of which it is a member.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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