1 Reply Latest reply on Oct 13, 2017 2:20 PM by Dan Frey

    How to get dimensions/size of a costing feature with Costing API?

    Bruno Gansel

      Is there a way to get dimensions (or equivalent size info) of a costing feature via Costing API?


      I've found the way to get the cost analysis details (from examples here and here) using ICostAnalysis.GetFirstCostFeature() and GetNextFeature() and now I'd like to get the underlying dimensions of these features.

      There must be some dimensional info on which Costing determines size of things.


      I've looked into SolidWorks.Interop.sldcostingapi namespace interfaces API documentation but did not find anything concrete.

      The closest things are blank sizes,  e.g. ICostAnalysisMachining.BlankSize property but that is far from actual cost feature itself, e.g. a hole size in that blank.


      So, is there a way to get to actual dimensions of costing features?