Wednesday, February 14, 2018

Line Styles Embedded in Families

Line Styles Embedded in Families


Reading a thread at AUGI tonight prompted this post. Line Styles arent a thing in Revit families, the option is disabled if you attempt to review them while in the Family Editor UI.


The family discussed in the thread seems innocent enough until it is loaded into a project file. These are the line styles that are in the default template (imperial).


This is the same dialog after loading the family; nearly 100 more (98) line styles show up.


The culprit is Transfer Project Standards (TPS). It is easy to transfer line styles from a project to a family. We need Object Styles in families not Line Styles. Make sure you dont select Linestyles when/IF you use TPS.


If youve already got many rogue Line Styles you can delete them from the project and in Revit 2016 you can select more than one at a time and click Delete. Just remember if Delete is disabled then youve got a built-in (system) line style selected.

What about cleaning out the family itself? They dont give us a tool to do that. Purge Unused doesnt see them unfortunately. Robert Bell, in the AUGI Thread, offers a solution though. Load the bad family into a empty template (choose the None option for example). Delete all of the line styles you dont want. Then Save the family and overwrite the original. If the family is already loaded into your project just do the same thing, delete the line styles (its just a little harder to tell) and Save the family to overwrite the original.

While youre at it, dont use TPS on Line Patterns, like shown in the image above. Youll probably get many more than you really want too. Those can be deleted a bit more easily though.

I checked the Autodesk Exchange Apps site to see if any offer a way to purge line styles from families. I found one that does it for projects but none that claim to do it for families; at least not based on searching for that criteria. It might be something Dynamo can be used to resolve; Ill have to check into that.

---------------------

Update 08/22/2016: Dale Bartlett has shared an app to purge these embedded line styles.
Update 05/09/2017: The file is no longer where Dale shared it, I dont know where it is now so Ive removed the link.
Update 05/15/2017: Dale provided a new link to a 2017 compatible version VIA THIS URL.

visit link download