Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Active Member
Posts: 9
Registered: ‎04-20-2007
Message 1 of 1 (125 Views)

Changing MEP duct properties via lisp eg LiningThickness and Insulation

125 Views, 0 Replies
12-17-2009 12:05 PM

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
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.