Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Diesel expressions/macros?

Status
Not open for further replies.

ohiocad

Structural
Apr 6, 2001
193
We're working on porting our old LT2000 menu over to Acad 06, adding/adjusting parts of it, and there's a problem I can't figure out. We have it set up to automatically adjust dimension styles based on the drawing scale. But, the problem I can't solve is how to get it to adjust the dimension SUBstyles, like Style2:angular.

When I list one of the angular dimensions, it lists it as Style2$2. Running through the macro, trying to get it to set that style current, the $ confuses it, and it hiccups. I guessed (hoping, and tried:
-dimstyle restore "style2$2"
and
-dimstyle restore (style2$2)
but neither works. This is a whole new world for me, getting into the programming, even the basic stuff, so any help would be appreciated.
 
Replies continue below

Recommended for you

Hi ohiocad,

You'll need to set the parent style current, Style2 not Style2$2. Then when you use whatever dimension this Style2$2 is associated with, AutoCAD will apply the proper sub-styles to the apropriate dimension entity.

HTH
Todd
 
Thank you for the rapid reply, I guess I should have been a bit more descriptive with what we're trying.

We draw full scale in model space, with dimensions and notes also in model space, per many of our customer's standards, adjusted for the scale the final sheet will print at.

What we have the macro doing, is automatically seting text size, ltscale, limits, snap/grid spacing, and dimscale , among others, to the scale factor for the drawing, i.e. (32 : 3/8" = 1'-0")
The problem occurs with Style2, for the dimensions. Some of our customers prefer to have different arrowheads for angular vs. linear. (closed-filled vs. oblique) Unless I've goofed something up, when it macro updates the dimscale for Style2 to 32, the dimscale for style2:angular (style2$2) remains unchanged.

Per your post, we do set Style2 current, but when dimensioning one of the sub-styles, i.e. angular, radial, etc, it comes in at the wrong scale, since I can't get the macro to change that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor