control dimensional constraint from lisp

control dimensional constraint from lisp

Shay.Gaghe
Advocate Advocate
217 Views
2 Replies
Message 1 of 3

control dimensional constraint from lisp

Shay.Gaghe
Advocate
Advocate

hi

 

i have a drawing with dimensional constraint applied. 

now , a dimensional constraint can behave as either a constraint or as a reference,

user have to set the Reference property to Yes or No.

so actually i want to control this property from lisp or any other language. 

 

is it even possible?

 

ShayGaghe_0-1666845389740.png

 

Thnks

Shay

Using Autocad 2018, Autocad Architecture.
Please accept as solution if i solved your problem
0 Likes
218 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

(setpropertyvalue (car (entsel)) "DimConstrReference" 1)

0 Likes
Message 3 of 3

Sea-Haven
Mentor
Mentor

Lee-mac has an excellent Dynamic block suite of defuns. Setproperty is not available for Bricscad.

 

So you can pop dcl's asking for input d1 & say d2, set visibilty states and much more. The latter put all the visibilty values into a dcl so when its inserted the correct visibilty is displayed saves having to go to the little triangle and select. 

 

(defun LM:setdynpropvalue ( blk prp val ) ; block as vl object - prp is property name d1 - val is new value

 

You could do something like this

SeaHaven_0-1666855372945.png

 

 

 

 

0 Likes