Read and Write Custom of a Block using autolisp

Read and Write Custom of a Block using autolisp

22352065NTPYQ
Participant Participant
278 Views
3 Replies
Message 1 of 4

Read and Write Custom of a Block using autolisp

22352065NTPYQ
Participant
Participant

What is the autolisp syntax to read and write Custom of a block . It can be seen by selecting the object and executing command "PR (PROPERTIES)"  through UI.
I am using Autocad electrical 2025.

Screenshot 2025-02-19 165908.png

0 Likes
Accepted solutions (1)
279 Views
3 Replies
Replies (3)
Message 2 of 4

Sea-Haven
Mentor
Mentor

Electrical may have blocks that are proxy objects re custom objects, may need Electrical to get at those objects, similar problem with CIV3D. 

 

Can you post a sample dwg.

Message 3 of 4

komondormrex
Mentor
Mentor
Accepted solution

@22352065NTPYQ 

normally the following expressions will work to get/set dynamic block properties

(getpropertyvalue (car (entsel)) "AcDbDynBlockPropertyDistance1")
(setpropertyvalue (car (entsel)) "AcDbDynBlockPropertyDistance1" 5)
Message 4 of 4

22352065NTPYQ
Participant
Participant

Thanks a lot

0 Likes