dimension macro

Discussion in 'AutoCAD' started by Mark Glenn, Jul 11, 2003.

  1. Mark Glenn

    Mark Glenn Guest

    im trying to run a macro under the linear dimension icon, where when i click
    the dim icon it switches to the dimension layer to do the dimensioning, then
    when im done it will go back automatically to the layer i was on....
     
    Mark Glenn, Jul 11, 2003
    #1
  2. Mark Glenn

    Biscuits Guest

    Try this
    ^C^CDIMBLK;.;(setq poplayer (getvar "clayer"));(setvar "clayer" "dim");_dimlinear;\\\(setvar "clayer" poplayer);

    watch the word wrap as a space will fool autocad into a carraige return. Replace "dim" with whatever you call your dimensioning layer and be sure it is enclosed in quotes.
     
    Biscuits, Jul 11, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.