Author Topic: How to use Lee lisp as a subroutine "Lee Help Please"  (Read 365 times)

0 Members and 1 Guest are viewing this topic.

HasanCAD

  • Swamp Rat
  • Posts: 1342
How to use Lee lisp as a subroutine "Lee Help Please"
« on: November 13, 2020, 09:25:33 AM »
Hi All,
First of all thanks lee for your great lisps

I am using Align Text, MText or Attribute to Curve http://www.lee-mac.com/dtcurve.html
and I am want to use this lisp as a subroutine for text and curve selected.
I tried but in vane
« Last Edit: November 16, 2020, 10:58:05 PM by HasanCAD »

DEVITG

  • Bull Frog
  • Posts: 450
Re: How to use Lee lisp as a subroutine
« Reply #1 on: November 13, 2020, 05:52:53 PM »
Hi HasanCad , just make it a defun

Code: [Select]
(defun  DTCurve (/  ; --=={  Local Functions  }==--


And call it from your LISP by

Code: [Select]
(detcurve)
Location @ Córdoba Argentina Using ACAD 2019  at Window 10

HasanCAD

  • Swamp Rat
  • Posts: 1342
Re: How to use Lee lisp as a subroutine
« Reply #2 on: November 14, 2020, 08:48:41 AM »
Hi HasanCad , just make it a defun

Code: [Select]
(defun  DTCurve (/  ; --=={  Local Functions  }==--


And call it from your LISP by

Code: [Select]
(detcurve)

How to convert as
Code - Auto/Visual Lisp: [Select]
  1. (detcurve TEXT CURVE)

DEVITG

  • Bull Frog
  • Posts: 450
Re: How to use Lee lisp as a subroutine
« Reply #3 on: November 14, 2020, 04:35:38 PM »
Hi HasannCad , it will be better to ask Lee Mac.
Location @ Córdoba Argentina Using ACAD 2019  at Window 10

BIGAL

  • Swamp Rat
  • Posts: 551
  • 30 + years of using Autocad
Re: How to use Lee lisp as a subroutine
« Reply #4 on: November 16, 2020, 06:18:44 PM »
Are you loading it if not can check if already loaded.

(if (not dtcurve)(load "dtcurve"))

Then (c:dtcurve) should work.

A man who never made a mistake never made anything

HasanCAD

  • Swamp Rat
  • Posts: 1342
Re: How to use Lee lisp as a subroutine
« Reply #5 on: November 17, 2020, 10:26:50 PM »
Hi HasannCad , it will be better to ask Lee Mac.

I do not want to bother him

BIGAL

  • Swamp Rat
  • Posts: 551
  • 30 + years of using Autocad
Re: How to use Lee lisp as a subroutine "Lee Help Please"
« Reply #6 on: November 18, 2020, 03:22:27 AM »
See image, sometimes you just have to wait a bit for an answer, I am sure if Lee can find time he will help.
A man who never made a mistake never made anything