Author Topic: Coverting LISP Code to Visual Lisp  (Read 9574 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Coverting LISP Code to Visual Lisp
« Reply #15 on: March 16, 2007, 05:28:09 PM »
*bump*
How'd you go ??
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.

boesiii

  • Guest
Re: Coverting LISP Code to Visual Lisp
« Reply #16 on: March 21, 2007, 09:38:46 PM »
Can someone explain the difference between autolisp and vlisp.  I thought they were both the same.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Coverting LISP Code to Visual Lisp
« Reply #17 on: March 21, 2007, 10:22:38 PM »
AutoLISP is the AutoCAD incarnation of the lisp language developed as an intelligence language for robotics. It has been around for as long as I can remember.. I have been using AutoCAD since R10 ...

Vlisp aka Visual Lisp, is a recent addition to the lisp language structure for AutoCAD. Visual lisp has the added advantage of being able to include the type libraries of other programs and being able to interact seamlessly with programs that have type libraries. The Vlisp commands you will find hidden in AutoCAD (since R2000) are essentially the VBA commands exposed to the lisp environment, plus a few extras for good measure. Programmers often refer to the interfaces as ActiveX or COM. The neat thing is that just about anything you can code in VBA, you can code in Vlisp and operate on the programming using concepts such as objects, properties and methods.

For programming that does not support VBA, you may still be able to interact with them by importing functions exposed in their dlls. This can be a very tricky proposition, but it works beautifully once you understand the structure of the objects, methods, and properties.

I hope this gives you a little insight into the differences and if we can help, feel free to ask.
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

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Coverting LISP Code to Visual Lisp
« Reply #18 on: March 22, 2007, 05:55:09 AM »
............. The Vlisp commands you will find hidden in AutoCAD (since R2000) are essentially the VBA commands exposed to the lisp environment, plus a few extras for good measure.

.. actually, not VBA commands ..

VisualLisp has access to the methods properties and events exposed from the COM model through the ActiveX Automation interface, as does VB and VBA.
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.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Coverting LISP Code to Visual Lisp
« Reply #19 on: March 22, 2007, 05:58:12 AM »
This picccy may help ...

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.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Coverting LISP Code to Visual Lisp
« Reply #20 on: March 22, 2007, 08:14:52 AM »
............. The Vlisp commands you will find hidden in AutoCAD (since R2000) are essentially the VBA commands exposed to the lisp environment, plus a few extras for good measure.

.. actually, not VBA commands ..

VisualLisp has access to the methods properties and events exposed from the COM model through the ActiveX Automation interface, as does VB and VBA.
I prefered not to obfuscate. It may be easier for the virtual noob to understand that the vlisp commands are "essentially" the same as VBA commands, except they are exposed to lisp than to tell them that some as of yet undiscovered (to them) COM interface is the same in both instances. I know that when I first started learning vlisp, I had the hardest time understanding it until I understood the correlation between VBA and VLisp (i.e. the COM interface exposed to each environment).

Just trying to be helpul ...
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

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Coverting LISP Code to Visual Lisp
« Reply #21 on: March 22, 2007, 10:08:04 PM »
... I prefered not to obfuscate. .... 

.. and I do ?
:lmao:


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.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Coverting LISP Code to Visual Lisp
« Reply #22 on: March 23, 2007, 08:10:48 AM »
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

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Coverting LISP Code to Visual Lisp
« Reply #23 on: March 23, 2007, 09:14:24 AM »
ob·fus·cate      [ob-fuh-skeyt, ob-fuhs-keyt]
–verb (used with object), -cat·ed, -cat·ing.
1. to confuse, bewilder, or stupefy. 
2. to make obscure or unclear: to obfuscate a problem with extraneous information. 
3. to darken.
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

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Coverting LISP Code to Visual Lisp
« Reply #24 on: March 23, 2007, 10:11:22 AM »
Keith I understand what obfuscate means.

Your post will leave anyone who reads it with the impression that VisualLisp functions are based on VB or are VB command wrapped to make them accessable.

This is blatently incorrect, and the situation that you defend your post by assuming that the original poster is incapable of understanding the facts, and then attempting to ridicule me leaves me amazed.
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.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Coverting LISP Code to Visual Lisp
« Reply #25 on: March 23, 2007, 10:25:02 AM »
Keith I understand what obfuscate means.

Your post will leave anyone who reads it with the impression that VisualLisp functions are based on VB or are VB command wrapped to make them accessable.

This is blatently incorrect, and the situation that you defend your post by assuming that the original poster is incapable of understanding the facts, and then attempting to ridicule me leaves me amazed.

I fail to see where I have ridiculed you or posted blatent incorrect information. I have already stated that the information you posted was correct and that I posted the information I did, in the way I did, so as to not confuse the situation.
Yes, perhaps I did assume that the poster would not understand the COM/ActiveX Automation .. and likely they don't and it only served to create more questions than it resolved .. I didn't state they were the same thing .. I meant that they operated in basically the same way .. i.e. things you can do in VBA (modify properties and invoke methods), you can do in VLisp as well. The reader is likely to understand that a whole lot easier. It was not meant as a commentary on how the programming language is implemented.
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

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Coverting LISP Code to Visual Lisp
« Reply #26 on: March 23, 2007, 10:29:49 AM »
So your assertion that I was attempting to obfuscate the situation was another of your belittling jokes. ?
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.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Coverting LISP Code to Visual Lisp
« Reply #27 on: March 23, 2007, 10:38:54 AM »
So your assertion that I was attempting to obfuscate the situation was another of your belittling jokes. ?
Sorry .. I don't see it. Maybe your post prior to that was meant as a belittling joke .. I dunno .. Like I said .. I don't see it ..
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