Author Topic: vlisp novice  (Read 4170 times)

0 Members and 1 Guest are viewing this topic.

allanp

  • Guest
vlisp novice
« on: October 02, 2004, 07:51:06 AM »
As my heading states im an absolute novice at this but as part of my college course i have to learn basic vlisp programming.
Problem is my notes are double dutch to me ( i live in scotland) no offense to Dutch peopleand my first activity is to write and test code for drawing a 7 sided polygonat a predefined location on the screen with an edge lengthspecific from an user input. Can anyone lend a hand to explain how i would go about this or even show mw how to lay it out.

Thanks
Allan

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
vlisp novice
« Reply #1 on: October 02, 2004, 08:26:48 AM »
Could it be as easy as using the polygon command and a couple of user prompts?
TheSwamp.org  (serving the CAD community since 2003)

JohnK

  • Administrator
  • Seagull
  • Posts: 10637
vlisp novice
« Reply #2 on: October 02, 2004, 08:59:25 AM »
Hold up,

Take your time and think about how the program should go. Write down sentences explaining each step you think the program should take.

Post that and what ever code you got and you will get tons of help!
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
vlisp novice
« Reply #3 on: October 02, 2004, 09:03:40 AM »
To build upon Se7en's thoughts, think about the EXACT process you would go through to draw it long hand, then when you have documented every step you would take (and I mean every step including doing mathematical calculations)start your post with that as your pseudo code, of dourse it may need to be rearranged a bit but it will give you an exact foundation upon which to build your program.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

hendie

  • Guest
vlisp novice
« Reply #4 on: October 02, 2004, 09:09:13 AM »
hey ! I live in Scotland and can nearly understand Lisp  :P

Craig

  • Guest
vlisp novice
« Reply #5 on: October 07, 2004, 07:44:14 AM »
Quote from: hendie
hey ! I live in Scotland and can nearly understand Lisp  :P

Yeah, but he's in Glasgow :)

hendie

  • Guest
vlisp novice
« Reply #6 on: October 07, 2004, 08:00:15 AM »
:P  :P  :P

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
vlisp novice
« Reply #7 on: October 07, 2004, 08:59:22 AM »
allanp,
You can't see it yet but that is an easy routine using the 'command'.
As they said enter the needed info at the command line to draw the polygon.
Repeat this step until you get it right, the sequence that is.
Then press F2 key and look at the prompts there and your response to those
prompts. Now look in the VLIDE help for 'command'. Look at the examples.
Click on the links to look at other examples. Find 'Pause for user input'.
All of the info is there. Make an attempt to form just that part, that one
line of code using the command and post it here and some one will help
you sort it out.
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.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
vlisp novice
« Reply #8 on: October 07, 2004, 04:16:50 PM »
Of course, since the class is about Vlisp, I'd suggect steering away from any "Command" solution and doing it completely in Lisp/ActiveX....

So, allenp, read carefully what Keith & Se7en said.....then come back and ask for comments on how you solved it, or at least have an idea of how to solve it.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
vlisp novice
« Reply #9 on: October 07, 2004, 04:24:02 PM »
Humm, vl-cmdf doesn't count?
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.

daron

  • Guest
vlisp novice
« Reply #10 on: October 08, 2004, 02:04:58 PM »
I never thought so. I would think his teacher would prefer to see the use of polar and the various car subrs.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
vlisp novice
« Reply #11 on: October 08, 2004, 02:39:34 PM »
Jeff & Daron
I think you are correct. I'm always looking for the short cut.
But it looks like our student is missing.
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.