Element Shared Coordinates Location


#1

Hey All

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
.

Any help is appreciated.
Example Coordinates model.rvt (1.6 MB)
Example Coords Definition.dyn (29.3 KB)


Inconsistency between the Revit model and the Dynamo coordinates
#2

Bumping back up :slight_smile:


#3

@Alisder_Brown

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)


Getting coordinates from Project Base Point or from Survey Point?
Dynamo Coordinates - Project Issue
Place family at project coordinates
#4

Hi @Alisder_Brown

Here is another possible way.


#5

@Vikram_Subbaiah to the rescue again!

This does the trick! Thank you very much :slight_smile:
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.

Very much appreciated


#6

Extra thanks from me Vikram_Subbaiah!


#7

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.

Thanks


#8

Thanks!


#9

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.


#10

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.


Converting from Model Coordinates to Shared Coordinates
#11

Hi Vikram,

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!!

Model Origin Survey Coordinates.dyn (17.5 KB)


Convert project coordinates to Survey