Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp method to change userdefinedproperties

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
meads
271 Views, 2 Replies

Lisp method to change userdefinedproperties

I am trying to write a lisp that can change the user defined property of a parcel. The property is "Rotation". Here is the bit of code.

  (setq parc (vlax-ename->vla-object (car (entsel "\nSELECT PARCEL" ))))

  (vlax-invoke parc 'GetUserDefinedPropertyValue "Rotation" )

I get this error:  SELECT PARCEL; error: Civil 3D API: Unspecified error

 

Any help is greatly appreciated.

Labels (2)
2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: meads

The Parcel UDP methods have never worked in lisp (or COM, for that matter). This can be done using the .NET API.

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
meads
in reply to: Jeff_M

Okay thank you for the reply. I will have to try .net.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report