dimven / SpringNodes

A collection of Dynamo nodes
MIT License
69 stars 46 forks source link

Springs.SelectLinkedElement geometry offset #34

Closed ir1141 closed 7 years ago

ir1141 commented 7 years ago

Hi

I am trying to use the node "Springs.SelectLinkedElement". It successfully identifies the linked element but the geometry reference comes through offset. Everything seems to be offset in one consistent direction (but by varying amounts).

Please see picture attached (lines generated from using "Element.GetLocation"). It works fine when I am directly in the linked model using the normal node "Select Model Element".

Is this a problem with SpringNodes or something else?

Cheers

capture

ir1141 commented 7 years ago

I should probably mention what version of software I am using:

Revit: 2017.2.2 Dynamo: 1.2.1 SpringNodes: 121.1.1

I will try with Dynamo 1.3.x when IT is back and disables group policy so I can update Dynamo.

dimven commented 7 years ago

Hi,

That's the expected behavior whenever the linked file does not share the host's origin. You'll first need to pull the total transform of the link and then apply it to the linked element's geometry/location to get the final location:

revit_2017-10-18_12-47-00

ir1141 commented 7 years ago

Thanks for responding. I'll try that tomorrow. I did wonder about the origin, as I put this file together to test and used center to center positioning.

On Wed, Oct 18, 2017 at 5:51 PM, Dimitar Venkov notifications@github.com wrote:

Hi,

That's the expected behavior whenever the linked file does not share the host's origin. You'll first need to pull the total transform of the link and then apply it to the linked element's geometry/location to get the final location:

[image: revit_2017-10-18_12-47-00] https://user-images.githubusercontent.com/7148394/31701453-1583121e-b403-11e7-865c-b2341249a076.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dimven/SpringNodes/issues/34#issuecomment-337459888, or mute the thread https://github.com/notifications/unsubscribe-auth/AfXZT4vMxLVJnbGu6Z9wnWej7t_FGrgZks5stYPtgaJpZM4P9FMM .

ir1141 commented 7 years ago

It works perfect! Thanks again.