Extract properties from the current drawing with getpropertyvalue

Extract properties from the current drawing with getpropertyvalue

carlos_m_gil_p
Advocate Advocate
975 Views
4 Replies
Message 1 of 5

Extract properties from the current drawing with getpropertyvalue

carlos_m_gil_p
Advocate
Advocate

Hello how are you.

You could tell me how to extract properties from the current drawing with getpropertyvalue.

Thank you


AutoCAD 2026
Visual Studio Code 1.99.3
AutoCAD AutoLISP Extension 1.6.3
Windows 10 (64 bits)

0 Likes
Accepted solutions (1)
976 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

Try this:

(command "_circle" "2,2" 2)
nil

(getpropertyvalue (entlast) "radius")
2.0

 

Júnior Nogueira.

Por favor,  Aceitar como Solução se meu post te ajudar.

Please Accept as Solution if my post helps you.

Message 3 of 5

carlos_m_gil_p
Advocate
Advocate

Sorry, I wrote the function wrong.

I want Extract properties from the current drawing with dumpAllProperties

Currently I use it like this (dumpAllProperties (car (entsel)) 1)

But not of any object, I want is of the current drawing.

Sorry, my mistake.

 

 


AutoCAD 2026
Visual Studio Code 1.99.3
AutoCAD AutoLISP Extension 1.6.3
Windows 10 (64 bits)

0 Likes
Message 4 of 5

doaiena
Collaborator
Collaborator
Accepted solution

If you want to get information from the drawing itself, you should use the document object.

(vl-load-com)
(vlax-dump-object (vla-get-activedocument (vlax-get-acad-object)))

0 Likes
Message 5 of 5

carlos_m_gil_p
Advocate
Advocate

Hi, doaiena, thanks for the help.

I wanted the function dumpAllProperties, but it works for me. Thank you.


AutoCAD 2026
Visual Studio Code 1.99.3
AutoCAD AutoLISP Extension 1.6.3
Windows 10 (64 bits)

0 Likes