The Export Part Size Generation Task will export a text document which contains the size parameters of the bounding box of a part.
The format for the Text file will be: Height, Width, Depth, X Min, X Max, Y Min, Y Max, Z Min and Z Max
Item | Meaning |
---|---|
Height | The Height of the Bounding Box |
Width | The Width of the Bounding Box |
Depth | The Depth of the Bounding Box |
X Min | The Minimum value in the X direction |
X Max | The Maximum value in the X direction |
Y Min | The Minimum value in the Y direction |
Y Max | The Maximum value in the Y direction |
Z Min | The Minimum value in the Z direction |
Z Max | The Maximum value in the Z direction |
The X, Y and Z minimum and maximum positions are calculated from the position of the origin. Therefore if your part was created with the origin in the left hand corner the minimum positions would all be zero and the maximums being the distance to the origin.
If the Part was created with the origin in the middle the X, Y and Z values would be negative for the minimum and positive for the maximum.
Property Name | Description |
---|---|
(Name) | The unique name for this task. |
Append Line | TRUE to append the bounding box data to file if it exists, FALSE to leave the original. |
File Extension | The extension of the text file (For example, txt, tsb, csv etc). .txt will be used if left blank. |
Folder | The folder that the new text file will be placed in (leave blank to use the same folder as the model). |
Overwrite | TRUE to overwrite the file if it exists, FALSE to leave the original. |
Text File | The file name of the text file (Leave blank to use the model file name). |
When this task is added the properties are dynamic by default.
See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.
Property Name | Example Rule | Example Result | Meaning |
---|---|---|---|
Append Line | TRUE | TRUE | Will add another line to the text file if it exists |
Append Line | FALSE | FALSE | FALSE will leave the original file it exists |
File Extension | PartTextFile123.txt | Leaving this blank will automatically select .txt format. | |
File Extension | "csv" | PartTextFile123.csv | This will produce an Excel document. |
Folder | "C:\My Documents\Specifications\TextFiles" | C:\My Documents\Specifications\TextFiles | This is the location of the folder where you wish to store the newly created text files. If this is left blank the same folder as the model will be used. |
OverWrite | TRUE | TRUE | This will replace an already existing file if it matches |
OverWrite | FALSE | FALSE | This will leave the original file if it already exists. |
Text file | "PartTextFile123" | PartTextFile123 | This will be the Name given to the text file when it is created. |
This Task can be added to SOLIDWORKS Parts in the following Generation Sequence(s):