I want to create two different travel networks. One for operators and the other one for transporters and I want to visually identify them when I'm modeling. Can I do this? how?
I want to create two different travel networks. One for operators and the other one for transporters and I want to visually identify them when I'm modeling. Can I do this? how?
networknode-colors.fsmYou could draw your own spheres by putting the following in the Custom Draw trigger of each NetworkNode:
/**Draw Colored Sphere*/ treenode current = ownerobject(c); treenode view = param(1); drawsphere(0, 0, 0, get(viewpointradius(view)), 255, 0, 0);
The get(viewpointradius(view)) command used as the fourth parameter of drawsphere is a variable of the 3D view that indicates how zoomed in/out you are. This just changes the size of the sphere so you can always see it, similar to the default functionality of the NetworkNode.
If you want the sphere to be smaller or bigger, multiply the viewpointradius by a sizing factor. This will decrease the size of the sphere by 10%:
drawsphere(0, 0, 0, get(viewpointradius(view)) * 0.9, 255, 0, 0);
And this will increase the size by 10%:
drawsphere(0, 0, 0, get(viewpointradius(view)) * 1.1, 255, 0, 0);
Going one step further, you can create some user defined Global Macros that specify colors, which will ensure that all the nodes on the same network are the same color. Also, you can change the color of all nodes by just by changing the macros instead of each individual Custom Draw trigger.
A model is attached that demonstrates this.
Haha, great work around LeGrand. This can't be a difficult feature for FlexSim to add. I'll send it in as a feature request. (I think the line should be able to change too)
AGV paths can have unique colors. If you can get away with using them. Unfortunately, you can't give network node paths custom colors.
I have put my network nodes in containers before to group them.(placing them inside of an object like a Visual Plane) This allows you to hide the contents of a container which would hide all your network nodes that are inside of that container. You could also move them all together as one by dragging the container. Another benefit is that your tree looks WAY nicer. I created a model showing what I mean. 2-separate-network-paths.fsm
Yuck
Ahhhh, much better. :)
@Brenton King is there a method to get the spline geometry of the paths to draw the splines separately as gl-code?
5 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