I would like to orient an assembly to the “main” member in the assembly. I am able to get the basis and origin of the “main” member in the assembly and also the assembly itself. I have not been able to identify the most efficient method to achieve this re-orientation.
ElementTransformUtils.RotateElement(document, element.Id, axis, rotation)
RotateElement method appears to be one approach, but seems to be a bit tedious with determining each axis and then rotating about each axis.
Since I have the basis that the assembly needs to be transformed to, is there an easy way to simply set the assembly basis to the new basis?
Solved! Go to Solution.
Link copied