Jump to content

Modify Dim Layer


Golfdave

Recommended Posts

I have my dimensions set to go to the "Dimensions' Layer, But I was wondering if there is a way to get a specific Style to go to a different layer. I use a specific dim style for emgineering that I don't want to print and would like to have it on it's own Non Printing layer. Is there a way to do this automatically without manualy changing the layer?

Link to comment
Share on other sites

I could modify my Layer Director application to achieve this - feel free to drop me a message through my site if you want to go this route.

  • Like 2
Link to comment
Share on other sites

How are you with writing a LISP routine? This one is reasonably easy.

 

Use a Selection Set with a filter to select all dimensions with the dim style you want, something like this:

 

(setq DimSS (SSGET '((3 . "standard"))) ) ; A selection set filtering for dimstyle 'standard'

 

and then loop trough this selection set applying an 'entmod' to each for the layer (dxf code 8,)

 

Something like this:

 

  (setq acount 0)
  (while (< acount (sslength DimSS))
    (setq MyEnt (ssname DimSS acount))
    (setq ed (entget MyEnt))
    (setq ed (subst (cons 8 "NEWLAYER") (assoc 8 ed) ed ))
    (entmod ed)
    (setq acount (+ acount 1))
  ) ; end while

 

 

Edited by Steven P
Link to comment
Share on other sites

I posted some where make little defuns that set the dimension style then sets the layer then calls dim command.

 

(defun c:10 ( / )
(command "dimstyle" "R" "DIM10")
(setvar 'clayer "DIM10")
(command-s "DIM")
)

Another method

image.png.c4598199ffca41d71b43fa2110109f32.png

Edited by BIGAL
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...