What the heck is the reason for buttons that do absolutely nothing?????
And Why does the Site Designer tool add layers to Revit???? I can understand 1 per type of object, but this is ridiculous!!
Charles Berteaux Iv
EDT BIM/VDC/Technology Department Manager | SSOE Group | Hillsboro
www.ssoe.com
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Solved! Go to Solution.
Solved by CharlesBerteaux. Go to Solution.
I don't know about all those repeated lines styles. That's crazy!
But you'll notice that the delete button is under a heading called "Modify Subcategories." You'll also notice that all the lines you have selected are Categories, not Subcategories.
All those seemingly identical subcategories are clearly a programming problem.
As for the grayed out Delete button, that button will only be active if all of the selected items are unreferenced in your model. At least one of the selected SW Parking Lot subcategories must be in use (perhaps all are).
I agree David!
This Siteworks issue (all the multiple subcategry lines SWXXX) has been escilated to Autodesk.
For now I am just going to have to manually Delete them all by hand
Charles Berteaux Iv
EDT BIM/VDC/Technology Department Manager | SSOE Group | Hillsboro
www.ssoe.com
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
We basically built a script to handle all this nonsense....
Code is here for anyone interested:
#select a detail/model line first
selection = list(__revit__.ActiveUIDocument.Selection.Elements)
if len(selection) > 0:
el = selection[0]
styles = el.GetLineStyleIds()
if len(styles):
t = Transaction(doc, 'Delete all SW Lines')
t.Start()
for s in styles:
el = doc.GetElement(s)
if el.Name[:2] == 'SW':
print ('Line Style Deleted:\nID: {0}\tNAME: {1}\n'.format(el.Id, el.Name) )
doc.Delete(s)
t.Commit()
Charles Berteaux Iv
EDT BIM/VDC/Technology Department Manager | SSOE Group | Hillsboro
www.ssoe.com
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Thank you for creating a script which automates the deletion process.
This is a known issue which is logged with our Development Group. We are currently investigating a possible resolution, but the permanent fix requires the code for the Site Designer add-in to be changed, and as such we do not have an immediate fix.
Once we do have an immediate fix, we will post it as an update to the article below:
Revit: Thousands of new Linestyles show up in project
Meanwhile if anyone wants to disable the Site Designer (It won't be loaded into Revit anymore), try this:
The site desiger assmebly is:
AutodeskSiteDesignerForRevit2015, Version=2015.1.0.0
Disable it by renaming the .addin file under the folder below:
C:\ProgramData\Autodesk\ApplicationPlugins\AutodeskSiteDesignerForRevit2015.bundle\Contents\
Rename file:
AutodeskSiteDesignerForRevit2015.addin
To:
AutodeskSiteDesignerForRevit2015.addin.bak
(this is to make the file invisible to Revit without deleting it)
Where can I run this code? Pythonshell? as a macro? I need to remove thousands of line styles.
Okay let's get the references right first.
There is no such thing as Normal line styles.
There are Line Styles and Line Patterns.
Site Designer creates extra Line Styles which this script removes.
CAD files bring Line Patterns. See if you can modify this script for your use: Wipe_deleteIMPORTLinePatterns.py
hope this helps.
Ha. Okay.
So you still have Line Styles that don't show up in API queries. I would highly suggest that you install RevitLookup and inspect the Line Style elements. Find their Element IDs and see if you can delete them by doc.Delete()
Also, you can send me a cleaned up version of your file and I can take a stab at it.
Thanks
Thanks for this suggestion. How long did the script run in Python to delete your 12,000 lines? I am trying it now and have been waiting about 20 minutes to delete one line type, of which there were hundreds, and wondering how to tell if it is working.
Thanks!
Was there ever a solution for the greyed out "delete" option, other than running a script? As someone else stated, my IT will not allow the third-party software to run a script.
My issue isn't 12000 line types. It's like 10, so if there is a manual solution it is doable.
One post said its because it is reference somewhere in the file, but I've went through the file and can't find it anywhere.
Thanks in advance for your time and help with this matter! - Sarah
Can't find what you're looking for? Ask the community or share your knowledge.