question

Arun Kr avatar image
0 Likes"
Arun Kr asked Jason Lightfoot commented

Single Icon Display In User Library For Objects With PF - Droppath

Hi,

If the user library has an object PF, while saving it in the user library they are displayed as individual objects in the user library. Ideally, it should be displayed as a single icon in the user library.

1690452688696.png

So to include the objects in a single icon. I have created a drop path attribute and added them to the user library. Even after adding the drop path the object pf is not getting added to the object which is drag-dropped into the FlexSim model. How to fix this?

1690452373079.png

Attaching the userlibrary for reference.

Regards,

Arun KRCustomLib.fsl





FlexSim 23.1.3
userlibrary
1690452373079.png (36.2 KiB)
1690452688696.png (4.7 KiB)
customlib.fsl (3.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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Just put the process flow in an attribute of the library as a folder so it's hidden. No need for custom drop scripts etc.

1690467912257.png


1690467912257.png (4.5 KiB)
· 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.

Arun Kr avatar image Arun Kr commented ·

Thanks process flow works fine but while adding the conveyor visuals an exception is thrown. How to fix this?

exception: Exception Caught in ObjectFunction253__project_library_FlexSimObject_behaviour_eventfunctions_OnPreDraw object: /Plane4/StraightConveyor1 class: /Plane4/StraightConveyor1

exception: Exception caught in TreeNode::receivemessage()
exception: EditorSpatial::prepareDraw()
exception: Exception Caught in ObjectFunction232__project_library_FlexSimEventHandler_behaviour_eventfunctions_OnDraw object: /ConveyorSystem i: /ConveyorSystem class: /ConveyorSystem

exception: Exception caught in TreeNode::receivemessage()
exception: EditorSpatial::drawContent()
exception: treewin__CallUserCallback
ex: CallUserCallback

Lib.fsl

0 Likes 0 ·
lib.fsl (3.2 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Arun Kr commented ·

I would place the hide folder in the attribute part of the library object - not in the part that gets displayed in the grid.

In this case I think the conveyor in the plane was not pointing to the visualization type.

Fix attached.

lib_hiddenConvVisualization.fsl

0 Likes 0 ·