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.
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.
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?.
This model shows the different shapes or the look of the variable rackdrawmode of a rackrackdrawmode-switch-through.fsm
6 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved