
To get or set the file locations for Costing templates and Costing report templates, you can use the SolidWorks API and call ISldWorks::GetUserPreferenceStringValue or ISldWorks::SetUserPreferenceStringValue with: The detailed line items in the report help you determine the impact of design decisions on cost. You can also create reports of Costing results using the SolidWorks Costing tool. A total cost for all of the features is tabulated and a final unit cost is returned. After the manufacturing features are recognized, Costing categorizes each manufacturing feature and applies the correct information from the template to cost out the specific manufacturing features. The templates include information about material, machining, and labor costs. The SolidWorks Costing tool provides templates that associate manufacturing features with their costs. Getting each Costing feature or subfeature, ICostFeature object, and getting or setting its analysis data.Machining Costing analysis, ICostAnalysisMachining object, and getting or setting its analysis data.Sheet metal Costing analysis, ICostAnalysisSheetMetal object, and getting or setting its analysis data.Creating or getting each Costing body's:.Getting the Costing bodies, ICostBody objects.Creating or getting the common Costing analysis, ICostAnalysis object, and getting and setting its analysis data.Getting the Costing model, ICostPart object.Getting the CostingManager, ICostManager object, and getting the Costing templates.Getting the model document, IModelDoc2 object.Getting or setting the Costing template folders and Costing Report template folders using ISldWorks::GetUserPreferenceStringValue or ISldWorks::SetUserPreferenceStringValue (see Templates).Opening a sheet metal or machining part.NOTE: install_dir is typically C:\Program Files\SolidWorks Corp\SolidWorks. C# or VB.NET: or install_dir\ api\redist\CLR2\.VBA: SldCostingAPI version Type Library or install_dir\ sldcostingapi.tlb.Adding a reference to either the SolidWorks Costing API type library or primary interop assembly:.Writing a SolidWorks Costing API application typically involves:
