Originally Posted by
tedg
I'm looking for a solution for this exact problem... anyone out there have a solution?
Or maybe a post-export LISP routine that will do something like:
Select all entities on the viewport layer (in my case its "G-ANNO-NPLT" layer),
Change anything NOT a viewport to another layer?
Anyone have something like that?
Thanks
An update to this post... I have written a routine for this purpose, that is actually part of a bigger program to change a bunch of stuff to AutoCAD drawings exported from Revit.
BTW..part of the bigger code that happens before this actually makes required layer(s), so I didn't include it in this code.
This code simply changes all "lines" that are on the exported viewport layer (in our case: "G-ANNO-NPLT" layer) to the same layer the title tags are on (in our case: "G-ANNO-TTLB" layer).
Hope this helps someone with the same issue
Code:
(defun c:foo (/ vplin)
(setq vplin (ssget "x" '((0 . "line")(8 . "G-ANNO-NPLT"))))
(command "_chprop" vplin "" "_layer" "G-ANNO-TTLB" "")
(princ)
)