hy guy
i want to insert blocks on the polyline every 10meters the lenght could be change, i did that it’s ok but when i create the block, it was created but not in the direction of the normal.
i tried with by coordinatesysteme but it did the same thing
does anyones could help me ?
Try using Curve.NormalAtParameter instead of Curve.Normal.
Or like this using BlockReference.ByCoordinateSystem.
hy jensen it has been a long time and you are still the best
thank you very much
hy guy
do you know why when some attribute is upside down?
and thank you very much for your help
Are you using the normal vector or a coordinate system?
I m using coordinate système as you adviced me
Can you post a snip of what the coordinate systems look like? The Z-axis might be pointing down…
you are right
the Z axis is pointing down
do you have a solution ?
best regard
Can you post dyn and dwg so i can look?
Try this in a code block, it should correct them:
zaxis = CoordinateSystem.ZAxis(cs);
origin = CoordinateSystem.Origin(cs);
yaxis = CoordinateSystem.YAxis(cs);
zaxis.Z < 0
? CoordinateSystem.Rotate(cs,origin,yaxis,180)
: cs;
2 Likes
it works
thank you very much