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

Programming and macros
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 599

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

Unread post 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
by Austin Schukar » Tue Jan 04, 2022 11:44 am
IDisplayDimension::GetText Method should help get you there. Take a look at swDimensionTextPrefix/swDimensionTextSuffix.

Also:

Get Dimension Values in Drawing Example (VBA)
Go to full post
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
Austin Schukar
Posts: 98
Joined: Thu Mar 18, 2021 11:19 am
Answers: 1
Location: St. Louis, MO
x 289
x 56

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

Unread post 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)
Austin
Post Reply