Im trying to fetch the Shared coordinates location of my piles and write them into some custom parameters i made.
Normally the Element.Location type nodes do the trick, but they dont seem to be in this case.
I have a Structural project which is set up using Shared Coordinates (Survey point is at 0,0 and Base point is in a set location). When i use the normal methods of retrieving the elements location i am getting the coordinates from the base point, i do not want this, i want the coordinates from the Survey Point (same as the spot coordinates annotation)
I have tried a few logic workarounds, adding the element.location onto the base point coordinates but this isn’t giving me what i am looking for.
I have searched the forums etc but found nothing that solves my issue.
Hopefully it is something obvious i am missing and someone can point me in the right direction.
I’ve attached the definition ive made along with a cleaned up example Revit file.
The definition is numbering the Piles along a selected curve (the red line) and also getting the coordinates. It should be straight forward to understand
.
This isn’t working as there is a rotation with respect to the True North. You will need to transform the Coordinate System. Example Coords Definition-Vikram.dyn (41.2 KB)
This does the trick! Thank you very much
I tried to get the points and rotate them round survey point to account for the Angle to true north but had no luck. Your way works perfectly.
what would be the process if you wanted to use the Element.SetLocation node? I have an Excel file with as built E and N coordinates and thus the location of the piles need to updated.
Sorry to necro this thread - Vikram, does this translation only work if the project base point is located at the origin? I’m trying to report some key coordinates to excel but I can only make this work accurately if PBP is at the startup location…
For reference I’m trying to convert dynamo model coordinates to survey coordinates - in essence I want to get the survey coordinates of the model origin regardless of the location of the PBP.
Don’t completely recollect the logic behind the workflow I’ve provided above, but you could try replacing CoordinateSystem.Identity with a Coordinate System that corresponds your Project Base Point.
Using what you had plus a post over on linkedin I think I’m there. As an exercise I have to say I’ve found this a lot more tricky than what I thought it would be!!
I know this over 1 year ago, but I gave it a try and if I use 0,0,0 I get the shared coordinates of the Project base Point not of the Project Origin…
Any idea why?
From memory you should. Dynamo by default reports the coordinates of any element relative to the project origin so you don’t need to convert to that. There’s another thread I started about this here which might help;
The dynamo script linked in the article is designed to pull all the coordinate data from a model - it then exports it to Excel to make that easy to understand but everything you want to do will be in that script but you’ll need to unpick it to get exactly what you need.
I don’t know what your end goal is or indeed any part of your goal so I can’t really add anything else… sorry…