Reload Family (Python)

Reload Family (Python)

Anonymous
Not applicable
580 Views
1 Reply
Message 1 of 2

Reload Family (Python)

Anonymous
Not applicable

I'm having some difficulties with reloading a family i'm editing from within a project file. 

 

this is what i want to do: 

famDoc.LoadFamily( doc ) 

 

I'm getting the expected failure because the family is already loaded, but i want to overwrite it. 

i need the IFamiliesLoadOption, and from what i can find on the web i need to add a new function to the class. 

i've found these websites on the topic: 

http://thebuildingcoder.typepad.com/blog/2011/06/reloading-a-family.html

http://adndevblog.typepad.com/aec/2012/06/reloading-an-already-loaded-family.html

 

however, both sources are in C#, a language i have no experience in. I'm making my code in python. 

 

Can someone explain to me what i need to do (preferably in Python so i can actually read it). 

 

0 Likes
581 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

You can use various tools to translate C# to Python and vice versa, for instance the SharpDevelop IDE, which you already have installed, or Reflector.

 

Search for Reflector on The Building Coder and you will see.

 

Cheers,

 

Jeremy



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

0 Likes