I’m trying to get a family on a curve (i know that this subject has been discussed a looot but pleeeaaase read me till the end).
I used an excel sheet to create points and curve from those points and i’ve placed my family on that curve.
It seems that my dynamo script worked… But my family is bigger than my curve so it’s like all my +200 elements are intersecting.
i tried to changed units, i even recreate a new family but it doesn’t work.
Please help me figure out what i have missed (i’m not a dynamo every day user).
PS : I left a link below where you can find my dynamo script, my family, screenshots of the problem and the excel file (since new users can make upload).
I hope that i’ve clearly described my problem and i thank you for your time y’all !
Check how far apart the placement points are in Dynamo as well as your project units. Dynamo is unitless so if your numbers are in metres from excel but your model is in mm for example Dynamo will not know this.
Take any two points in the list of dynamo points, then use geometry.distanceto node to check the distance in Dynamo. My guess is the units will be small and might indicate an error coming in during the process.
If there is any Python nodes involved they may not be converting the units correctly also, as usually Revit deals in feet by default internally.
At the beginning of my project, i had a template but when i ran my script into it i got an error that says “Point lies outside the Revit design limits” cause i got real world point coordinates for Civil 3D, so i’ve tried to run my script in a new project1 file.
But, i’ve found a solution to resolve the Revit design limits error by a serie of nodes (i’ll share the screenshot); my Excel is in meter and my project units also in meter.
The script runs just great following my points and my curve. Now i just have to make my elements tangent to my curve.
Or Curve.CoordinateSystemAtParameter and pull the desired axis.
Likely as these are family instances the desired result will require rotating the family instance by the angle from the tangent vector to the family’s native facing direction you want tangent (i.e. the X axis or Y axis) about the Z axis.
yea not sure, what is for, havent read the thread really…but the normal can give some trouble in older version with curved curves, where we have to calculate vector cross between tangent and normal…now we have option to choice side…so great