Shape is lost in custom library

Shape is lost in custom library

raul_vazquez
Not applicable
12 Views
6 Replies
Message 1 of 7

Shape is lost in custom library

raul_vazquez
Not applicable

[ FlexSim 19.2.3 ]

Hello team,

Could you help me please?, I want to do a custom library in order to share with one internal partner, but once he import the library he lost he 3Dshape... he use is own computer but in mine I can see it.

Do you have any best practice to do it? what do you recommended?

Thanks a lot

modellostcustomlibrary.jpgsmt-completedlibrary.fsl

0 Likes
Accepted solutions (1)
13 Views
6 Replies
Replies (6)
Message 2 of 7

benjamin_w2
Not applicable

Hi @Raul Vazquez,

I am thinking that your partner does not have the 3d shape downloaded onto their computer. Have him/her save the 3d object under "C:\Program Files (x86)\FlexSim 2019 Update 2\fs3d\[some folder name]". Then, in your model tree, have "UserLibrary 1\[some object]\visual\shape" point to the place where you saved the 3d object.

Let me know if this helps, if not I will take another look at it.

0 Likes
Message 3 of 7

philboboADSK
Autodesk
Autodesk
Accepted solution
Message 4 of 7

raul_vazquez
Not applicable

Thanks for the information @Benjamin W2 , Im looking something that the "receiver" does not have the need to have the 3D shapes in his computer...But I appreciate your answers

0 Likes
Message 5 of 7

raul_vazquez
Not applicable

Hello @phil.bobo , thanks for answer...

I have some doubts.

*I cant see the "User Library View" , where could i find it?

*Do you have an example of scripting that? or which part do I need to modify?

*In case that you dont have it, where I can take a look for some some literature to be more familiar with this topic?

Thx a lot for your kindness and support

testcustomlibrary-autosave.fsm

library-view.jpg

0 Likes
Message 6 of 7

philboboADSK
Autodesk
Autodesk

Press the Main button in the Tree Navigation window to see the user library tree:

23174-main-tree.png

The documentation for creating custom libraries is in the user manual: Custom Libraries

You can call the createcopy() command to copy the packedmedia nodes from the user library to the model. See the attached example user library (shape-library.fsl).

// assert that the model has a packedmedia attribute
treenode modelPackedMedia = assertattribute(model(), "packedmedia", DATATYPE_NUMBER);
set(modelPackedMedia, 1);

// copy each packed media node from the user library to the model
for (int r = 1; r <= content(packedmedia(userLibrary)); r++) {
	createcopy(rank(packedmedia(userLibrary), r), modelPackedMedia, 1);
}


Phil BoBo
Sr. Manager, Software Development
Message 7 of 7

raul_vazquez
Not applicable

Thanks a lot for your help,

0 Likes