Dear all,
I am having difficulty to understand how “Vector.AngleAboutAxis” works.
I have points and I know the coordinates of these points.
I can create vector using these two points via “Vector.ByTwoPoints”
I would like to know the angle between this vector and X axis so that I can rotate my profiles correctly.
Therefore, I use “Vector.AngleAboutAxis”.
Finally, I use my “code block” to rotate the profile.
However, the end result is not as I expect. The extrusion is not cut correctly.
How should I rotate my profile so that I have the profile along the red line?
I think something is wrong in my code block.
Without seeing the vectors as located objects or the profile it is hard to say what the issue is.
Some things to check:
Is the rotation axis correct?
Is the profile drawn on the X axis or the Y axis?
Are you doing this as a pure Dynamo geometry exercise or for Civil 3D block placement or Revit family Instance placement?
Hi Jacob,
The points are located on the feature line (green line in the image) and the profile is located on this feature line. The profile is always vertical and needs to be rotated as calculated by the "Vector.AngleAboutAxis”.
Hi @mtanyer try,pull on plane as well, if understand
What does the profile look like before you rotate it?
It feels like Curve.CoordinateSystemAtParameter and Geometry.Transform will be easier to code, faster to execute, and simpler to understand.