according to a request and a hint by personal mail
I have changed my MainDim macro a little, so that now it is available as English macro too.
See attached zip file and use the international version
For German speeking people there is the German versionincluded too!
the MainDim macro allows You to define several dimensioins/variables witihn a part/psm or asm to be merged into one property MainDim (name could be defined in XML)
For every dimension You can define a leading separator, which could be a single character ("x") or any combination of characters (", L=")
If the dimension is a diameter, I automatically add a diameter symbol in front of the value.
If You have not defined any dimension or variable (by the way You also can set to expose any of them) I analyze the surrounding box in x,y,z and use them as main dimension for property.
Another request was to allow the definition of an offset value for any of these main dims to get a raw dimension property (Raw material info)
For sheetmetal parts I also analyze the flat pattern, calculating the total cut length, number of cuts, length of the maximum bend, cutting time with a table of used cut speed for laser cuts, I started to get a basi info about costs, allowing a cost value for every bend, for every square meter of gage, for any kg of gage, etc.
Besides this You can automatially save the flat pattern as DXF to a well defined directory.
The sheet metal info is based on my old SheetLaser macro which now is included into the main dim macro
Hope this info helps, but don't hestitate to further ask wathever is interesting for YOu.
can You explain what exactly and where You are trying to "convert" those values?
To be honest, for all those settings there are only numbers (values) in the xml setup file, aren't they?
I never had in mind different units, so maybe the macro will lag in those area a little.
Is something to consider, I suppose.
@hawcad, For what purpose would someone use this macro? This is not a criticism, it's just that I don't know what its purpose is having never tried to use it.
the MainDim macro was created due to several request a couple of years ago.
In the first version it only calculated the surrounding box dimensions in x,y,z from the given model, to show them in the draft header.
This was expanded by several additional values and dimensions to show main part dimensions and raw dimensions.
For sheet metal parts there already existed the sheet alser macro (what's now implemented in the cost calculation of SE2019)
I brought them together and the result now is the MainDim macro.
Does it use the "Flat_Pattern_Model_CutSizeX" and Y variables for the raw sheet metal size?