hexagon logo

Have the roundness of an auto-circle in a variable

Hi there,

I am trying to have the roundness of an auto-element in a variable. I cannot use a dimension as I have 30,000 circles and try to export all of these roudnesses via a script to a txt file.

Does anyone knows how to call the roundness of an auto-circle into a variable?

Thanks in advance.
Parents
  • hi,

    you can try it out and see if it works.
    Unfortunately, I didn't have any measurement data to hand,
    so I don't know exactly if this works, but looks good so far.

    basically it's like @ ​ said
    Note that with this variant, the names of the circles should be countable​ like this: NAME_1 NAME_2 NAME_n​
    however the "name"-part can be changed, (only make sure you can count it up)

    ASSIGN/VCOUNT_MAX=4
    ASSIGN/VCOUNT_ACTUAL=0
    ASSIGN/VROUNDNESS=0
    
    WHILE/VCOUNT_ACTUAL < VCOUNT_MAX
    
    ASSIGN/VCOUNT_ACTUAL=VCOUNT_ACTUAL+1
    ASSIGN/VNAME="NAME_"+STR(VCOUNT_ACTUAL)
    
    RND =GEOMETRIC_TOLERANCE/STANDARD=ISO 1101,SHOWEXPANDED=YES,
    FEATURE_MATH=DEFAULT,
    UNITS=MM,OUTPUT=BOTH,ARROWDENSITY=100,
    SEGMENT_1,CIRCULARITY,0.01,TOL_ZONE_MATH=DEFAULT,
    TEXT=OFF,CADGRAPH=OFF,REPORTGRAPH=OFF,MULT=10,
    MEASURED:
    NAME_4:0.000,
    FEATURES/VNAME,,
    
    $$ YES,
    VNAME
    $$ YES,
    RND.SEGMENT[1].FEATURE[1].MEAS
    
    ASSIGN/VROUNDNESS[VCOUNT_ACTUAL]=RND.SEGMENT[1].FEATURE[1].MEAS
    
    END_WHILE/​
    


    nice workSunglassesAlien
Reply
  • hi,

    you can try it out and see if it works.
    Unfortunately, I didn't have any measurement data to hand,
    so I don't know exactly if this works, but looks good so far.

    basically it's like @ ​ said
    Note that with this variant, the names of the circles should be countable​ like this: NAME_1 NAME_2 NAME_n​
    however the "name"-part can be changed, (only make sure you can count it up)

    ASSIGN/VCOUNT_MAX=4
    ASSIGN/VCOUNT_ACTUAL=0
    ASSIGN/VROUNDNESS=0
    
    WHILE/VCOUNT_ACTUAL < VCOUNT_MAX
    
    ASSIGN/VCOUNT_ACTUAL=VCOUNT_ACTUAL+1
    ASSIGN/VNAME="NAME_"+STR(VCOUNT_ACTUAL)
    
    RND =GEOMETRIC_TOLERANCE/STANDARD=ISO 1101,SHOWEXPANDED=YES,
    FEATURE_MATH=DEFAULT,
    UNITS=MM,OUTPUT=BOTH,ARROWDENSITY=100,
    SEGMENT_1,CIRCULARITY,0.01,TOL_ZONE_MATH=DEFAULT,
    TEXT=OFF,CADGRAPH=OFF,REPORTGRAPH=OFF,MULT=10,
    MEASURED:
    NAME_4:0.000,
    FEATURES/VNAME,,
    
    $$ YES,
    VNAME
    $$ YES,
    RND.SEGMENT[1].FEATURE[1].MEAS
    
    ASSIGN/VROUNDNESS[VCOUNT_ACTUAL]=RND.SEGMENT[1].FEATURE[1].MEAS
    
    END_WHILE/​
    


    nice workSunglassesAlien
Children