Im working through a script using dynaworks17 to place spheres in locations imported from a clash test, however these are always placed in incorrectly if the base point/survey point are not alighted in terms of location or orientation.
Im trying to use the geometry.transform node to rectify this, but unfortunately the same error is occurring.
if you paperclip the project point before you move it it should work.
Check out the different behaviors when the paperclip is activated/deactivated befor/after it’s moved:
This works fine in the test file, but in my project file the base point was moved (probably while unpinned) a long time ago. is there any way to numberically correct these coordinates?
Ben, you can translate between the survey point, base point and origin point using translation methods in Dynamo. I wrote a definition that did this for spot coordinates recently. You can download the file from the link in this website. http://designtech.io/tools/spot-coordinates-workflow/
Use the same translation methods in here in your definition. If this doesnt help let me know as I have a definition somewhere in the locker that uses this methodology directly when using the Dynaworks package.
As Mostafa & others indicated- it depends on the project base point, but also the method you export into Navisworks as to how the coordinates are reported. Without running through your model and method in detail, it isn’t possible to give a definitive answer- but I can give you a few clues.
In the below examples- I have exported the same model with a single clash using internal vs shared coordinates, run the clash detective, exported the clash report to XML, then brought the points back into Revit using Dynamo.
From the second screenshot- you can see that in this example, using shared coordinates round trips to the correct position.
Also note that there may be an issue of units- in the metric world, Navisworks reports in metres, whereas Revit is in mm. I’m not sure how this works in imperial units.
I’d suggest simplifying your process so you are testing with a single clash- it is much easier to see what is going on and you should be able to identify the issue.