question

Carlos Reyes avatar image
0 Likes"
Carlos Reyes asked Carlos Reyes commented

User libraries with robots

Hi everyone!

I have two questions about user libraries...

Context:

I have the next robot station in my model:

1646700177517.png

It is a simple process, when a box arrives to de robot station, the robot executes an animation.

First question:

The problem is when I add the plane to a new user library

*The plane contains the robot, the cube (that is really a processor), the queue and the mesh

If I add the plane to a new user library and I drag the plane form the user library to my model (wich already have the original robot station), when I run the model I get the following message: 1646700486250.png

1646700680872.png

Add if I just copy and then paste the plane in my model it works and I don't get the error message:

1646700755568.png


But I supposed that copy and paste is the same than adding the plane from an user library, what is wrong?

I want to use the library so my client can put Robot stations in new models just by opening an user library.

Second question:

Also, do you know how to save my drawings within my user library? Otherwise when I drag mi plane from my user library into a new model FlexSim does not find the files:

1646701047832.png

I saw this answer but still I can't do it:https://answers.flexsim.com/questions/34638/possiblity-of-saving-packedmedia-node-into-a-user.html

Can you explain me?

Here is the model: ModeloCeldas2.fsm

Thank you a lot!!!!!



FlexSim 22.0.0
robotuser librarypackedmedia
1646700177517.png (194.0 KiB)
1646700486250.png (11.5 KiB)
1646700680872.png (611.2 KiB)
1646700755568.png (390.1 KiB)
1646701047832.png (30.8 KiB)
modeloceldas2.fsm (2.2 MiB)
5 |100000

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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot commented

First - drop an instance of the "Object" process flow into your model - you'll get a message saying the process flow was updated. This allows the model to run.

It looks like the media packing routine doesn't like spaces in the file name. I renamed Cabinarobotsoldar25.skp and the reload media brought it into the user library node:

1646836244997.png

Do you have the media stored on the PC? I think the model needs to know where to find them on the file system. It doesn't look like the process does any copying from the model packedmedia node across to the userlibrary node when it doesn't find the shape in the file system - although it seem like it might be a good idea to do so.


1646836244997.png (17.6 KiB)
· 6
5 |100000

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

Carlos Reyes avatar image Carlos Reyes commented ·
Thanks @Jason Lightfoot !

The first issue is solved.


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Carlos Reyes commented ·

In the end it's easier to just copy the packed media node from the model and paste it into a new node in the user library attributes.


TestPackedMediaRobotLib.fsl

0 Likes 0 ·
Carlos Reyes avatar image Carlos Reyes commented ·

Hi @Jason Lightfoot, when I import the library that you uploaded here it works perfectly, but when I tried to import the library I builded by myself I get the same error message.

This is my user library and I also changed the name CabinaRobotSoldar.skp so it does not have spaces.


1646840254550.png

Do you know what am I doing it wrong?


Here is my library:

Fanuc6.fsl

0 Likes 0 ·
1646840254550.png (46.2 KiB)
fanuc6.fsl (2.3 MiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Carlos Reyes commented ·


Update: I seem to get the error about the process flow. Looks like a bug.

0 Likes 0 ·
Carlos Reyes avatar image Carlos Reyes commented ·

Yes,

1.- I add the plane into a new user library:

1646845769871.png

2.- I go to the Tree and I copy the node "packedmedia" (Ctrl+C)

1646845842409.png

3.- I go to the UserLibrary that I created (in the Tree)

1646845971411.png


4.- I select UserLibrary1, then I right clic --> select "Node" --> select "Insert Into"

1646846123568.png

5.- I paste the packedmedia in this new node Ctrl+V)

1646846170398.png

1646846200483.png

1646846235214.png

6.- I save this library

1646846260114.png


7.- Then I tried to import tis library into a new model and I get the error message:

1646846342072.png

Thanks a lot for your help!


Fanuc.fsl

0 Likes 0 ·
1646845769871.png (214.2 KiB)
1646845842409.png (47.7 KiB)
1646845971411.png (36.3 KiB)
1646846123568.png (39.9 KiB)
1646846170398.png (8.7 KiB)
1646846200483.png (37.8 KiB)
1646846235214.png (61.4 KiB)
1646846260114.png (27.5 KiB)
1646846342072.png (33.7 KiB)
fanuc.fsl (2.3 MiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Carlos Reyes commented ·
When you say "import into a new model" are you saying when you try to load the library it gives you the error, or when you try to drag/drop a new instance into the model? I ask because I don't get those error messages you seem to have at any stage with the library you uploaded.
0 Likes 0 ·
Carlos Reyes avatar image
0 Likes"
Carlos Reyes answered Carlos Reyes commented

When I try to load the library I uploaded Fanuc.fsl.

1646848758189.png

But I can open the library that you uploadad, that is odd.


1646848758189.png (33.6 KiB)
fanuc.fsl (2.3 MiB)
· 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.

Carlos Reyes avatar image Carlos Reyes commented ·

Update: I move my library to another folder and now I load my library into a new model and it works.


I don't know what could be the problem but it works now.


The error in process flow still happen the first time but if I do what you told me twice (drag the object to the model and clic reset button) the error disappears


Thanks a lot for your help!!

0 Likes 0 ·