Open Family Documents from the project

Open Family Documents from the project

cool.inna-24
Contributor Contributor
1,708 Views
3 Replies
Message 1 of 4

Open Family Documents from the project

cool.inna-24
Contributor
Contributor

Good day!

I am trying to address to families in the active project and when replace parameters inside families. I have a problem in a very beginning: opening Family Documents. I attach a screenshot. 

Why is it "NULL" in FamilyDocument.Open?

0 Likes
Accepted solutions (1)
1,709 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

In the project document, the family document is already open.

 

Probably that is the reason.

 

Use EditFamily to obtain the family Document object:

 

https://www.revitapidocs.com/2022/56e636ee-5008-0ee5-9d6c-5f622dedfbcb.htm

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

Sean_Page
Collaborator
Collaborator

Not that you won't (and already have) but you might get better Dynamo answers on the Dynamo forums. 

https://forum.dynamobim.com/

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
Message 4 of 4

cool.inna-24
Contributor
Contributor

I got it! 

Thank you, @jeremy_tammik!

0 Likes