Understanding Reference Direction in NewFamilyInstance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all, I am working on a program that will insert family instances of structural connections into the a concrete double tee family. The double tee family has 2 nested families in it, one that is flat and one that is warped. For purposes of inserting, I have the code flatten out the warped tee when it inserts connections and then re-warp it so everything inserts properly.
In that flat state, there is still a small amount of camber in the tee so it makes a slight curve creating a cylindrical face while the flat tee is inserting onto a planar face.
The connections insert with absolutely no problem on the flat tee in the proper orientation no matter what the rotation of the tee is, however the warped tee I cannot figure out what the rhyme/reason is for the rotation of the connection being inserted. When the NewFamilyInstance is used for both flat and warped tees, it uses the exact same reference direction, yet it seems that they just insert at some other angle in the warped tee (see image below - the flat is the bottom tee and warped is top tee)
There has to be something I am missing in understanding how the reference direction works. Currently I am just getting the vector direction of the length of the tee and passing that as the reference direction, which works no problem for the planar face but not for the cylindrical one.
Thanks in advance!