I am trying to remove my snap shots when the character is all in tolerance, it works fine for profile when I use a set for the trigger, I use IF AND ELSE but when I have multiple locations having trouble.
snap shot of area only when out of tolerance
Collapse
X
-
Something like?
Code:DIM DIM_172= PROFiLE OF SURFACE OF CIRCLE DAT_G_RAD1 FORMONLY LEAST_SQR UNITS=IN ,$ GRAPH=OFF TEXT=OFF MULT=10.00 ARROWDENSITY=100 OUTPUT=BOTH AX MEAS NOMINAL +TOL -TOL DEV OUTTOL M 0.0004 0.0000 0.0100 0.0000 0.0004 0.0000 ----|---- IF/DIM_172.M.OUTTOL<>0 ANALYSISVIEW/DIM_172,, END_IF/
Comment
-
What I am doing is If a dimension is out of tolerance I want a screen shot of the area with graph on to show the operators.
Dim 76_set= profile of surface of set set-76 formandlocation units=in ,$
graph=off text=off mult=50.00 arrowdensity=100 output=none
ax nominal +tol -tol meas dev outtol
m 0.0000 0.0100 0.0100 0.0000 0.0000 0.0000 ----|----
$$ yes,
76 light blue
viewset1 =viewset/
recall/viewset,viewset1
if/76_set.outtol==0
end_if/
else/
display/metafile, "", to fit, good
end_else/Last edited by MikeF; 07-09-2020, 06:33 AM.
Comment
-
I would change them all to what I recommended. It's basically doing the same thing, just in a more simplified way. Your original logic worked like this...
If the dimension is in tolerance (i.e. the dimension passed)
do nothing
otherwise (else)
display a screenshot on the report
My logic works like this...
If the dimension axis is NOT in tolerance (i.e the dimension failed)
display a screenshot on the report
Hope that makes sense. One thing I just spotted that will also make a difference is how you reference your dimension. In your code example you use dimension name.OUTTOL which will only work if the dimension only reports one axis (X,Y,Z,D,F,TP etc). It would be better to reference the axis explicitly, for example...
dimension name.M.OUTTOL - this would normally return the result of a distance, or GD&T dimension (except for legacy position)
dimension name.X.OUTTOL - this would return the X result, evaluated by a location dimension
dimension name.Y.OUTTOL - this would return the Y result, evaluated by a location dimension
dimension name.Z.OUTTOL - this would return the Z result, evaluated by a location dimension
dimension name.D.OUTTOL - this would return the result of a diameter evaluated by a location dimension
dimension name.TP.OUTTOL- this would return the result of a legacy position dimension
and so on...
If you're not sure what the reference is for the field you want to check, use the assignment builder : INSERT>ASSIGNMENT, click on ASSIGN FROM. Under EXPRESSION OR ELEMENT TYPE select DIMENSIONS, select the ID of the dimension you're looking at then look at the list of EXTENSIONS to find the one you're after.
Comment
Related Topics
Collapse
-
by TestedDim prof5= profile of surface of circle c008 formandlocation units=mm ,$
graph=off text=off mult=10.00 arrowdensity=100 output=both
...-
Channel: PC-DMIS for CMMs
08-12-2013, 09:35 AM -
-
by JamesMannesI have a metal sleeve that goes into a crankcase cylinder before the die is closed and a shot made. This cylinder has cylindricity called out with a...
-
Channel: PC-DMIS for CMMs
08-28-2006, 11:32 AM -
-
by Slug DawsonThe print calls out surface profile 0.5mm A|B|C (form & location). I've toleranced the dimension F&L ± 0.25. The result is 0.47. How do I...
-
Channel: PC-DMIS for CMMs
11-24-2009, 09:13 AM -
-
by KingkrabWe spend way to much time gathering data for first article's. Bubbled drawings are available when programs are made. Can the actual feature or the dimension...
-
Channel: PC-DMIS for CMMs
06-08-2011, 03:25 PM -
-
by kalepitohello everybody
my english is not very good
a have this doubt
I would like to display a comment in the report, only when a feature...-
Channel: PC-DMIS for CMMs
09-28-2012, 05:22 PM -
Comment