edit sline property using autolisp

edit sline property using autolisp

WinslowNorth
Enthusiast Enthusiast
254 Views
2 Replies
Message 1 of 3

edit sline property using autolisp

WinslowNorth
Enthusiast
Enthusiast

i can access the propery i want to edit but vlax-put-property returns the message "ActiveX Server returned an error" Type mismatch"

below is an example of the autolisp code i am using.

(setq e (car (entsel)))
(setq vlaobj (vlax-ename->vla-object e))
(vlax-get-property vlaobj 'InsulationType)
(vlax-get-property vlaobj "InsulationType" "?")

0 Likes
255 Views
2 Replies
Replies (2)
Message 2 of 3

jabowabo
Mentor
Mentor

You can read some P3D properties with the LISP API, but you cannot modify any properties with it. The .NET API is the only API that supports this.

Message 3 of 3

DVaquand
Advisor
Advisor

Hello @WinslowNorth 

 

If you Dump the VLA entity you will see that the Plant3D properties (P&ID or 3D) are read-only.
(vlax-dump-object <entityName>)
To be able to modify Plant 3D properties, you must use the DotNet APIs.

 

== French ==

 

Si vous faites un Dump de l'entité VLA vous verrez que les propriétés Plant3D (P&ID ou 3D) sont en lecture seule.
(vlax-dump-object <entityName>)
Pour pouvoir modifier des propriétés Plant 3D il faut passer par les API DotNet.

 

Cordialement
Dominique VAQUAND
www.dovaq.fr

Cette publication vous a-t-elle été utile ? N’hésitez pas à attribuer la mention J’aime à cette publication.
Avez-vous obtenu la réponse à votre question ? Cliquez ensuite sur le bouton ACCEPTER LA SOLUTION.

EESignature