Place family instance, change orientation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on a piping system and I initially wanted to change the symbol of a flange fitting to the symbol of a multiport fitting using this code:
FamilySymbol symbol = doc.GetElement(symbolId) as FamilySymbol;
FamilyInstance myMP = myMultiPort as FamilyInstance;
myMP.Symbol = symbol;
That doesn't work, I think, because the fittings are of different types. So, now I'm trying to place my new family instance of the multiport fitting in the same exact spot with the same exact orientation. Placing it on the correct XYZ was easy, but trying to duplicate it's orientation is proving to be difficult. HandOrientation is read-only, as is Facing and WorkPlane.
I've attempted to rotate with X, Y, and Z, but trigonometry was never my subject.
Thanks for any help!