Managing Line Styles - Principle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm looking to put together an add on that manages line styles within a project, I'm happy with the coding for this but am interested in getting thoughts from everyone on how this will work in principle.
So I'm looking to do the following:
1. User pick a line style to remove from the project.
2. Routine builds a FilteredElementCollector of the line class.
3. The routine iterates all lines and makes a list of lines which use the style to be removed (using the 'Line Style' parameter).
4. The routine iterates the list from item 3 above, swaps all lines to a new line style.
5. The routine then deletes the line style to be removed (as nothing should be using it (hopefully)).
So I'm happy with the above, but I'm unsure if I get a FilteredElementCollector of the line class whether I'll get all Elements within the project that are using the line style, for instance, I don't believe it will find lines that are being used in a filled region...
So any thoughts on the above, is there a better way of finding all objects that use the Line Style I want to remove?
Cheers,