Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Family Document - Reading Extensible Storage from project document within an event

mertyMD4N7
Explorer

Family Document - Reading Extensible Storage from project document within an event

mertyMD4N7
Explorer
Explorer

Hi,
On a revit project, when a family instance is placed or when a new family is loaded into the project, I want to read it's extensible storage (extensible storage of the family document) in the process to take some actions about it.

 

To do that, I tried using the Application_DocumentChanged event but it didn't allow me to open a transaction so I couldn't use doc.EditFamily(family) to get the document of related family and read it's extensible storage.

I tried using using dynamic model update but again the api doesn't let me use EditFamily in the dynamic mode.

mertyMD4N7_0-1708939751290.png

 

Is there another way?

0 Likes
Reply
Accepted solutions (1)
211 Views
1 Reply
Reply (1)

Kennan.Chen
Advocate
Advocate
Accepted solution

In the DocumentChanged event handler, you can raise a predefined external event to do the updating.