I have many families that all types will only work loaded in if I save it out with it on a certain type of family set before saving.
Is there a node/way to change the type its on in a background opened family before I save? I’ve been looking through lots of nodes but dosnt seem to be one.
Sorry I may have worded wrong. I just want to set a type in a family doc
SeanP
May 16, 2023, 2:25am
4
I am sure there is a node out there somewhere, it here is the price of python to do it.
I am not sure you will be able to do this as you expect. The GetPreviewImage needs to be used on a FamilyType, but that is the Type of a Family Instance, not the FamilyType inside the Family Editor. Also, the PreviewImage in a project only gives you the last type used, which is what I am sure you are seeing.
You may be able to use something like this blog post and export images from each view, but not sure it will get you want you want.
The Building Coder: Exporting Image and Setting a Default…
You have to get the Types from the Family Manager, then use the setter on the CurrentType property making it equal to the one you want.
for type in famdocs.FamilyManager.Types:
cType = famdocs.FamilyManager.CurrentType = typ
1 Like
I thought Orchid would have had it but couldn’t find one