Jump to content

Annotative Breakline (annotation)


Recommended Posts

Is there a way to make the Breakline symbol (found in Expresstools) annotative? So it scales according to the Annotation Scale on the lower status bar, and in paperspace.

 

edit: I just noticed that Leaders don't work in Paperspace either. Linear Dimensions, however, do.

Link to comment
Share on other sites

  • 1 year later...

I'm going to bump this up, because it's been a year.

I also know that the Breakline is related to the Dimscale. I don't think Dimscale is affected when using Annotative Dimensioning.

Does this mean that I have to change the Dimscale if I want to make a larger breakline (for plan views vs. details)?

Link to comment
Share on other sites

When I check properties of a break line it is a polyline. It should be scaled with your other line work. Why do you need it annotative?

 

Regardless, just make it an annotative block.

Link to comment
Share on other sites

Years ago I wrote my own where the size of a "zig-zag" depends on the length of the first line drawn. Try it, maybe you'll like it.

 

(defun c:brr (/ p1 p2 p3 p4 p5 p5a p6 d1 d2 d4 dd2 api a1 a2 a3 e1 e2 )
 (command "_.undo" "begin")
 (setq osn (getvar "osmode"))
 (setq oort (getvar "orthomode"))
 (setvar "orthomode" 0)
 (setvar "osmode" 0)
 (setq	p1 (getpoint "\n First point: ")
p2 (getpoint p1 "\n Second point:")
 )
 (command "pline" p1 p2 "")
 (setq	d1  (distance p1 p2)
d2  (* d1 0.2)	; change the number in this line to adjust the size of zig-zag
api (/ pi 180)
a1  (angle p1 p2)
a2  (+ a1 (* api 63))
p3  (polar p2 a2 d2)
a3  (+ a1 (* api 284))
dd2 (* d2 (sin (* api 63)))
d3  (/ (* dd2 2) (cos (* api 14)))
p4  (polar p3 a3 d3)
p5  (polar p4 a2 d2)
p5a (getpoint p5 "\n Third point:")
d4  (distance p5 p5a)
p6  (polar p5 a1 d4)
e1  (entlast)
 )
 (command "pline" "" p3 p4 p5 p6 "")
 (setq e2 (entlast))
 (command "pedit" e1 "j" e2 "" "")
 (command "trim" e1 "" pause)
 (setvar "osmode" osn)
 (setvar "orthomode" oort)
 (command "_.undo" "end")
 (princ)
)
 (princ "\n Type <  brr > to draw Breakline Symbol: ")

 

Edit: Remove the trim feature if you don't like to have it there by placing semicolon in front of this line >

;(command "trim" e1 "" pause)

Edited by paulmcz
Link to comment
Share on other sites

I was going to write a macro to change the dimscale, execute Breakline, then change the dimscale back. Is it true that Macros / Custom Commands only work with a button, and not command line?

Link to comment
Share on other sites

SLW - an annotative block would require too many clicks. 1 to insert, then 1 for each extension line, plus picking the block. Breakline works well, it's fast and simple.

 

Because it appears a macro only works with a button, and I use the keyboard commands, I tried a LISP (which I suck at).

I can not change the dimscale with Annotative Dimension style. So then I am trying to change the Size and Extension of the Breakline. But when I try the LISP the command line says "unknown command "Breakline"". Which tells me that LISP can't see Express Tools commands? Does that sound right?

 

(I am not a member of the Swamp and I need to Log in to see that article)

Link to comment
Share on other sites

I ended up creating a macro and a button. It looks like this:

 

^C^Clayer;s;S-HAT;;breakline;s;1/4;e;1/4;\\;breakline;s;1/16;e;1/16;^C^Clayerp

 

It changes to my Hatch layer, executes Breakline, changes the Size and Extension, pauses for my 2 points user input, changes the Breakline Size and Extension back to my default (which is suitable for 3/4" scale drawings), then converts to previous layer. It works quite well.

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