Points - GetUserDefinedPropertyValue - how does it work?

Points - GetUserDefinedPropertyValue - how does it work?

Anonymous
Not applicable
505 Views
1 Reply
Message 1 of 2

Points - GetUserDefinedPropertyValue - how does it work?

Anonymous
Not applicable
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.
0 Likes
506 Views
1 Reply
Reply (1)
Message 2 of 2

Civil3DReminders_com
Mentor
Mentor
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
0 Likes