Author Topic: initiate a repeat of prompts while in "line" command  (Read 6535 times)

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: initiate a repeat of prompts while in "line" command
« Reply #15 on: April 28, 2008, 04:36:58 PM »
Alan, How about a challange for you?
How about using grread like this:
Code: [Select]
1 - Option for lines or plines
2 - Get start point
3 - Get direction, numeric keypad or arrow keys
       numbers 1 7 9 3 = 45 degree lines
       else if ENTER then quit.
4 - Get distance, Feet then if dot key get decimal feet
      else if space bar or minus key get inches
      else if ENTER end of distance
5 - Repeat 3 and 4

1 would be easy enough, just prompt for it, then have separate subroutines.
3 would just be a matter of doing a condition that would run a separate subroutine. one for n, s, e, w, one for the others and just have it setq if 9 to N  E, 1 to S  W so you could get a @dist<NdbearE

btw, alan, i originally used 1 as NE for quadrants
1 = NE quad
2 = SE quad
3 = SW quad
4 = NW quad

i had thought about the option for 45° angles but it just wasn't as important for the initial run.
i'll def. see if i can get it to work though.

i was thinking about, after the first drawn line, it would prompt only for 90° from the drawn line. and if i added 45° angles, it would add that tool
(ie: my first line was due north then the next prompt would be:
Next direction 6=Right(E), 4=Left(W), 7=NW 45°, 9=NE 45°, 3=SE 45°, 1= SW45°), <Quit>:
);ie heh heh
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: initiate a repeat of prompts while in "line" command
« Reply #16 on: April 28, 2008, 04:39:39 PM »
i suppose the ideal thing to do would be to have it calc an angle (90° or 45°) from the last drawn line and then draw from there.
then after first line, prompt options would only be right, left, right up 45°, left up 45°, right down 45°, left down 45°
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: initiate a repeat of prompts while in "line" command
« Reply #17 on: April 28, 2008, 05:02:44 PM »
Look at (polar pt ang dir)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

SomeCallMeDave

  • Guest
Re: initiate a repeat of prompts while in "line" command
« Reply #18 on: April 28, 2008, 06:32:53 PM »
You may know this already, but if you 'indicate' the desired direction with the mouse and type a distance,  the line or pline command will draw a segment in that direction at that distance.

If you set up your polar tracking with the needed angles, you can really whip through building footprints

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: initiate a repeat of prompts while in "line" command
« Reply #19 on: April 28, 2008, 07:42:26 PM »
You may know this already, but if you 'indicate' the desired direction with the mouse and type a distance,  the line or pline command will draw a segment in that direction at that distance.

If you set up your polar tracking with the needed angles, you can really whip through building footprints

yeah, that's how i would do it, i was just hoping to be able to take my hand off the mouse and leave it off until i closed the building (or had to pan a little)

btw, how do you make those videos?
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

SomeCallMeDave

  • Guest
Re: initiate a repeat of prompts while in "line" command
« Reply #20 on: April 28, 2008, 08:08:42 PM »
I use Camtasia.  I  think the sister product, SnagIt, will capture video too.  http://www.techsmith.com

daron

  • Guest
Re: initiate a repeat of prompts while in "line" command
« Reply #21 on: April 29, 2008, 08:47:43 AM »
In case cost is a problem, I just found and tried camstudio.