Locating objects in relation to other objects
Issue #197
resolved
I'm try to place rebar inside of a girder. The girder is located relative to an alignment. Now I want to place the rebar in relation to the girder and not the alignment or the global coordinates.
My first attempt was to make the rebar object a sub-object of the girder and then refer to the girder X,Y,Z parameters but I get errors about circular references.
Is there a way to locate an object in relation to another object?
Here is my example https://www.openbrim.org/objidy035xqwyawev6171y8moj.project
Comments (2)
-
-
- changed status to resolved
I am closing this issue due to inactivity. If you have further questions on this, please create a separate issue for it.
- Log in to comment
You do have access to all the information you need -- no need for WF66G_E.Z, WF66G_E.Y or WF66G_E.X.
You know your reinforcement starts from StartStation and ends at EndStation. It is positioned at StartOffset along Y and StartSlabOffset for Z. So you can use these parameters to define your reinforcement.
Make sure that Alignment parameter is set for the reinforcement, otherwise rebars will be in global while the beam in Main alignment.
Take a look at the ParamML code below. You may want to consider adding the rebar objects as part of the beam library objects, but it should work either way.
I added transparency to the I-Beam and added larger than 1 opacity to the rebar to make it opaque. Opacity is cumulative from 0 to 1.