Thursday, June 13, 2024

How to use lisp in PTCAD

          How to use lisp in PTCAD


LISP or Autolisp language program is great for automating tasks in PTCAD. 

        User can think  how to reduce time of repeat action in drafting process ?

       How to automate routine commands ?

    In PTCAD , user can load LISP program to run as this steps


How to Use LISP in PTCAD

  1. Open PTCAD

  2. Go to Tools → Load Application

  3. Select your .lsp file

  4. Type your custom command in the command line

  5. Done!


STEPS in details

1. open NOTEPAD  then put this code and save as  hello.lsp

This sample use Hello PTCAD prgram

 

(defun c:HPT  () ; command name to run program

    (princ "Hello, PTCAD\n") 

    (princ "Hello, PTCAD\n") 

    (princ "Hello, PTCAD\n") 


2.Start PTCAD and use command to load application

type command : appload 

then click add file   then choosing wanted file


select file      hello.lsp

 


3. run command , type HPT   press enter

Then get result






No comments:

Post a Comment

Draw mechanical details with PTCAD Plus - MEC

     Draw mechanical details with PTCAD Plus - MEC               PTCAD Plus edition contains many plug-ins  AECplus, MEC, Assetlink which ca...