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: 

change hosted family to non-host one

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
Ning_Zhou
1506 Views, 7 Replies

change hosted family to non-host one

is it possible using API? we have tons of MEP stuff needs to be made as non-host ones.

7 REPLIES 7
Message 2 of 8
Joe.Ye
in reply to: Ning_Zhou

 

HI Ning,

 

As far as I know there is no straightforward way to convert face based family to non-host family.

The workaround could be creating new family using nonn-face host family template, then copy the solid/form to the new family, and also copy the types, parameters and dimensions via API.

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
Message 3 of 8
Ning_Zhou
in reply to: Joe.Ye

thanks Joe, you mean i can copy everything at once via API from existing hosted family to new non-hosted one?

Message 4 of 8
Joe.Ye
in reply to: Ning_Zhou

 

Hi Ning,

 

I think you can copy the extrusions, dimensions...objects derived from Element class.

and add new types, add parameters from the existing family.

 

I didn't try to copy a real family. It worths a try.



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
Message 5 of 8
Ning_Zhou
in reply to: Joe.Ye

thanks Joe, any chance to have short code to demostrate? i'll give a try later
Message 6 of 8
Joe.Ye
in reply to: Ning_Zhou

 

Hi Ning,

 

I don't have handy code right now.  Sorry for this.

 

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
Message 7 of 8
Dale.Bartlett
in reply to: Joe.Ye

"copy everything at once via API from existing hosted family to new non-hosted one" - This would be extremely handy, any updates? Dale




______________
Yes, I'm Satoshi.
Message 8 of 8

And now?




______________
Yes, I'm Satoshi.

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