Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

_Write GROUP-names to ASCII

2 REPLIES 2
Reply
Message 1 of 3
serge
92 Views, 2 Replies

_Write GROUP-names to ASCII

Can anyone help me out please...
I want to write (LISP-prog) all the existing GROUP-names to an ASCII-file
(I know how to open, write and close a ASCII-file),
but how do i get grip on the GROUP (object GROUP) names ?
Thanks !
SMD
DEVIDTS Serge, CAD Consultant
http://www.CADdICT.be
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: serge

A2K+

;GRP:LIST-GROUPS__________________________________
;Argument 1) Document object
;Returns upper-case list of groups

(defun grp:list-groups (doc / return)
(vlax-for group (vla-get-groups doc)
(setq return (cons (vla-get-name group) return))
)
(mapcar 'strcase (reverse return))
)
--
Cliff

"smd" wrote in message
news:f087158.-1@WebX.maYIadrTaRb...
| Can anyone help me out please...
| I want to write (LISP-prog) all the existing GROUP-names to an ASCII-file
| (I know how to open, write and close a ASCII-file),
| but how do i get grip on the GROUP (object GROUP) names ?
| Thanks !
| SMD
|
Message 3 of 3
BillZ
in reply to: serge

(dictsearch (namedobjdict) "ACAD_GROUP")

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost