I brought this to the attention of the forum before but I have the same ongoing problem.
I am trying to place families perpendicular to a curve at equal distances.
For simple curves, it is OK. However, if the curve gets complicated or if the curve is a 3-dimensional curve, things get awkward. What could be reason for this?
I tried different solutions:
Created tangent lines at each point and rotated the families by the Vector.AngleWithVector between the tangent and Vector.XAxis
Used Curve.CoordinateSystemAtParameter and rotated the families by Vector.AngleWithVector between CoordinateSystem.XAxis and Vector.XAxis
Hola amigos buenas. Amigo @mtanyer When you use Curve.CoordinateSystem or Point At Parameter or Segment, it will place the CS or the Point at the CS of the Curve that means that the placed element will be perpendicular to the curve itself at that intersection, this is easy to see if you use planes, not sure what are you triyng to achive here, perpendicular to what? i found super easy to work with CS At segments or parameter because then i only use transform to CS, but with planes you have visual help, and other properties easy to get and use, i let you an example and i hope it helps you!
Hi,
we have the same problem when we model bridge and tunnel
When modeling linear structures like bridges and tunnels, the process is typically divided into two main steps:
1. Determine Placement Locations and Coordinate Systems
First, extract the placement points and corresponding coordinate systems along the alignment curve.
You can use the appropriate Dynamo node to achieve this — it will give you both the location and the local orientation (coordinate system) at each point along the curve.
Create an adaptive family or a regular component family. Use the following approach (or reference the provided Dynamo script) to place the family instances in the project:
Insert each family instance at the computed location.
Orient the family by assigning the rotation in the XY plane rot_XY_A, calculated from the local coordinate system. and othe rotation if you need.
Note: The family should not be hosted on the curve directly. Instead, it should be placed based on point coordinates and orientation extracted from the curve logic.