question

Marc H avatar image
0 Likes"
Marc H asked Ben Wilson commented

Can I use objects from the Healthcare library in my manufacturing library

I would like to use some of the objects in the Healthcare library in my model where I am creating a manufacturing facility. Items like the computer at the desk, phones, check in kiosk, wall panels. Do I have to create a custom library?

FlexSim 20.2.3
flexsim 20.2.3custom user library
· 1
5 |100000

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

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Marc H, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot commented
I don't see why not if you just want the model to have richer visuals.

Depending on how much you add and the 3D complexity of the factory, you might consider adding them to a group "Props" so you can turn off the unnecessary visuals easily when they're not needed.


· 2
5 |100000

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

Marc H avatar image Marc H commented ·

Thanks Jason, I'm relatively new to FlexSim. Can you add a little more detail on how to add them to a 'group'? Or is there a tutorial that would explain the process?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Marc H commented ·

There are a number of options for grouping to do what you want .

You can drag them on to a plane (fixed at a location) and then set the plane to show or not show its contents. Note they don't have to stay withing the plane visually once you've created an object on the plane.

In the properties of the plane there will be a button under Visuals called 'More Visuals' which looks like this - where you can see the option for 'Show Contents' on the right.

If you move the plane around your objects will move with it, so you can also choose to enable 'Protected' here which will prevent you from moving it.


The other options is to add them to a group as documented here. At the moment there's no group hide/show button so you'd need to run ascript to show or hide them. Here's an example that toggles the group "Props" on and off every time it is run:

Array props=Group("Props").toFlatArray();     //GET ARRAY OF GROUP OBJECTS
if (props.length>0) { 
    int showstate=switch_hideshape(props[1],-1);    //FIND THE CURRENT SHOW STATE
    for (int n=props.length;n>0;n--)                 //LOOP THROUGH THE OBJECTS
        switch_hideshape(props[n],!showstate);       //TOGGLE THE STATE 
    repaintallactive();                              //IF ADDING TO A BUTTON ON THE TOOLBAR NEED THIS
}

repaing

You could also add this to a user button on the Global Preferences->Customize Toolbar section:

1 Like 1 ·
1607347989217.png (46.6 KiB)
1607347967496.png (12.9 KiB)
1607349409839.png (10.8 KiB)

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.