Properties of a non-AutoCAD element

Properties of a non-AutoCAD element

jerzy.bajor
Contributor Contributor
356 Views
6 Replies
Message 1 of 7

Properties of a non-AutoCAD element

jerzy.bajor
Contributor
Contributor

I'm starting to use an Autocad overlay that has its own (non-Autocad) elements.
I tried '(vla-get-NumberOfBars...)' but it didn't help. An error occurred, which was to be expected.

01.jpg

I can view the properties of this element, but I can no longer download them for further processing.
Is there any way to get to this data.
The 'aliens' here are definitely: NumbersOfBars, Position, Multiplier, Diameter, Distance. DistanceStr.

0 Likes
357 Views
6 Replies
Replies (6)
Message 2 of 7

Kent1Cooper
Consultant
Consultant

Does the (getpropertyvalue) function get it for you?  Read about it.

 

Or the other (vla) approach?

(vlax-get elem "NumberOfBars")

Kent Cooper, AIA
0 Likes
Message 3 of 7

jerzy.bajor
Contributor
Contributor

Unfortunately, the getpropertyvalue function does not allow you to obtain this value.
The properties window, on the other hand, allows you to change it, so there is some way to get in and change its value.

02.jpg

0 Likes
Message 4 of 7

EnM4st3r
Advocate
Advocate

have you tried  vlax-get-property?

(vlax-get-property (vlax-ename->vla-object (car (entsel))) "NumberOfBars")

 

0 Likes
Message 5 of 7

Kent1Cooper
Consultant
Consultant

Is there a Forum somewhere for the overlay program you're using?  It seems like an overlay-program rather than an AutoCAD question.

Kent Cooper, AIA
0 Likes
Message 6 of 7

Sea-Haven
Mentor
Mentor

Looks like a proxy object as suggested by Kent, can be hard or easy to get at.

0 Likes
Message 7 of 7

jerzy.bajor
Contributor
Contributor

It worked.
To access the data, you had to run any command from this overlay.
It happened by accident.

0 Likes