Shared coordinates within Dynamo

Hi everybody,

I’m having an issue within Dynamo. I’ve linked a MEP model to a Structural model. I’ve linked them by Shared Coordinates.
I’ve used “Categories” and “Element.Geometry” nodes in order to represent the geometry of the structural elements. And that’s fine.

But when I asked to Dynamo to show me the MEP elements by using “Get Documents”, “Element.GetFromLinkedFile” and “Element.Geometry” nodes, the MEP elements are not aligned with the structural model.
I think that Dynamo doesn’t understand that my models are linked by shared coordinates…

Do you have any idea about solving this issue? Does it have to be linked “Origin to Origin” to make it work? Do I need to create a process which will translate all the MEP elements to make them aligned with the structural model?

Thank you in advance for your answers.

Ghislain Quenet

Hi Ghistian,

Can you post screen shots of the graph, please post a readable image or upload files (or download link).

Hi
I think this is the answer to your “issue”

Hi Kulkul,

So this is what I have when I link the MEP mnodel to the structural model.

This is what I do within Dynamo: I distinguish the rectangular from the round ducts of my linked model and I ask to Dynamo to show me the geometry of these elements (orange elements).
But as you can see, the MEP elements seem to be translated (or moved) on the left (see the red arrow on the second picture).

And what I was saying is that, when I was doing a link Origin to Origin, my MEP model was translated from the structural model as it is for the Dynamo geometry of my MEP elements. But when I do a Shared coordinates link, my models are perfectly aligned (as you can see on the 1st picture) but the Dynamo geometries are still translated or moved… It’s like Dynamo wasn’t understanding that my linked document is linked by shared coordinates.

Hi Jesper,

I think this seems to work with the “Collector.LinkedInstanceElements” node.

Thank you for your answer.

Ghislain

@Dimitar_Venkov I have adapted some of your code into a new Bakery node:
Get Transform CoordinateSystem from Link Instance

This outputs the native Revit transform, and the converted CS for Geometry.Transform.

Thanks mate.

3 Likes

Is there a way to link a document with dynamo (or a list of links) by shared coordinates? I cannot find a method that allows me to specify loading by shared coordinates:
http://help.autodesk.com/view/RVT/2014/ENU/?guid=GUID-0DFBA9EA-0E7B-49D4-9576-6D0528FC0D3C

This is actually two different actions in the API.

You need to create a new RevitLinkType first:
https://www.revitapidocs.com/2020/0dd0e8bd-5217-9a94-19bb-58dcb840e517.htm

Then you can create a RevitLinkInstance with whatever import options you want (shared coordinates):
https://www.revitapidocs.com/2020/8ec3d668-271b-8333-b4d3-b56d50f4ef98.htm

1 Like

Hi,

You can use the LinkModel.SharedCoordinates node in Morpheus package.

SharedCoordinates

With Dynamo, is there a way to obtain the shared coordinates of a link, and then apply them to the host model prior to inserting the link into host model? I’m assuming doing this may resolve the following error, yes/no?

image

My goal is to have a graph that can recognize if a link is using shared coordinates and use the LinkModel.SharedCoordinates node to insert the link, but if the link is not using shared coordinates it would use the LinkModel.OriginToOrigin node instead.

You could use the Get Project Locations node to compare the base point and survey point positions of your linked files to those of your host file.

(It’s probably better to start another topic because this one is rather old.)

3 Likes