Keep the information of an unlinked file

Keep the information of an unlinked file

Anonymous
Not applicable
323 Views
3 Replies
Message 1 of 4

Keep the information of an unlinked file

Anonymous
Not applicable

Hi everybody,

 

In my present program I need to keep the information on a element which belong a linked file (.RVT). The problem is when I unlink the file I lost the information of element. At present I save the Id as integer and the path of the file, so when I need the information of the element I have to link again the file. Is there any other possibility?

 

Thanks,

 

Javi

 

 

0 Likes
324 Views
3 Replies
Replies (3)
Message 2 of 4

aignatovich
Advisor
Advisor

Hi, Javi

Where do you store information about the element from the linked file?

May be you need Extensible storage with two string fields - the first field value is UniqueId of the RevitLinkInstance, and the second is UniqueId of the element from linked file?

In such case you are able to get element (if revit link is loaded) or inform user about the problem.

0 Likes
Message 3 of 4

Anonymous
Not applicable
First of all thanks for your answer. The reason is because I want to get the area of a hole, so, the unique way I fount out is first I calculate the object with hole and afterward the area of the element without the hole. The problem it is I work with big file, 200 MB, and I am trying to reduce the calculation time. Your proposal is quite similar that I am using. The diferent is that I use Id in integer and the path of document. Javi
0 Likes
Message 4 of 4

aignatovich
Advisor
Advisor

Hi!

I don't exactly understand about holes. Do you have something in linked file that cuts some elements in your main file? If so, why do you need to store information about elements in linked file? Collect elements you need and store their area, than unload linked files, check updated elements area, the difference is hole area.

0 Likes