1: GD&T Symbol
2: Tolerance 1
3: Tolerance 2 (if any)
4: Primary Datum
5: Secondary Datum
6: Tertiary Datum Take the following example : I had tried a few approach but i cant figure out a proper way to separate them (especially for tolerance 1 and tolerance 2 value)
Method 1: GetTextAtIndex
Result:
Method 2: GetFrameValues+GetFrameSymbols3GetTextAtIndex(0) = <GTOL-POSI>
GetTextAtIndex(1) = <MOD-DIAM>
GetTextAtIndex(2) = 0.4
GetTextAtIndex(3) = <MOD-MMC>
GetTextAtIndex(4) = A
GetTextAtIndex(5) = B
GetTextAtIndex(6) = <MOD-MMC>
GetTextAtIndex(7) = C
GetTextAtIndex(8) = <MOD-MMC>
Results:
So far i am able to use the GetFrameValues+GetFrameSymbols3 method to get all field as string except Tolerance 1GetFrameValues(1) = 0.4,,A,B<MOD-MMC>,C<MOD-MMC>
GetFrameSymbols3(1) = <GTOL-POSI>, <MOD-MMC>, , , <MOD-MMC>, <MOD-MMC>)
and Tolerance 2
Any1 is able to help?