Dimension Text in SW assembly - API

Hi,

I'm having an assmebly model in SW and I'd like to use API to gte the 'Dimension Text' for each parameter in the model assembly.

I have a code which runs through the feature treein SW and outputs all the dimensional values. In an assmebly on SW, if one clicks on any dimenions, under the property manager there is a dimension text box. For example, for a diameter it says . I need this information. I have tried swDispDim.GetText(swDimensionTextAll), but got the following error:

 

 

 

The embedded interop type 'GetText' does not contain a definition for 'SolidWorks.Interop.sldworks.DisplayDimension' since it was not used in the compiled assembly. Consider casting to object or changing the 'Embed Interop Types' property to true.

Any help would be much appreciated.

Thanks

Mo

SolidworksApi macros