Author Topic: Is it possible to Write a new LISP routine with LISP?  (Read 98 times)

0 Members and 1 Guest are viewing this topic.

Rustabout

  • Mosquito
  • Posts: 8
Is it possible to Write a new LISP routine with LISP?
« on: January 26, 2020, 11:36:57 PM »
I know that you can write to a text file. I never experimented with renaming the file with a different extension though. Has anyone ever tried this?

HasanCAD

  • Swamp Rat
  • Posts: 1319

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 9302
Re: Is it possible to Write a new LISP routine with LISP?
« Reply #2 on: Today at 07:51:36 AM »
yes, I have and it was fun (but a very long time ago; sorry I don't have an example to share anymore). If your lisp file never has to change it's quite simple--just do as you say-. But if you need to rewrite the code based on differing condictions you may want to employ the preprocessor I wrote to save you time and effort. You can call that tool from AutoLisp.

Install version 1.7 and if you'd like you can replace the exe with the version found in the 2.0.2 archive.
https://www.theswamp.org/index.php?topic=37700.0
“Common sense is not so common.” ~Voltaire

--> Donate to TheSwamp.org <--

Rustabout

  • Mosquito
  • Posts: 8
Re: Is it possible to Write a new LISP routine with LISP?
« Reply #3 on: Today at 02:16:20 PM »
Look's like I'm in business, thanks guys!!

My idea was to great a routine incorporating dialog boxes, that would "set-up" basic routines for inserting blocks... Basically the user would simply fill-out dialog box entries to create a custom routine to insert the block on a specific layer, and manipulate any custom properties that block might have (example: a stretch action).

I think I can actually do that! It's much easier to know it's possible before exploring it on my own and reaching a dead end.

Thanks again!