Jump to content

Flow Arrow


mgonzales

Recommended Posts

Need help i do not know the first thing about writing a lisp routine.

I was hoping that someone might already have a flow arrow routine

or be able to instruct me how to write one.

i am looking for a leader with an arrow and the prompt for a test string and the text would be placed above the leader not behind it.

 

i really appreciate if anyone can help with this.

Link to comment
Share on other sites

Here's a dynamic block I made a long while ago, not perfect but works in most cases. I put it on a toolpalette to be inserted at the dimscale with a rotation prompt. Maybe you can gather something from it.

FA-DB.dwg

Link to comment
Share on other sites

Normally in Site/Civil drawings when annotating a flow line, say a gutter line, the arrow and text are at the same angle. I don't think Qleader can do that without changing the UCS.

Link to comment
Share on other sites

I JUST USE PLINE MY SELF O FIRST POINT THAN 10 WIDTH SECOND.

 

POINT PERHAPS A SCRIPT WOULD WORK?

 

I DONT KNOW WHO RICK NOVARA IS BUT THIS CODE IS FROM ANOTHER SITE HE SEAMS TO HAVE ALL VARIABLES SET LOCAL BUT DONT REALLY KNOW IF PROGRAMM IS WORTH UPDATING.

 
;Tip1583:  AHEAD.LSP     Add Arrowhead          (c)2000, Rick Novara
(defun C:AH (/ SC LNENT LNAME PCKPT EPT EPT1 EPT2 ANG1 DD PT2 PW)
 ;draws an arrowhead on the end of a line
 (setq XOSMODE (getvar "osmode"))
 (setvar "osmode" 512)
 ;;snap nearest
 (setq SC (getvar "dimscale"))
 (setq LNENT (entsel "Pick near end of line") ;select end of line
LNAME (car LNENT) ;extract entity name
PCKPT (cadr LNENT) ;extract selection point
EPT   (osnap PCKPT "endp") ;set endpt of selected line
EPT1  (cdr (assoc 10 (entget LNAME))) ;extract start pt of line
EPT2  (cdr (assoc 11 (entget LNAME)))
 ;extract other endpt of line
 ) ;_ end of setq
 (if (equal EPT EPT1) ;test desired endpt is same as start pnt
   (setq ANG1 (angle EPT1 EPT2)) ;if it is set variable for line angle
   (setq ANG1 (angle EPT2 EPT1))
 ;if not - line angle in other direction
 ) ;_ end of if
 (setq PT2 (polar EPT ANG1 (* SC 0.20)))
 ;set arrowhead length, based on current dimscale
 (setq PW (* SC 0.08)) ;set arrowhead width
 (setvar "osmode" 0)
 (command "PLINE" EPT "W" "0" PW PT2 "") ;draw arrowhead
 (setvar "OSMODE" XOSMODE)
) ;_ end of defun
(princ "\nAHEAD.LSP loaded, Type  AH to run...  ")

Link to comment
Share on other sites

Learn the core functions!?!? You must be dreaming. :wink:

 

Perhaps I am dreaming!

It may be an add on that the company I used to work for had in their set-up of add-ons. After all, I did say that I don't have the program to look at!!

Link to comment
Share on other sites

Perhaps I am dreaming!

It may be an add on that the company I used to work for had in their set-up of add-ons. After all, I did say that I don't have the program to look at!!

I want to say something like that existed, but I had to purge all LDD knowledge just so I could function in C3D.

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