2022-09-0201:47 AM - last edited on 2022-09-0201:52 AM by Barry Kelly
Hello, I'm creating a Road junction using the GDL object. In this junction, there are three objects. The first one is the junction object and the second one is the transition object which is used to blend the road profiles with the junction and last but not least the sidewalk object. Here, the junction and sidewalk objects are created using the PRISM_ element, and the transition object is created using the MESH_ element.
Here, we can make the flat object but when we perform some rotation in the objects using the ROTX command then the objects get some extra elevation which is not expected.
Now, I want an element where I can create a free shape and also perform some rotation also why is there an extra elevation in this object?
It's difficult to find the culprit from just the code you showed. First, I would check if the data you "PUT" in the buffer is correct. If so, it's probably due to multiple transformations (ADD, ROT, ...) used in the linear fashion when placing multiple parts.
What I would do is to place the first part (either road, transition or junction) then use "DEL" to reset the global location to the library part's origin, then place another object and clear the transformation again. It's more work but it's the best way to make sure that the transformation added to the previous part won't affect the latter.
GDL objects don't work in the plan's coordinate system, they have their own. Their level 0 corresponds to the bottom offset in the plan.
Transformation commands work on the coordinates of the whole object, not the center of gravity of individual commands. By using rotx you are rotating around the local X axis, so if the model is far from the X axis, it will be elevated.