GetUserDefinedPropertyValue - Enumeration

GetUserDefinedPropertyValue - Enumeration

Anonymous
Not applicable
419 Views
1 Reply
Message 1 of 2

GetUserDefinedPropertyValue - Enumeration

Anonymous
Not applicable
I only saw one thread regarding the UPDs, so here's my question on it. I
simply need to extract the values, so I thought this would be nice and
simple. Unfortunately, wehn the data type of the UDP is Enumeration, I get
the "unspecified error" which Laurie spoke of in the one thread I found.
The below code does work fine with a string typed UDP.

I tried passing several different things to this, as well. The
documentation says you "Can pass in the property name, or the property
object". I tried both, neither of which did the trick.

For Each oParc In oSite.Parcels
Debug.Print oParc.Name & ": " &
oParc.GetUserDefinedPropertyValue("Type")
Next oParc

Any thoughts (beyond not using Enumerations) would be appreciated.
0 Likes
420 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I just realized I posted this here. I think it's more appropriate in the
Civil3D.Customization group.

"TomD" wrote in message
news:[email protected]...
0 Likes