Rotate coordinate system? transform?...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everybody,
I am developing a tool to place lighting fixtures from a text document comming from a lighting calculation software (Dialux).
Each group of elements in a room is given as a "structure". the information obtained of the structure is the next:
Structure location (lower-left element location)
Structure rotation
number of fixtures (in X and Y)
distance between fixtures (in X and Y)
I am happy when creating structures witout rotation, but when I have to apply rotation I do not know how to rotate the coordinates system in its Z axis.
I have read something about the Transform. I tyed to create a transform with a rotation
Transform tra = Transform.CreateRotation(XYZ.BasisZ,45);
But I am not sure if it is correct and I do not know how do i have to follow.... I am completly block.
I am so sorry if my question is stupid, I am very new in Revit API....
Any help is welcome!!!
Many thanks in advance