Author Topic: ActiveX from LISP?  (Read 1681 times)

0 Members and 1 Guest are viewing this topic.

Atook

  • Swamp Rat
  • Posts: 1029
  • AKA Tim
ActiveX from LISP?
« on: August 16, 2006, 10:31:57 AM »
I know you can use LISP to access the ActiveX model for CAD, but is it possible for LISP to call other ActiveX programs?

I want to create a program that uses mainly LISP, since LISP doesn’t care what version of CAD it’s running in. I’d put my non-LISP logic in a DLL that doesn’t even reference CAD, just spits out numbers, etc.

Is this possible? I’m thinking not. But I’m hoping I’m wrong. :)

If it is possible, what would I need to do to call my DLL from LISP, and would there be any special properties/methods or compile settings used in my DLL?

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: ActiveX from LISP?
« Reply #1 on: August 16, 2006, 10:39:45 AM »
A good topic, but unfortunately I can't participate as work calls. This post might give you an idea or two.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Atook

  • Swamp Rat
  • Posts: 1029
  • AKA Tim
Re: ActiveX from LISP?
« Reply #2 on: August 16, 2006, 12:32:46 PM »
Buckin' Feauty MP! That's exactly what I needed to know.

I'm still debating whether or not to go this route, or just go completely VB and complile different DLLs for different versions of CAD.

Thanks for the example!

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: ActiveX from LISP?
« Reply #3 on: August 16, 2006, 12:58:59 PM »
Ermmm, my pleasure Atook. Btw, with a little slight of hand, e.g. late binding, select / limited use of the CallByName function etc. you can eliminate the need to pen AutoCAD version dependent dlls that still perform well. In advance, I don't have time to detail this, but it is do-able (I have authored dlls that run in AutoCAD 2002 thru 2006). PS: never use the 'End' statment to exit a dll; that would be very very bad.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst