Place Bore Hole at coordinates.dyn (41.4 KB)
i want to place bore hole detail family at location mentioned in .csv file. I did a small trial, but its not working. Is it because there is no z coordinate mentioned.
My guess is that the coordinates need to be transformed into the files internal coordinate system. Try placing a family instance on a point at the origin (0,0,0) and see what coordinates you get there.
You can check out the many other forum posts on the topic for solutions.
Is there a level description or any other way to know the elevation?
If it is just one list per level, that might work in the abovegroundlevels where there is just one plate running through, but would not be sufficient for most unterground levels of most projects.
If you need to place on a level, it’s probably easiest to just get the level you need, and grab that elevation to fill-out your z-values. Also depends on the type of family you use and it’s placement settings.
If you need to place elements basedon a shared coordinate system, you need to translate the coordinates. geniusloci has nodes which will help.
If you are working in millimeters,you will probably bump into issues with large numbers in revit / dynamo.
@jacob.small and @m.owens
Thank you for your reply. The 0,0 coordinate is the coordinate of Project Base Point. The script is behaving well for 3D family (Pile Cap)(see the attached image). When i run scipt to place family at (0,0) , it places family correctly on Project Base Point.
i want to use this script on 2D family (Bore Hole Symbol). when i run the script with detail family, script places the family somewhere is project and it is not visible. when i search by ID, Revit says no good view to view.
Try starting a new project, load the family in question into it, and try generating a single instance of the family in the first floor plan using the FamilyInstance.ByPointInView node.
If that fails:
Double click on the custom node to open it up
Use CTRL + A to seelct everything
Use CTRL + C to copy everything
Switch back to the main graph
Use CTRL + V to paste the stuff from the custom node into the active workspace
Wire in the previous inputs for the custom node
Review and address any warnings which are produced