question

Enrique Elizaga avatar image
0 Likes"
Enrique Elizaga asked Joerg Vogel edited

how do I change the rack beam thickness?

FlexSim 17.1.1
rack visuals
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

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel edited

you find the information in the main tree. There is the library, too. The default drawing code is in this node:

MAIN:/project/library/fixedresources/Rack>behaviour/cppfunctions/onDraw

But here you should be an expert in coding to adjust the thickness. My approach is to build the structure with boxes in the Visuals/Animation Editor of the Rack.

Edit: I start with switching off the current shape structure. The variable "rackdrawmode" contains integer values in the range [0..4]. The value 0 switches of the structure; 1 is the standard shape, 2 is the shape of the floor storage; 3 is a box frame open to the front and top, 4 is a wire frame. Values greater than 4 have the same effect as 0.

The variable exists even if you don't find it in the suggestion list while writing your own code. You find the classic source code here.

current.attrs.variables.subnodes["rackdrawmode"].value = 0;

Edit end.

You find this tool in the general tab of the Rack Properties Window. If you have access to a 3D design tool you can build your structure there. Then you import the CAD data to your drawsurrogate objects inside the editor. You find these objects in the branch of the Visual node in the tree of the rack, too. Then you can write a code to duplicate the first structure element and set its size and position for all other structure elements depending of the size of the rack object.

The source code isn't really clever, because I build the structure always on reset. If there is an attribute to identify the change of the basic or advanced size of the rack, the structure must only be built after such a change. The shapes for the shelves and beams are standard boxes.

rack-own-structure.fsm


· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

Here is the link to the tool manual, but you do not need any informations on the animation. You place just a box object and exchange the shape of the box by your own design or you adjust the size dimension to your needs.

0 Likes 0 ·
Enrique Elizaga avatar image Enrique Elizaga commented ·

Thank you @Jörg Vogel I was able to delete the texture which helps me, but even though I experimented on tweaking the MAIN:/project/library/fixedresources/Rack>behaviour/cppfunctions/onDraw code to find the line responsible for beam thickness, I could see no effect on the rack visuals when adding a new instance. Is there a special procedure to execute the modified node?.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel commented ·

This model shows the different shapes or the look of the variable rackdrawmode of a rackrackdrawmode-switch-through.fsm

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.