|
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
)
<ExtensionAttribute>
Public Shared Function GetCostingProperties (
swModel As ModelDoc2,
pathName As String
) As Dictionary(Of String, Object)
Parameters
- swModel
- Type: ModelDoc2
Model object. - pathName
- Type: SystemString
Costing template pathname.
Return Value
Type:
DictionaryString,
ObjectA 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