added xref management and proxygraphics
This commit is contained in:
@@ -5,10 +5,12 @@ Clean dwg files before linking them to Revit
|
|||||||
### Current features:
|
### Current features:
|
||||||
|
|
||||||
- change to model space
|
- change to model space
|
||||||
|
- binds and detaches all xrefs (you can uncomment this line so it only detaches them)
|
||||||
- remove all xlines from model space and from blocks
|
- remove all xlines from model space and from blocks
|
||||||
- delete all points from modelspace
|
- delete all points from modelspace
|
||||||
- move hatches to separate layers
|
- move hatches to separate layers
|
||||||
- attribute definitions not in block to txt because they are not showing up in Revit
|
- attribute definitions not in block to txt because they are not showing up in Revit
|
||||||
|
- PROXYGRAPHICS=1 (one less annoying dialog)
|
||||||
- purge
|
- purge
|
||||||
- audit
|
- audit
|
||||||
- save as 2013 dwg
|
- save as 2013 dwg
|
||||||
@@ -17,6 +19,5 @@ Clean dwg files before linking them to Revit
|
|||||||
|
|
||||||
- move closer to origin
|
- move closer to origin
|
||||||
- remove layouts
|
- remove layouts
|
||||||
- do something with xrefs(bind or purge)
|
|
||||||
- replace heavy linestyles and hatches
|
- replace heavy linestyles and hatches
|
||||||
- ask for units for automatic import
|
- ask for units for automatic import
|
||||||
@@ -4,13 +4,25 @@
|
|||||||
;
|
;
|
||||||
._MODEL
|
._MODEL
|
||||||
;------------------------------------------------------------
|
;------------------------------------------------------------
|
||||||
;XREF manegement is completely disabled until I fix it
|
;XREFS: bind and detach all
|
||||||
;._-xref
|
(defun C:bindAndDetachXrefs (/ blk)
|
||||||
;r
|
(graphscr)
|
||||||
;*
|
(foreach x
|
||||||
;._-xref
|
(mapcar 'cadr (ssnamex (ssget "_X" '((0 . "INSERT") (410 . "MODEL")))))
|
||||||
;b
|
(setq blk (cdr (assoc 2 (entget x))))
|
||||||
;*
|
(if (assoc 1 (tblsearch "block" blk))
|
||||||
|
(progn
|
||||||
|
(command "_.-xref" "_bind" blk)
|
||||||
|
(command "_.-xref" "_detach" blk)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
;If you don't want to bind just detach uncomment the following line:
|
||||||
|
bindAndDetachXrefs
|
||||||
|
;------------------------------------------------------------
|
||||||
|
;Detach all xrefs.
|
||||||
|
._-xref d *
|
||||||
;------------------------------------------------------------
|
;------------------------------------------------------------
|
||||||
;deleteAllXlines.lsp: deletes all xlines in modelspace
|
;deleteAllXlines.lsp: deletes all xlines in modelspace
|
||||||
(defun C:dax (/ ss)
|
(defun C:dax (/ ss)
|
||||||
@@ -154,6 +166,8 @@ sephatch
|
|||||||
)
|
)
|
||||||
AttDef2Text
|
AttDef2Text
|
||||||
;------------------------------------------------------------
|
;------------------------------------------------------------
|
||||||
|
PROXYGRAPHICS
|
||||||
|
1
|
||||||
._-PURGE
|
._-PURGE
|
||||||
a
|
a
|
||||||
*
|
*
|
||||||
|
|||||||
21
source scripts/bindAndDetachXrefs.lsp
Normal file
21
source scripts/bindAndDetachXrefs.lsp
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
;; bindAndDetachXrefs.lsp
|
||||||
|
;;
|
||||||
|
;; bind and detach all xrefs, detach missing
|
||||||
|
;;
|
||||||
|
;; Created by Peter Gyetvai
|
||||||
|
;; gyetpet@mailbox.org
|
||||||
|
|
||||||
|
(defun C:bindAndDetachXrefs (/ blk)
|
||||||
|
(graphscr)
|
||||||
|
|
||||||
|
(foreach x
|
||||||
|
(mapcar 'cadr (ssnamex (ssget "_X" '((0 . "INSERT") (410 . "MODEL")))))
|
||||||
|
(setq blk (cdr (assoc 2 (entget x))))
|
||||||
|
(if (assoc 1 (tblsearch "block" blk))
|
||||||
|
(progn
|
||||||
|
(command "_.-xref" "_bind" blk)
|
||||||
|
(command "_.-xref" "_detach" blk)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user