TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: DEVITG on April 18, 2005, 07:54:00 PM

Title: DUMP objetc propierties
Post by: DEVITG on April 18, 2005, 07:54:00 PM
Hi all , I had done this code , to get all the objects propierties of each entity of a drawing

Code: [Select]
;; TO GET ALL THE object's propierties  ON A DRAWING
(defun get-object  ()
  (setq et (entnext))
  (while et
        (SETQ objet-name (vlax-ename->vla-object et))
;;(prin1 objet-name)
   
   (setq object-propierties (vlax-dump-object objet-name  ) )
 
(prin1 object-propierties)
    (terpri)
    (setq et (entnext et))
  )
)

(get-object)



But this line does  not  PRIN1 the object propierty


Code: [Select]
(prin1 object-propierties)



At the HELP this is stated

Quote
Note that vlax-dump-object displays the information in the window from which you issued the command. However, the function returns T to the calling program, not the information displayed in the Command window.



My question , there is any way I can print or save in a file such OBJECTS-PROPIERTIES???????
Title: DUMP objetc propierties
Post by: Kerry on April 18, 2005, 08:19:43 PM
Not EXACTLY what you want < not programmatic >

Search for
Logging Console Window Activity
in the developers help.

Quote
Create a log file by choosing File -> Toggle Console Log from the VLISP menu. Note that the Console window must be active for the Toggle Console Log option to be available.   .... >>>>