get element translation / previous location with iupdater

get element translation / previous location with iupdater

patricklee9FSMF
Participant Participant
195 Views
1 Reply
Message 1 of 2

get element translation / previous location with iupdater

patricklee9FSMF
Participant
Participant

Hi all, I'm trying to create a iupdater to move element A if element B is moved by a certain translation manually. However I'm wondering how can I get that translation vector after a move command? 

 

My approach is to create a parameter to store its latest location by another iupdater, then I can do calculations with the previous and latest location point. But are there any simpler ways to do this?

0 Likes
196 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Very good question. No good answer, unfortunately. The updater will only provide the new, updated element data. If the original, old data is important for you, you will have to store it somewhere yourself. For instance, you could store the element location in extensible storage data on the element itself. Then the difference between your stored data and the current would give you what you need. There is a wish list item for this in the Revit Idea Station. You should vote for it.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes