extraction type of feature

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
    Last edited by Darius11; 01-07-2020, 07:09 AM.

  • #2
    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

    Code:
    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)
    Last edited by AndersI; 01-07-2020, 09:05 AM.
    AndersI
    SW support - Hexagon Metrology Nordic AB

    Comment


    • AndersI
      AndersI commented
      Editing a comment
      If you have the name of the feature you can locate the command that creates the feature. From this command you can extract the feature type.

    • Darius11
      Darius11 commented
      Editing a comment
      Could you please add small example how to get TYPE for (REF_ID, 1) or (REF_ID, 2)? (REF_ID, 1) is first feature for dimension, (REF_ID, 2) is second feature.

    • AndersI
      AndersI commented
      Editing a comment
      Actually, the "can" in my previous message is more of a "should be able to" - I'm almost certain I have extracted type info in some old Excel macro, but I can't find it atm.

Related Topics

Collapse

Working...
X