Extensible Storage - ElementId lost after copying object.

Extensible Storage - ElementId lost after copying object.

Anonymous
Not applicable
751 Views
2 Replies
Message 1 of 3

Extensible Storage - ElementId lost after copying object.

Anonymous
Not applicable

Hi,

 

When I store ElementId on a project element (via Estorage), the ElementId reference is dropped if I copy the project element (unless I copy the referenced Element as well, then it gets remapped).

 

Is there a way to have Revit treat this as "Soft Pointer" like in AutoCAD?

 

Thanks,

 

Jon

0 Likes
Accepted solutions (1)
752 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Jon,

 

Thank you for your very pertinent query.

 

Simply put, NO.

 

http://thebuildingcoder.typepad.com/blog/2011/06/extensible-storage-features.html#7

 

If you need to retain a link to an element that is not copied, you should implement it differently.

 

There is probably one or several optimal alternative solutions that make sense and also make this implementation make sense.

 

Please let us know how you decide to resolve this.

 

Thank you!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

Anonymous
Not applicable

Ok, thanks for the answer Jeremy!

 

Retaining link to non-copied element would simply be convenience for my application. Just as likely my users will copy referenced element which will remap the id link. Other than dropping non-copied elements, I prefer the behavior of using ElementId in Extensible Storage.

 

If this becomes a pain point for my users, I can imagine creating a custom copy command, but i'll cross that bridge if the time comes.

 

Thanks again!

 

Jon

 

 

 

 

0 Likes