Jump to content

Making a line...... wait for it... don't laugh!


Recommended Posts

Posted

It is rather embarrasing. But it has been a while since i have done it this way.

 

I am not crazy. I know I made a line using some command or something? It would let me simply pick a point where ever, or an end point and type in a distance and an azimuth.

 

very simple? Yea?

 

a distance: e.g. 150.00 and the azimuth 180.3030 instead of 180d30'30" I didn't use the "Shift+@" distance "shift+

 

NOw the nice thing about how ever i did this was i could hit the up arrow key and cycle through previous distances and azimuths!!!

 

I KNOW I DID THIS!!!

 

Now do you think for the life of me i can remember how i did this?

 

NO.

 

I need someone to tell me i am not crazy. :shock::shock::shock: Right? I just did this like three months ago. And i did it all the time at a previous job. I didn't just pull this out of thin air.

 

HELP, anyone... ??

Posted

You probably used a lisp to draw a line something like this

 

(defun bear (P1)
  (setq ang_ans ""    
     ans_deg ""
     ans_min ""
     char_found ""
     ans_secs "")

 (setq ang_ans (getstring "\nEnter bearing angle in Deg.MMSS :"))
 (setq ans_len (strlen ang_ans))
 (setq x 0)
 (while (/= char_found ".")
   (setq x (+ x 1))
   (setq ans_deg (strcat ans_deg char_found))
   (setq char_found (substr ang_ans x 1))
   (if (= x 9)(setq char_found "."))
  )
  (setq x (+ x 1))
  (setq ans_min (substr ang_ans x 2))
  (setq x (+ x 2))
  (setq ans_secs (substr ang_ans x 2))
      
   (if (= ans_min "")(setq ans_min "0"))
   (if (= ans_secs "")(setq ans_secs "0"))
   (setq ang (dtr (+ (atof ans_deg)(/ (atof ans_min) 60.0)(/ (atof ans_secs) 3600.0))))    
   (setq dist (getdist P1 "\nLength of boundary ? (m) :") )
   (setq p2 (polar p1 ang dist))

Posted

 

NOw the nice thing about how ever i did this was i could hit the up arrow key and cycle through previous distances and azimuths!!!

 

INPUTHISTORYMODE variable ... change the value from 15 (probably ;) ) to 14 ... that should do the trick

Posted
INPUTHISTORYMODE variable ... change the value from 15 (probably ;) ) to 14 ... that should do the trick

 

I like that, never seen it before. It looks like 15 would be okay, my guess is that the OP's value is set to 0. :thumbsup:

Posted

nope :) ... 15 is default value and doesn't work so it should be changed...14 is OK, but dynamic input must be off for that feature to work ... that was true for 2008 version and older, maybe they changed something :D

Posted

dyn.jpg

 

In AutoCAD, you'd also have to set the "base direction" to North instead of East to enter azimuth. (Units > Direction)

Posted

Thanks gang. None of these were how i was doing it. I am so confused. I know i was keying in the azimuths as dd.mmss I don't get it.But thanks for the suggestions.

 

 

nope :) ... 15 is default value and doesn't work so it should be changed...14 is OK, but dynamic input must be off for that feature to work ... that was true for 2008 version and older, maybe they changed something :D

 

this was great though..... This did work. Awesome.

Posted
Nestly has the solution nailed...

 

No. Not really. I had my dynamic input settings set to that already. lol.

 

But in everyones defense, i was a bit spastic with my request. rereading it back it kinda comes off like unclear ramblings of a madman. That was frantic that afternoon.

 

Forgetting that command was like when you forget where you put your car keys and after five hours of looking you find yourself looking thru your neighbors trash "Just in case" you may have thrown them in his garbage...????

 

Anyways, the magic command i was looking for was actually 'zd.

 

thanks anyways for all the suggestions. And i have passed Morea's suggestion on to our entire department. Was a huge hit with everyone.

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