Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing MEP duct properties via lisp eg LiningThickness and Insulation

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
281 Views, 0 Replies

Changing MEP duct properties via lisp eg LiningThickness and Insulation

Hello,

Please does somebody know why the following lisp retuns an error "lisp value has no coercion to VARIANT with this type:"

It really should work. Select a MEP duct.

(setq obje (vlax-ename->vla-object (car (entsel))))
(vlax-put-property obje 'InsulationThickness 0)

or even this gets the property - which it does OK and then try to set it to the same.

(setq lith (vlax-get-property obje 'LiningThickness))
(vlax-put-property obje 'InsulationThickness lith)

Thanks in advance
David
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost