Skip to main content
1-Visitor
July 15, 2021
Question

VBA GTOL

  • July 15, 2021
  • 1 reply
  • 942 views

To my surprise I found an item type of GTOL, having trouble figuring out what to set gtol to...

 

Set gtols = hole.ListSubItems(EpfcModelItemType.EpfcITEM_GTOL)

 

     Dim gtol as Ipfc????

 

Any help would be greatly appreciated!

1 reply

17-Peridot
July 21, 2021

Not sure that you can get GTOL using this method

 

Function ListSubItems (Type as IpfcModelItemType [optional]) as IpfcModelItems [optional]

 
Lists the component model items that make up the feature.

Following are the subitems that can get listed with this method: ITEM_SURFACE, ITEM_EDGE, ITEM_QUILT, ITEM_CURVE, ITEM_POINT, ITEM_AXIS, ITEM_COORD_SYS and ITEM_DIMENSION.
Manual References:
ModelItem: Getting ModelItem Objects, ModelItem: Getting ModelItem Objects
Parameters:
Type
The type of subitem you want to find
Returns:
The list of subitems of the specified type