Click or drag to resize

ExtensionGetCostingProperties Method

Runs costing operation and returns costing data.

Namespace:  CADSharpTools.SOLIDWORKS.Costing
Assembly:  CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntax
public static Dictionary<string, Object> GetCostingProperties(
	this ModelDoc2 swModel,
	string pathName
)

Parameters

swModel
Type: ModelDoc2
Model object.
pathName
Type: SystemString
Costing template pathname.

Return Value

Type: DictionaryString, Object
A dictionary of operations, their estimated time, combined time and cost.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ModelDoc2. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
If the part's material exists in the specified template, the method will set the material class and name accordingly and run costing twice to get an accurate costing estimation.
See Also