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
  • Edit: Sorry, I misread your question - the below code gets the *names* of the features, not the *type*. I guess you need to find the feature with the right name, and get the type from that.

    I don't know exactly how to do it in a script, but in plain PC-DMIS you do it with

    DIM DIST1= 2D DISTANCE FROM PLANE PLN4 TO CYLINDER CYL1     (CENTER TO CENTER),NO_RADIUS  UNITS=MM,$
    GRAPH=OFF  TEXT=OFF  MULT=10.00  OUTPUT=BOTH
    AX    NOMINAL       MEAS       +TOL       -TOL        DEV     OUTTOL
    M        1.256      1.256      0.000      0.000      0.000      0.000 #--------
                ASSIGN/V1=GETCOMMAND(1107, "UP", 1)
                ASSIGN/V2=GETTEXT("Reference Id", 1, V1)
                ASSIGN/V3=GETTEXT("Reference Id", 2, V1)
    
  • I see in a plain pc-dmis program "FROM PLANE PLN4 TO CYLINDER CYL1" and by seeing that I'm assuming that should exist command which in conjunction with feature ((REF_ID, 1) or (REF_ID, 2)) should give output of type of feature (es example type of (REF_ID,1)). My problem is that by having name of feature as example (REF_ID, 1) I can't manage to get type of feature.
Reply
  • I see in a plain pc-dmis program "FROM PLANE PLN4 TO CYLINDER CYL1" and by seeing that I'm assuming that should exist command which in conjunction with feature ((REF_ID, 1) or (REF_ID, 2)) should give output of type of feature (es example type of (REF_ID,1)). My problem is that by having name of feature as example (REF_ID, 1) I can't manage to get type of feature.
Children
No Data