cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Translate the entire conversation x

Get GTOL (Feature control frames) in VBA.

DM_3062498
7-Bedrock

Get GTOL (Feature control frames) in VBA.

We want to get details of every GTOL (Feature control frames) created in on the every sheet (sheet wise).

                session.GetModelWindow(model).Activate()

                sheet = model

                Dim drawing = CType(model, IpfcDrawing)
                Dim nsheets = drawing.NumberOfSheets

                Dim sheetData = drawing.GetSheetData(1)
                Dim test = drawing.ListItems(EpfcModelItemType.EpfcITEM_ANNOTATION_ELEM)
                Dim mItem = CType(sheet, IpfcModelItemOwner)

                Dim feats = mItem.ListItems(EpfcModelItemType.EpfcITEM_GTOL)


But we cant get any GTOL in feats.
We tried quering dimensions, we get those dimensions. but from mulitple sheets.

How can i get GTOLs. how we can understand to which sheet they belong.

ACCEPTED SOLUTION

Accepted Solutions

As per the answer here, we cant get Geometric Tolerance object using VB. 
https://www.ptc.com/en/support/article/CS63551

View solution in original post

2 REPLIES 2

Hello @DM_3062498

 

Thank you for using PTC Community.

Your questions has not received a response so far. 
In order to receive meaningful responses from other community members, could you please provide more details and context regarding your inquiry? Specifically:
 

  1. Are you working with a specific CAD software version or Windchill integration?
  2. Have you checked if GTOLs are stored differently compared to other annotations?
  3. Have you tried listing all annotation elements and filtering for GTOLs separately? This might help isolate the issue.

This will enhance the likelihood of receiving valuable assistance from other Community members.

You might also find it useful to refer to this informative video on how to ask a good question
I hope this information is helpful.

Best Regards,
Vivek N
Community Moderation Team.

As per the answer here, we cant get Geometric Tolerance object using VB. 
https://www.ptc.com/en/support/article/CS63551

Announcements

Top Tags