Hi,
When creating a new sloping structural framing beam FamilyInstance I currently set its Revit level and assign the Start/End Level Offset parameters. This work just fine.
However, take for example an entire sloping system of beams. This is much better control by a sloping reference plane set as the work plane of the elements. Changing the slope of the entire system then becomes a lot easier.
The question is can I create a named reference plane through the API, and following this can I use NewFamilyInstance to associate the FamilyInstance to set its work plane to the reference plane? I notice one of the overloads to NewFamilyIsntance is
NewFamilyInstance(XYZ location, FamilySymbol symbol, Element host, Level level, StructuralType structuralType)
Could the 'Element host' possibly be the refenece plane?
Finally if I latter wish to change the slope of the reference plane is this possible through the API?
Sorry for so many questions, but for me they are all related to my choice of possibly using this method.
Any guidance would be much appreciated.
">>>Finally if I latter wish to change the slope of the reference plane is this possible through the API?
No, Revit reference plane's angle cannot be changed. After it is created, the Reference plane angle cannot be changed."
It is possible by " ElementTransformUtils.RotateElement" command.
It was a big surprise for me but it worked.
Example:
"
ElementTransformUtils.RotateElement(doc, eleId, exis, 3 * Math.PI / 180);
"