hexagon logo

extraction type of feature

Hello, I do need extract types of features used for 2d/3d dimensions. As per program example below:

{DIM DIST8B= 3D DISTANCE FROM PLANE PLN1 TO CYLINDER CYL4,SHORTEST=OFF,NO_RADIUS UNITS=MM,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
AX NOMINAL +TOL -TOL MEAS MAX MIN DEV OUTTOL
M 1.433*1 0.55*1 0.2*1 1.433 1.433 1.433 0.000 0.000 --#-------
FCFPROF3 =SURFACE PROFILE : PLN1}

Here is distance between PLANE and CYLINDER. Any ideas how to extract types of features?

P.S. I do have code which working without type of features, problem is that execution of script doing a lot of scan and it taking far too long. My goal is to execute code only if code is relevant with type of feature.
Parents
  • My data structure is very simple, it contains 3 columns.
    1-st column contains ID of constructed SET features (SCN1, SCN2 ....) which is used for profile outputs
    2-nd contains ID's of points which was used to create SET features, planes, lines, and circles
    3-rd contains tolerances of TP and profile.
    Basically in first step, script looking in the CMM program for TP output and populating REF_ID to excel 2-nd column and tolerance to excel 3-rd column. In second step script looking in the CMM program for constructed set features then to excel 1-st column adding SET ID (SCN1, SCN2 ....) to 2-nd column populating ID's of all points used to create SCN and in 3-rd column populating tolerance of profile. In third step script looking in the CMM program for constructed lines, planes and circles then by using constructed feature REF_ID in excel 2-nd column looking for matching feature ID, when feature have been found then script copying profile tolerance of SCN feature and populating to third column and ID to 2-nd column.
    2-nd column I do use for calculation of tolerances of basic dimensions.

    [ [TABLE="border: 0, cellpadding: 0, cellspacing: 0"]
    [TR]
    [TD="width: 64"]CYL2[/TD]
    [TD="width: 64"]CYL2[/TD]
    [TD="width: 64, align: right"]0.35[/TD]
    [/TR]
    [TR]
    [TD]SCN2[/TD]
    [TD]PNT31[/TD]
    [TD="align: right"]0.5[/TD]
    [/TR]
    [TR]
    [TD]SCN2[/TD]
    [TD]PNT30[/TD]
    [TD="align: right"]0.5[/TD]
    [/TR]
    [TR]
    [TD] [/TD]
    [TD]CIR1[/TD]
    [TD="align: right"]0.3[/TD]
    [/TR]
    [/TABLE]
    ]
Reply
  • My data structure is very simple, it contains 3 columns.
    1-st column contains ID of constructed SET features (SCN1, SCN2 ....) which is used for profile outputs
    2-nd contains ID's of points which was used to create SET features, planes, lines, and circles
    3-rd contains tolerances of TP and profile.
    Basically in first step, script looking in the CMM program for TP output and populating REF_ID to excel 2-nd column and tolerance to excel 3-rd column. In second step script looking in the CMM program for constructed set features then to excel 1-st column adding SET ID (SCN1, SCN2 ....) to 2-nd column populating ID's of all points used to create SCN and in 3-rd column populating tolerance of profile. In third step script looking in the CMM program for constructed lines, planes and circles then by using constructed feature REF_ID in excel 2-nd column looking for matching feature ID, when feature have been found then script copying profile tolerance of SCN feature and populating to third column and ID to 2-nd column.
    2-nd column I do use for calculation of tolerances of basic dimensions.

    [ [TABLE="border: 0, cellpadding: 0, cellspacing: 0"]
    [TR]
    [TD="width: 64"]CYL2[/TD]
    [TD="width: 64"]CYL2[/TD]
    [TD="width: 64, align: right"]0.35[/TD]
    [/TR]
    [TR]
    [TD]SCN2[/TD]
    [TD]PNT31[/TD]
    [TD="align: right"]0.5[/TD]
    [/TR]
    [TR]
    [TD]SCN2[/TD]
    [TD]PNT30[/TD]
    [TD="align: right"]0.5[/TD]
    [/TR]
    [TR]
    [TD] [/TD]
    [TD]CIR1[/TD]
    [TD="align: right"]0.3[/TD]
    [/TR]
    [/TABLE]
    ]
Children
No Data