Hi,
I have created a dynamo script that gives x and y coordinates to piles in my revit file. These values then appear in the schedule as shown in the screenshot. How do i convert it to show as metres and to only 3 decimal places?
Someone else told me to use math nodes but i am new to dynamo and not sure how to use them. Any help would be much appreciated or a point in the right direction on how to use basic math nodes.
Gelöst! Gehe zur Lösung
Gelöst von RDAOU. Gehe zur Lösung
Gelöst von RDAOU. Gehe zur Lösung
Gelöst von RDAOU. Gehe zur Lösung
Gelöst von RDAOU. Gehe zur Lösung
If MSJ-X and Y are shared parameters design to receive number information, you don't have to tackle decimal places in Revit: just adjust the unit settings for the parameter in the schedule.
Rodrigo Bezerra
You can do one of the following:
DYN Attached
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Excellent! thank you! How do you make it round to 3 decimal places only using dynamo? (many thanks for the screenshot of dynamo, helps a lot!)
The Code block highlighted below is what controls the rounding ... it is set to 3 Digits as it is now
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Yeah i have got that in, but as you can see top right in the schedule, there is still 10 decimal places?
Works fine here... try remove the project parameters and add them back
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Still not working for me? is it because the parameter is set as a text parameter?
Nope ...text has nothing to do with that...if you are using the same revit file you attached, the numbers in the image you posted are wrong
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Well nothing wrong in the files you attached...See GIF below.
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Very strange it isnt working my end ![]()
Maybe there is a dynamo or revit update i need to do
There is a few updates i need to do so hopefully will sort my problem.
One other thing i am wondering with this auto coord dynamo script is that it works from the internal origin of revit? if thats the case, when i loads in a CAD survey file and relocate my survey point in revit so it matches the survey grids of the CAD file, will that mean the dynamo script will not work?
The survey point is not relocated... What gets relocated is the Internal origin and the Project base point...the survey point remains put Sea Level 0,0,0
If you need to relocate the survey point for it to serve as a site benchmark, you
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Hello again! nearly there! I managed to get the coords working by upgrading it to revit 2020 from revit 2019. The issue im having now is moving the survey point. I have linked a CAD file in and when i click aquire coordinates from the cad file, the survey point shoots far away (which it should) and i can put coordinates tags on the cad file and they show the correct real world coordinates. However when i run the dynamo coord script again, nothing changes and i think it is because it is reading from the revit internal hidden main origin? is there a way to get around this?
Any help on resolving this coord issue would be much appreciated, i am nearly there with it now i just need to coords in the dynamo script to read from the survey marker and not the internal origin, if thats possible?
The OOTB way is to transform Geometry of the piles from the one cs to the other (ie: from Base Point or IO to Survey)
Alternatively, if you do not want to do a complete makeover to the Dynamo graph you are using already, Download a package called Genius Loki which has the following node.
The revised .dyn is also attached
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Brilliant, thanks so much! i will test this out when i get some free time
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.