Author Topic: Help for LISP beginner  (Read 6148 times)

0 Members and 1 Guest are viewing this topic.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Help for LISP beginner
« Reply #15 on: November 19, 2014, 06:20:06 PM »
@  rus7755:
If your Lisp file contains multiple versions of c:90 the newest version should come last in the file.

owenwengerd

  • Bull Frog
  • Posts: 451
Re: Help for LISP beginner
« Reply #16 on: November 19, 2014, 06:41:58 PM »
I ran the routine and it still behaved the same way  - bombing out after the base point is selected...

Phrases like "bombing out" are really not appropriate for a technical forum where precise descriptions are critical. You're more likely to resolve the problem if you copy and paste the exact error message, and include the exact steps you took that led up to the error.

BlackBox

  • King Gator
  • Posts: 3770
Re: Help for LISP beginner
« Reply #17 on: November 19, 2014, 07:06:33 PM »
1+

Always nice to see you at TheSwamp, Owen.
"How we think determines what we do, and what we do determines what we get."

owenwengerd

  • Bull Frog
  • Posts: 451
Re: Help for LISP beginner
« Reply #18 on: November 19, 2014, 07:25:59 PM »
Always nice to see you at TheSwamp, Owen.

Thanks BB. I lurk a lot, just don't jump into the fray much.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Help for LISP beginner
« Reply #19 on: November 19, 2014, 07:29:16 PM »
1+

Always nice to see you at TheSwamp, Owen.

+ 12



I ran the routine and it still behaved the same way  -
< .. >
thanks,
rus7755

rus7755,

Which version did you load and run ?

The versions posted by Keith, Ron, Alan and BlackBox should all work.
« Last Edit: November 19, 2014, 07:32:48 PM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Help for LISP beginner
« Reply #20 on: November 19, 2014, 10:01:24 PM »
I am a very green rookie of lisp but try loading selection and it will not bomb out.

Phrases like "bombing out" are really not appropriate for a technical forum where precise descriptions are critical. You're more likely to resolve the problem if you copy and paste the exact error message, and include the exact steps you took that led up to the error.
Or as Owen advised and trying to be more descriptive and focused.


  • Run VLIDE Command
  • Press Ctrl+N in Visual Lisp editor to create a new file
  • Copy and paste the code samples in this thread into file
  • Now highlight one of the samples and press the "Load Selection" button as shown in picture
  • Test the command then load another selection and test it




Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Help for LISP beginner
« Reply #21 on: November 19, 2014, 10:15:07 PM »
I am a very green rookie of lisp but try loading selection and it will not bomb out.

< .. >

I'd do a couple of additional things,

SAVE the file before you attempt to load and run a command.
   That way, if AutoCAD does lock up ( it's been known to happen ) you won't lose all your changes.

click DEBUG on the menu
   Toggle Break on Error to be true.
   If the routine does 'Bomb' ( nerdy technical term) you can select Debug->Last Break Source from the menu to see where the error was.

Check the code
   Menu Tools->Check code in editor
   This can save all sorts of grief.

Add a comment  hyperlink address to the code source.
« Last Edit: November 19, 2014, 10:19:26 PM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

ChrisCarlson

  • Guest
Re: Help for LISP beginner
« Reply #22 on: November 20, 2014, 07:54:51 AM »
BlackBox's assumes the [user only wanted to rotate entities on unlocked layers].

FTFY :angel:

Ok now I feel like I jerk... I was reading it as _L

rus7755

  • Guest
Re: Help for LISP beginner
« Reply #23 on: November 20, 2014, 08:21:18 AM »
Finally figured it out - the file I was reloading with APPLOAD was not the correct one.

The code that alanjt submitted worked great and I learned a few things too.

This is a great resource!


Thanks for everybody's help,
rus7755

BlackBox

  • King Gator
  • Posts: 3770
Re: Help for LISP beginner
« Reply #24 on: November 20, 2014, 08:29:32 AM »
BlackBox's assumes the [user only wanted to rotate entities on unlocked layers].

FTFY :angel:

Ok now I feel like I jerk... I was reading it as _L

No worries; now you know the difference....



 :lol:
"How we think determines what we do, and what we do determines what we get."