PDA

View Full Version : Adjusting 3d shape of a crane


Maurits Brandt
08-17-2007, 12:53 AM
L.S.

Is it possible to adjust more parts of the 3d shape of the standard FlexSim crane? Right now only modifying the hoisting part is possible but for future use it would be nice to use some more specified 3d shapes with a trolley and the like. I know detailed visualization isn't the main purpose of a simulation package but I suppose that there are more applications where a standard crane is a little too basic.

Maurits

Steven Hamoen
08-17-2007, 01:12 AM
Hello Maurits,

There are 2 ways that I can think of.

1 If you return a true (1) on the ondraw trigger of the crane object (first tabpage of properties) the default draw code of the crane is not executed. Instead you can create your own crane by using the draw commands of flexsim. If you toggle the node as C++ or DLL you can even use full opengl to create what ever you want (of course then you would need to compile before running).

2 A second option that can be used standalone or in combination with solution 1, is putting an extra object (e.g. a Basic FR) inside the crane and attach a 3D file with this object and manipulate the position and or dimension on the ondraw trigger of the crane.


I hope this helps you further.

Regards,

Steven Hamoen

Brenton King
09-13-2007, 09:49 AM
Maurits,
Cliff has posted something that you might find useful in the Downloads section under picklists. It will allow you to change each part of the crane to be a different shape. You load the code as a library and it will appear in your cranes Custom Draw picklist menu.
Brenton
Flexsim Support

Maurits Brandt
09-14-2007, 12:25 AM
This is very useful.

Thank you.
Maurits