Jump to content

Dimensions on dwg. file


stvitor

Recommended Posts

Hi everyone!

 

I'm trying to get a lisp routine to isolate a layer and show the length of all selected lines in my drawing, but i want it to be a dimstyle.

 

 

can anyone help me please?

Link to comment
Share on other sites

You can dim a line via lisp just retrieve start and end points use Dim Align and just pick all the lines, the big but! it will possibly do the dim to the wrong side as the line is draw to left rather than to right. Now wheres my auto dim.lsp oh yeah forgot its copyrited so can not post.

;;;   autodim3.LSP   Version 1.0
;;  
;;;   by Alan
;;;   1 April 1992
;;;   
;;;  DESCRIPTION
;;;  AUTOMATICALLY DIMENSIONS 
;some code hints
(setq ppt1 (ENTSEL "\npick first point to dimension :"))
 (setq tpp1 (entget (car ppt1) ) )
 (setq pt1 (cdr (assoc 10 tpp1) ) ) 
 (setq pt2 (cdr (assoc 11 tpp1) ) ) 
(command "DIM" "aligned" pt1 pt2 pt3 "")

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...