Message 1 of 10
Convert (Un)named Groups to Blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need convert 1000 groups to 1000 blocks.
I need each angle to be detected for LISP code, I have groups with same elements but are rotated.
no matter if groups or block are unnamed or named.
In Google, I found this one lisp but just work with 1 group at each time :
; rename version ; original code by ASMI rename by Alan H (defun c:pb (/ lPt) (and(setq lPt(getvar "LASTPOINT")) (vl-cmdf "_.copybase" lPt (ssget) "") (vl-cmdf "_.pasteblock" lPt) (setq objname (assoc 2 (cdr(entget (entlast))))) (vl-cmdf "_.erase" "_p" "") (command "-rename" "block" (cdr objname) (getstring "Enter new name")) ) (princ) ); end of c:pb