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
  • Turning .visible off dramatically improves performance. Slight smile

    edit: Most of my post was cut.

    Avoid for each, use an integer counter and .item to retrieve commands.

    Yeah, extracting geometrical information.

    edit2:
    Personally I loop through the program once, building up a reference table as I go. I then use the table to access the features related to whatever dimension found.
Reply
  • Turning .visible off dramatically improves performance. Slight smile

    edit: Most of my post was cut.

    Avoid for each, use an integer counter and .item to retrieve commands.

    Yeah, extracting geometrical information.

    edit2:
    Personally I loop through the program once, building up a reference table as I go. I then use the table to access the features related to whatever dimension found.
Children
No Data