Units and formatting of output values

Top | Previous | Next

 

When generating the final text in the output of a Front-End program, it is important to take into account the format of the data received by the CNC machine tool. It should be borne in mind that Autodesk Inventor stores data in its own internal format. For example, all distance values are stored in cm and angle dimensions in radians. Therefore, when generating data in the Front-End program, it is important to convert the data into the required format. For example, in Europe many machines accept distances in metric, i.e. mm, while the USA uses the imperial system, i.e. inches. In addition, it may be important how many decimal places the system needs to declare. This can be three or decimal places, zeroes may be required in decimal places, decimals may be omitted, etc. For this formatting of output values, Woodwork for Inventor JS Macro and Post-processor APIs provide the possibility to describe the output formats and use them where needed in the program.

 

hmtoggle_plus1Format Definitions
hmtoggle_plus1Output Variable Definitions