Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Revit (2015) API equivalent of "Load into Project"?

0 REPLIES 0
Reply
Message 1 of 1
raunoveb
474 Views, 0 Replies

Revit (2015) API equivalent of "Load into Project"?

We have set up a DMS system that holds .rfa files related to Revit Families. Next we added 4 shared parameters to each family that hold the information of given DMS document. If these parameters are missing from a family we add them, create a DMS document and put the documents data in these parameter fields. After this new information has been added to the family we can open it in Family Editor and see these new parameters and their values but when go back to model view, every change we made programmatically gets undone. We tried opening a few edited families in Family Editor and then simply clicked "Load into Project" button which reloaded the family and then everything displayed just fine. However our projects can be big and thus it seems odd to manually import each and every family. Is there a way that lets us programmatically reload an edited family back into the project.

 

We tried looking for different methods that could achieve this in these objects.

 

FamilyDocument

Family

FamilyManager

 

The closest thing to a solution was FamilyDocument.LoadFamily(string path) method, but I figured we could load these changes straight from Revit memory/DB without the need to write the family into file before importing it into Revit again.

 

The other method we looked at was FamilyDocument.Save(bool saveModified). Once again we couldn't get the same results as clicking on "Load into Project" did.

 

Which direction should we look at? I also saw a Revit 2013/2014 example using ReloadOptions class or sth like that but then found out that this kind of reloading is not possible anymore in 2015.

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community