- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey everyone, needing help with a script, Lisp, or ssget command to help clean up backgrounds we get from our clients. I know very little on using this language and have pieced together what is below but savvy enough to know how to do what I need. Any help would be greatly appreciated 🙂
Currently we are getting backgrounds with lines with forced linetypes that share the same layer with lines that are bylayer. I believe these drawings are being exported from Revit and the export setting isn't establishing new layers based off the linetypes. What I'm looking for is something that will select these forced linetypes by the layers they are on and add them to a new layer based on the linetype they were on.
Example:
Line is on layer A-GENM but has a forced linetype of Overhead. There are other lines on A-GENM that are ByLayer or Continuous that I want to leave alone. There are also other lines with LineType Overhead but on different layers. So I can't just select all forced Overhead Linetypes. But I'd like to select only the Overhead lines on Layer A-GENM and move them to a new layer called A-GENM-OVHD. Then repeat for each other layer and forced LineType.
I was trying to use something like below to run in a batch script program to several backgrounds. It works except if a drawing doesn't contain any of the lines being asked to select, the script stops.
-LAYER
N A-FLOR-FIXT-OVHD
N A-GENM-OVHD
L "Overhead" A-FLOR-FIXT-OVHD
L "Overhead" A-GENM-OVHD
CHANGE (SSGET "X" '((6 . "Overhead")(8 . "A-FLOR-FIXT"))) P LA A-FLOR-FIXT-OVHD
CHANGE (SSGET "X" '((6 . "Overhead")(8 . "A-GENM"))) P LA A-GENM-OVHD
Solved! Go to Solution.