09-21-2020
02:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-21-2020
02:33 PM
This is how you could access a list of the named geometry for API use:
'Access named entities
Dim myNamedEntities As NameValueMap = iLogicVb.Automation.GetNamedEntities(ThisDoc.Document).Entities
'Loop through each entity:
For i = 1 To myNamedEntities.Count
MessageBox.Show(myNamedEntities.Name(i) & vbCrLf & CType(myNamedEntities.Value(myNamedEntities.Name(i)).Type, ObjectTypeEnum).ToString, "Test")
NextAs @WCrihfield mentioned, you won't see this list in the iLogic browser when you are actively editing a rule, but they should be usable.
If you know the name of the object you want you can pull it without getting other entities:
Dim entityToGrab As Object = iLogicVb.Automation.GetNamedEntities(ThisDoc.Document).FindEntity("Entity Name")