cancel
Showing results for 
Search instead for 
Did you mean: 

Checking for the Existence of a Property, Subpart Collection, or Connection in a Part Family

Community Manager Community Manager
Community Manager

In this example, “Engine” is the system name of the property, subpart collection or connection that is being checked.

 

Me.Parent is the reference chain to the part family that is being checked for the existence of the “Engine” property, subpart collection or connection.

 

If Me.Parent.Properties.ContainsKey(“Engine”) Then

               ‘checks for the existence of a property named Engine in the parent part

End If

 

 

If Me.Parent.Subparts.ContainsKey(“Engine”) Then

               ‘checks for the existence of a subpart collection named Engine in the parent part

End If

 

 

If Me.Parent.Connections.ContainsKey(“Engine”) Then

               ‘checks for the existence of a connection named Engine in the parent part

End If

Contributors