Message 1 of 3
Accessing GeometryIntent.Geometry.ModelGeometry.ContainingOccurrence.

Not applicable
09-04-2012
02:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm trying to capture out the containing occurrence property value from a list of geometry intent objects. Below is the beginning of the circus hoops I'm jumping through. Getting the "PropertyDescriptorCollection" only works for the top level property: "Geometry". I'm able to find the "ModelGeometry" property but, am unable to dig any deeper using the "PropertyDescriptorCollection" method. Is there a preferred method to collecting this data? Can I get there from where I'm at, if so, how?
Thank you in advance.
Function GetGeometryIntent(ByVal _intentList As List(Of GeometryIntent), ByVal _compDisplayName As String) As List(Of GeometryIntent) Dim _result As New List(Of GeometryIntent) Dim _geometryProps As PropertyDescriptorCollection ' Dim _modelGeometryProps As PropertyDescriptorCollection ' Dim _containingOccurrenceProps As PropertyDescriptorCollection Dim _prop1, _prop2, _prop3 As PropertyDescriptor For I As Integer = 0 To _intentList.Count - 1 _geometryProps = TypeDescriptor.GetProperties(_intentList(I).Geometry) For Each _prop1 In _geometryProps If _prop1.Name.ToUpper = "MODELGEOMETRY" Then
' ????????????????????????????????????????????? ' Here is where I need help.
End If
Next _prop1
Next I
Return _result
End Function