Results 1 to 6 of 6

Thread: lisp within a lisp

  1. #1
    100 Club
    Join Date
    2005-09
    Posts
    112
    Login to Give a bone
    0

    Exclamation lisp within a lisp

    I am running AutoCAD LDD 2005. I am trying to use the ncopy command from express tools. I use this command alot and am prompted with picking the base point but would like for those values to be 0,0 and 0,0 for the first and second base point. Then I would like to run pedit and join together all the selections that I have made previously. I know to run a lisp within a lisp I would use (C:ncopy). However I am not sure how I would use 0,0 as the input for ncopy.

    Code:
    ("(defun c:supercopy ()
    
    
    ((C:ncopy) "0,0" "0,0" )
    
    (command "_pedit" "m" "previous" "" "y" "j" "")
    
    (princ)
    Here is my attempt at writing the code. Let me know if this is possible. Thank you

  2. #2
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: lisp within a lisp

    You will have to look at the source code that comes with it, don't post it, and see how to call it with arguements. AFAIK that is the only way.

  3. #3
    100 Club
    Join Date
    2005-09
    Posts
    112
    Login to Give a bone
    0

    Default Re: lisp within a lisp

    Okay I have decided to try and modify the trexblk.lsp. Is it okay to do this or is it against copyright?

  4. #4
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: lisp within a lisp

    I don't think you should modify (not sure about the legality of doing so). If you can understand the code (I couldn't when I tried) then you can call the sub functions that are head within to your code. That is how I have seen some others do it. I have never done it, so maybe someone who has can/will chime in and let you know a little more about it.

  5. #5
    100 Club
    Join Date
    2005-09
    Posts
    112
    Login to Give a bone
    0

    Default Re: lisp within a lisp

    I have made several attempts but so far nothing has worked. I just want to make sure that this is legal as I will be using it at work.

  6. #6
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,096
    Login to Give a bone
    0

    Default Re: lisp within a lisp

    Quote Originally Posted by chrisw.94380
    I have made several attempts but so far nothing has worked. I just want to make sure that this is legal as I will be using it at work.
    You would need to read the copyright. I would think it would be okay if you aren't providing others your modified code.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Similar Threads

  1. Replies: 13
    Last Post: 2014-01-20, 06:14 PM
  2. NEED HELP WITH LISP ROUTINE - PURGE linetype lisp
    By ECASAOL350033 in forum AutoLISP
    Replies: 6
    Last Post: 2013-06-21, 01:13 AM
  3. Replies: 3
    Last Post: 2012-05-07, 08:16 PM
  4. Replies: 9
    Last Post: 2012-01-21, 07:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •