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: 

Points - GetUserDefinedPropertyValue - how does it work?

1 REPLY 1
Reply
Message 1 of 2
kbarnettza
406 Views, 1 Reply

Points - GetUserDefinedPropertyValue - how does it work?

Greetings,
Civil 3D 2009. VBA.
How does GetUserDefinedPropertyValue work?
For example, I created a new property under Unclassified 'User-Defined Property Classifications (under Points Settings in Tool-space) named ABC - a string property.
Then I created Points - edited their Properties, making sure to add some data under the ABC Property.
Then I tried this code:

Dim Ent1 As AcadEntity
Dim Pnt1 As Variant
ThisDrawing.Utility.GetEntity Ent1, Pnt1
Dim C3DPnt1 As AeccPoint
Set C3DPnt1 = Ent1
Dim Str1 As String
Str1 = C3DPnt1.GetUserDefinedPropertyValue("ABC")
MsgBox Str1

The Str1 variable did not get any data. What am I missing?

Thanks,
Kevin.
1 REPLY 1
Message 2 of 2

If you look in the Developer's Guide it mentions that you can't do it. It would be nice if Autodesk didn't include stuff that doesn't work in the Reference Guide .
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report