change hosted family to non-host one

change hosted family to non-host one

Ning_Zhou
Advocate Advocate
1,775 Views
7 Replies
Message 1 of 8

change hosted family to non-host one

Ning_Zhou
Advocate
Advocate

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

Accepted solutions (1)
1,776 Views
7 Replies
Replies (7)
Message 2 of 8

Joe.Ye
Alumni
Alumni

 

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
Advocate
Advocate

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
Alumni
Alumni
Accepted solution

 

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
Advocate
Advocate
thanks Joe, any chance to have short code to demostrate? i'll give a try later
Message 6 of 8

Joe.Ye
Alumni
Alumni

 

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
Collaborator
Collaborator

"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

Dale.Bartlett
Collaborator
Collaborator

And now?




______________
Yes, I'm Satoshi.
0 Likes