hexagon logo

Code to Create an XactMeasure True Position Command with a diameter tolerance zone

Hey all,

So i'm trying to get around the annoyance of having to create 50+ separate true position command using exact measure manually by creating a script.

I can create the command for each however i can't find a way to change the tolerance zone to a diametrical tolerance zone...
(Click the diameter symbol box next to the tolerance)

anyone have any ideas?


-Cappy
Parents
  • I think you need to change the "toggle" datafields.

    Create a program with the XactMeasure FCF you want and export it as BASIC. Open the BAS in Notepad and you will (probably) see the code for toggling the different datafields for the FCF.


    ok, when i export this:
    FCFLOC1 =POSITION : F1
                FEATCTRLFRAME/SHOWNOMS=NO,SHOWPARAMS=YES,SHOWEXPANDED=YES
                CADGRAPH=OFF,REPORTGRAPH=OFF,TEXT=OFF,MULT=10.00,ARROWDENSITY=100,OUTPUT=BOTH,UNITS=IN
                COMPOSITE=NO,FIT TO DATUMS=YES,DEV PERPEN CENTERLINE=ON,OUTPUT ALIGNMENT=Datum Reference Frame
                CUSTOMIZED DRF=NO
                STANDARDTYPE=ASME_Y14_5
                  SIZE TOLERANCES/1,DIAMETER,10,0.0004,0.0004
                  PRIMARY DIMENSION/POSITION,[COLOR="#FF0000"]DIAMETER[/COLOR],0.05,<MC>,A,B,<MC>,<dat>
                  SECONDARY DIMENSION/<Dim>,<tol>,<MC>,<dat>,<dat>,<dat>
                  NOTE/FCFLOC1
                FEATURES/F1,,
    


    then run the same program that i exported

    i get this:

    FCFLOC1 =POSITION : F1
                FEATCTRLFRAME/SHOWNOMS=NO,SHOWPARAMS=YES,SHOWEXPANDED=YES
                CADGRAPH=OFF,REPORTGRAPH=OFF,TEXT=OFF,MULT=10.00,ARROWDENSITY=100,OUTPUT=BOTH,UNITS=IN
                COMPOSITE=NO,FIT TO DATUMS=YES,DEV PERPEN CENTERLINE=ON,OUTPUT ALIGNMENT=Datum Reference Frame
                CUSTOMIZED DRF=NO
                STANDARDTYPE=ASME_Y14_5
                  SIZE TOLERANCES/1,DIAMETER,10,0.0004,0.0004
                  PRIMARY DIMENSION/POSITION,0.05,<MC>,A,B,<MC>,<dat>
                  SECONDARY DIMENSION/<Dim>,<tol>,<MC>,<dat>,<dat>,<dat>
                  NOTE/FCFLOC1
                FEATURES/F1,,
    


    diameter, in red, does not show up... and you can't toggle to it.
Reply
  • I think you need to change the "toggle" datafields.

    Create a program with the XactMeasure FCF you want and export it as BASIC. Open the BAS in Notepad and you will (probably) see the code for toggling the different datafields for the FCF.


    ok, when i export this:
    FCFLOC1 =POSITION : F1
                FEATCTRLFRAME/SHOWNOMS=NO,SHOWPARAMS=YES,SHOWEXPANDED=YES
                CADGRAPH=OFF,REPORTGRAPH=OFF,TEXT=OFF,MULT=10.00,ARROWDENSITY=100,OUTPUT=BOTH,UNITS=IN
                COMPOSITE=NO,FIT TO DATUMS=YES,DEV PERPEN CENTERLINE=ON,OUTPUT ALIGNMENT=Datum Reference Frame
                CUSTOMIZED DRF=NO
                STANDARDTYPE=ASME_Y14_5
                  SIZE TOLERANCES/1,DIAMETER,10,0.0004,0.0004
                  PRIMARY DIMENSION/POSITION,[COLOR="#FF0000"]DIAMETER[/COLOR],0.05,<MC>,A,B,<MC>,<dat>
                  SECONDARY DIMENSION/<Dim>,<tol>,<MC>,<dat>,<dat>,<dat>
                  NOTE/FCFLOC1
                FEATURES/F1,,
    


    then run the same program that i exported

    i get this:

    FCFLOC1 =POSITION : F1
                FEATCTRLFRAME/SHOWNOMS=NO,SHOWPARAMS=YES,SHOWEXPANDED=YES
                CADGRAPH=OFF,REPORTGRAPH=OFF,TEXT=OFF,MULT=10.00,ARROWDENSITY=100,OUTPUT=BOTH,UNITS=IN
                COMPOSITE=NO,FIT TO DATUMS=YES,DEV PERPEN CENTERLINE=ON,OUTPUT ALIGNMENT=Datum Reference Frame
                CUSTOMIZED DRF=NO
                STANDARDTYPE=ASME_Y14_5
                  SIZE TOLERANCES/1,DIAMETER,10,0.0004,0.0004
                  PRIMARY DIMENSION/POSITION,0.05,<MC>,A,B,<MC>,<dat>
                  SECONDARY DIMENSION/<Dim>,<tol>,<MC>,<dat>,<dat>,<dat>
                  NOTE/FCFLOC1
                FEATURES/F1,,
    


    diameter, in red, does not show up... and you can't toggle to it.
Children
No Data