Page 1 of 1

Export Dimension from Drawing (Hole Callout, Number of Instance, etc)

Posted: Tue Jan 04, 2022 7:26 am
by zwei
I am trying to modify the following macro and is a bit stuck...
https://www.codestack.net/solidworks-ap ... imensions/

What i would like to add is:
1. Export the number of instance, even if it is added by user (for the image below, 4X)
2. Export the full information of hole callout (2X and end condition information)
image.png
Appreciate if anyone could point me to a feasible method/command

Re: Export Dimension from Drawing (Hole Callout, Number of Instance, etc)

Posted: Tue Jan 04, 2022 11:44 am
by Austin Schukar
IDisplayDimension::GetText Method should help get you there. Take a look at swDimensionTextPrefix/swDimensionTextSuffix.

Also:

Get Dimension Values in Drawing Example (VBA)