Custom Property write to Density and Hatch Pattern
Custom Property write to Density and Hatch Pattern
(OP)
I need to drive the density value and hatch pattern for a SW part file from corresponding Configuration Specific Properties. Any ideas?






RE: Custom Property write to Density and Hatch Pattern
RE: Custom Property write to Density and Hatch Pattern
For density, perhaps you could copy the body and assign a density to the copy. Use "Delete Body" to get the original out of the way, and suppress the copies in the various configurations.
RE: Custom Property write to Density and Hatch Pattern
Our PDM (Smarteam) can not write to system properties, only cust/config. specific so after that it's a SW macro that will have to populate the system properties. We populate material part number, description, part number etc. I'm just wanting to get some engineering data too.
RE: Custom Property write to Density and Hatch Pattern
Regards
RE: Custom Property write to Density and Hatch Pattern
To set density, you can use:
Part.SetUserPreferenceDoubleValue swMaterialPropertyDensity, density
For crosshatch:
Part.SetUserPreferenceStringValue swMaterialPropertyCrosshatchPattern, sCrossHatchName
Regards,
Brenda
RE: Custom Property write to Density and Hatch Pattern
I forgot that you're using SmarTeam. SmarTeam also employs event-type "hooks" to which you can attach scripts to be run when triggered by certain activities (for example, before check-in, after check-out, etc.) At this point your script that writes values from your custom properties to density and cross-hatch could run.
--Brenda
RE: Custom Property write to Density and Hatch Pattern