Hi all, I have a lot of families with material and subcategories not used and this increase file size. I was thinking to write a utility to remove all unused materials and subcategories in family editor, because Purge all doesn't work and all those entities remain in family.
Here are subcategories listed in Object Styles and some materials are mapped directly to them:
Some of this subcategories are mapped to the solids in Materials and Finishes properties and should not be deleted:
Remaining unused subcategories and materials could be removed:
I realize that this is difficult task and was wondering if it's possible to clean up families via API. Thank you!
Hi all, I have a lot of families with material and subcategories not used and this increase file size. I was thinking to write a utility to remove all unused materials and subcategories in family editor, because Purge all doesn't work and all those entities remain in family.
Here are subcategories listed in Object Styles and some materials are mapped directly to them:
Some of this subcategories are mapped to the solids in Materials and Finishes properties and should not be deleted:
Remaining unused subcategories and materials could be removed:
I realize that this is difficult task and was wondering if it's possible to clean up families via API. Thank you!
Here is an example how to purge unused materials:
The Building Coder has discussed several approaches to other purge functionalities as well:
http://thebuildingcoder.typepad.com/blog/2017/11/purge-and-detecting-an-empty-view.html#2
Cheers,
Jeremy
Here is an example how to purge unused materials:
The Building Coder has discussed several approaches to other purge functionalities as well:
http://thebuildingcoder.typepad.com/blog/2017/11/purge-and-detecting-an-empty-view.html#2
Cheers,
Jeremy
Thank you, Jeremmy!
I have seen Harry's solution, but it works only in project, not in family editor and not all unused materials are deleted. Also that solutions is not deleting unused subcategories.
Thank you, Jeremmy!
I have seen Harry's solution, but it works only in project, not in family editor and not all unused materials are deleted. Also that solutions is not deleting unused subcategories.
I want the same thing corvect
I want the same thing corvect
Hi,
Import the Families into a Empty project file (don't need to be placed), then export them again.
All unused user created subcategories will be gone.
If the project is clean, (no materials attached to any category/sybcategory) the export will be relative clean of materials, you even can purge/delete unused materials in the project and export the families after.
See if this helps.
- Michel
Hi,
Import the Families into a Empty project file (don't need to be placed), then export them again.
All unused user created subcategories will be gone.
If the project is clean, (no materials attached to any category/sybcategory) the export will be relative clean of materials, you even can purge/delete unused materials in the project and export the families after.
See if this helps.
- Michel
Can't find what you're looking for? Ask the community or share your knowledge.