hexagon logo

Dimension Bonus

Hello All,

i originally didn't think about this.
However having played around a little bit and noticing a few of my older reports showing OOT due to not calculating a dimensions "Bonus" into it's tolerance of measure, what is the easiest way to pull out a dimensions bonus.

I tried DimensionCommand.Bonus in a script and it returns 0 every time.
I found this snippet in the help file:
"This function only works for single true position objects, i.e., DIMENSION_TRUE_Z_LOCATION, but not DIMENSION_TRUE_START_POSITION or DIMENSION_TRUE_END_POSITION. If used on any other object type, getting this variable will return zero."
So i guess I would have to pull from the "DF" & D1-D* locations then?
I tried the "TP" location but it returns nothing. This would be ideal however.

Is there a way to pull whether or not a dimenions has MMC or LMC active?
As well as with Datums?

What about the FCF generated by ExactMeasure?
Parents
  • I mean it catches some potential problems, not all, as you type code. I forget what it is exactly but it does a few things one of them is live sytax checking.



    All it does is demanding that variables in the script are declared before used, but that is a very valuable check. You should always have it as first line in your script.

    Option Explicit
    Forces explicit declaration of all variables.
    The Option explicit statement is used outside of the script in the declarations section. This statement can be contained in a declare file or outside of any script in a file or buffer. If this statement is contained in the middle of a file the rest of the compile buffer will be affected.
Reply
  • I mean it catches some potential problems, not all, as you type code. I forget what it is exactly but it does a few things one of them is live sytax checking.



    All it does is demanding that variables in the script are declared before used, but that is a very valuable check. You should always have it as first line in your script.

    Option Explicit
    Forces explicit declaration of all variables.
    The Option explicit statement is used outside of the script in the declarations section. This statement can be contained in a declare file or outside of any script in a file or buffer. If this statement is contained in the middle of a file the rest of the compile buffer will be affected.
Children