The Export Mass Properties Generation Task will export the mass properties to a text file.
Property Name | Description |
---|---|
(Name) | The unique name for this task. |
File Extension | The extension for the file to export the mass properties to. For example txt, tsb, csv, etc. If left blank the file extension will be txt. |
Folder | The folder that the file will be placed in. Leave blank to use the same folder as the model. |
Overwrite | TRUE to overwrite the file if it already exists, FALSE to leave the original. |
Text File | The name of the file. If left blank the model name will be used. |
When this task is added the properties are static 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 |
---|---|---|---|
File Extension | "txt" | txt | The file will be saved with the extension txt |
Folder | "Export" | Export | The file will be created in the folder Export, relative to the specification. |
Folder | "\\FileServer\DriveWorks\Export" | Export | The file will be created in the folder DriveWorks\Export, on the network machine \\FileServer. |
Overwrite | True | True | Will overwrite any existing file with the same name. |
Text File | "Mass Properties "&DWSpecificationID | Mass Properties 154 | The file will be named Mass Properties 154. Where 154 is the ID of the specification. |
The results will be exported using MKS (meter, kilograms, second), the file produced will look like the example below:
Name, Value Centre of Mass X, -0.349969733973315 Centre of Mass Y, -0.410256397727366 Centre of Mass Z, -0.200253719991442 Volume, 0.04491896206364 Surface area, 6.55346527701567 Mass, 25.9658260170902 Density, 578.059350086996 Moments of inertia Lxx, 2.83131999773305 Moments of inertia Lyy, 2.44210655232725 Moments of inertia Lzz, 3.69063387041974 Moments of inertia Lxy, -5.12692097429051E-05 Moments of inertia Lzx, 0.000123971162831201 Moments of inertia Lyz, 0.000363163953510563
This Task can be added to SOLIDWORKS Parts and Assemblies in the following Generation Sequence(s):