×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Diesel expressions/macros?

Diesel expressions/macros?

Diesel expressions/macros?

(OP)
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.

RE: Diesel expressions/macros?

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

RE: Diesel expressions/macros?

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources