ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
changing shape of a link
Hi everybody
I could not find how to change the shape of an edge let say to look like a railway. anyone done this before? thanks in advance |
#2
|
|||
|
|||
What do you mean with edge? The connection between two NetworkNodes?
I don't think they have a real shape. If you want to work on the visuals of your model, you might use a VisualTool and set a texture. |
#4
|
|||
|
|||
Well, was my reply the answert to your question or do you need further help?
If so, please post a screenshot. As far as I know, NetworkNodes are only connected by lines. |
#5
|
||||
|
||||
Maybe we have a misunderstanding here and Shahin means the edge of the rail api?
Anyway I think that you can use the ondraw of the nodes to draw your own railsystem. But that might not be very easy with curved sections. But Flexsim draws the path also so it is possible. |
The Following User Says Thank You to Steven Hamoen For This Useful Post: | ||
Jörg Vogel (06-05-2012) |
#6
|
|||
|
|||
A line is not a shape? what is it then? doesn't have any properties?
what is the difference between edge of rail api and edge connection between two network nodes? aren't they both using network nodes? |
#7
|
||||
|
||||
Simple forms can be drawn with the grafics engine of flexsim (like drawline, drawbox etc.). Complex forms should be drawn with shapes. But you can draw a line also with a shape (p.e. with a shape of a box or a cylinder).
I've used a conveyor with another texture to get rails a few years ago (an example model for Ralf Gruber). [A small hint: The rail api rotates his objects (trains, waggons) in the center of the objects. With sharp curves this may look a little strange. You can compensate this with a smaller radius of the rail api and a normal radius with the conveyor.] |
The Following User Says Thank You to Carsten Seehafer For This Useful Post: | ||
Shahin Gelareh (06-06-2012) |
#8
|
||||
|
||||
Quote:
An indeed the nr of properties are limited, you can't change the width, the pen or anything like that. Indeed there is no difference between the edge of a rail api and the network nodes only that in the rail api the edge is much more present (you travel from edge to edge while with network noded you travel from node to node) They both use network nodes but the nodes in a rail api contains a lot more information. Also I think that currently you can't have a rail system and network system together in 1 model.. (although I'm not completely sure) |
The Following User Says Thank You to Steven Hamoen For This Useful Post: | ||
Shahin Gelareh (06-06-2012) |
#9
|
|||
|
|||
Just on lines, if you are drawing your own, you can try the glLineWidth() command.
|
The Following 3 Users Say Thank You to Jason Lightfoot For This Useful Post: | ||
Steven Hamoen (06-06-2012) |
Thread | Thread Starter | Forum | Replies | Last Post |
changing shape factor when changing 3d shape | KelvinHo | Q&A | 3 | 09-03-2009 08:24 AM |
Can't move or link objects | Kenny Macleod | Q&A | 7 | 01-22-2009 09:47 PM |
Invalid link, event not created | Nico Zahn | Q&A | 4 | 09-05-2008 08:33 AM |
Changing the color of a .3ds shape made with autocad | Alexandre Ouellet | Q&A | 5 | 04-30-2008 08:48 AM |
New custom commands in Downloads link | Cliff King | Q&A | 0 | 09-24-2007 05:46 PM |