Get all available properties

Get all available properties

jtm2020hyo
Collaborator Collaborator
850 Views
4 Replies
Message 1 of 5

Get all available properties

jtm2020hyo
Collaborator
Collaborator

I am learning to write lisp, but I have some questions:
How to get all available properties for autolisp and visual lisp in a list, for AutoCAD Vanilla, Civil 3D, AutoCAD MEP or any AutoCAD vertical?

Maybe with vlax-dump-object and anything more?

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

Kent1Cooper
Consultant
Consultant
Accepted solution

There's another set of Properties for the (getpropertyvalue)/(setpropertyvalue) world [some have the same names, some are not in the VLA properties listing and vice versa, and some are in both but with different names]:

 

(dumpallproperties EntityName)

Kent Cooper, AIA
Message 3 of 5

john.uhden
Mentor
Mentor
Accepted solution

@jtm2020hyo ,

@Kent1Cooper gave you excellent advice (as he always does), but it dumps only to the screen.

I had posted an extruded way to write the info to a file, but I can't find it now.  Maybe someone else can.

John F. Uhden

Message 4 of 5

paullimapa
Mentor
Mentor
Accepted solution

attached is a modified version of @Kent1Cooper 

instead of listing the object to a text file vlax-dump-object function is used

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exracting-list-properties-of-objects...

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 5 of 5

Sea-Haven
Mentor
Mentor
Accepted solution

Use dumpit.lsp press F2 then just copy and paste to notepad, how many times do you really need to remember all the values, I just copy the relevant property names into code so dont get typo's.