See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: AutoLISP / Visual LISP book

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2020-09
    Posts
    1
    Login to Give a bone
    1

    Default AutoLISP / Visual LISP book

    I'm looking for community input on whether it's worth writing a follow-up to "The Visual LISP Developer's Bible". I still sell a few copies every month, somehow, which is surprising to me. I've also received a few emails over the years asking if I'm writing a follow-up. But I don't know if there's still enough interest in it, and I don't know if that book (any edition) was helpful, or what could have been better. Any thoughts/suggestions are very much appreciated! Thank you!

  2. #2
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    559
    Login to Give a bone
    1

    Default Re: AutoLISP / Visual LISP book

    Kindle, E-Book is the way to go.

    One question are you David Stein ? The original author.

  3. #3
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    0

    Default Re: AutoLISP / Visual LISP book

    Because Autodesk does not seem to want to invest in workflow automation or lisp, I rewrote lisp into a new syntax that includes errortrapping.
    The library has 1000's of simple to use commands without the "russian" vla and vlax prefixes.
    I would like to document this new syntax and make it available "open source" for programmers.
    Try to breath life back into LISP programming.
    It does not need any c++/arx/.net add ins. It is all written in LISP for LISP.
    The module (like vl-load-com) is only 2 meg (thats right not 2 gig).

    In order to make it useful I need help to document it.

    Instead of writing a book on VisualLISP 2001 write one for LISP2021!

    Interested?

    P=
    AutomateCAD

  4. #4
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    559
    Login to Give a bone
    0

    Default Re: AutoLISP / Visual LISP book

    Sounds interesting can you provide some more detail.

    The macro record was meant to be useful but just look here no mention of it, I think it was ZWCAD wrote vba code when you used their macro record something that was useful. Something you could edit and enhance.

    Its like opendcl a form/dcl generator badly missing from Autocad.

    Now the move to Visual studio. But only if you have 2021 so for me can not use.

    I have the 4 ebooks by Ronald Togores very helpful, he has released another for VS.

  5. #5
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    0

    Default Re: AutoLISP / Visual LISP book

    Visual LISP is complicated. LISP2021 would simplify it.

    Code:
    (colorput <object identifier> 1)
    where object identifier could be ObjectID, Handle, vla-object, entsel, ename, elist etc...

    It returns T if successful.

    Code:
    (colorput <object identifier> -1)
    would just return nil

    Then you could use the try catch syntax
    Code:
    (if (and expression1
                expression2
                ...
                expressionN
        )
     return value or true
     return error
    )
    also
    Code:
    (color <object identifier>)
    returns the color

    This syntax can be used for 99% of com object properties
    Last edited by peter; 2020-09-22 at 05:14 PM.
    AutomateCAD

  6. #6
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    0

    Default Re: AutoLISP / Visual LISP book

    How about self defining dialogs.

    You supply the list of sublists

    each sublist includes Prompt, initial value, justification, units, type of editing including editbox, list or even calculations, and variable to set.

    The program writes the dcl and populates it.

    It gives you edit boxes on double click of each row, or listboxes...

    It stores the returned list too.

    Code:
    (defun CurveDialogDefaults ()
     ;           Field            Value       Justification Units 
     (list 
           (list "Velocity"          50           "R" "kph"   "E" 'sngVelocity)
    
           (list "Curve Angle"       90.0         "R" "deg"   "E" 'sngDegrees)
    
           (list "Bank Slope"        20           "R" "%g"    "E" 'sngSlope)
    
           (list "Centripital Acc."  2.8          "R" "m/s^2" "E" 'sngCentripital)
    
           (list "Jerk"              2.45         "R" "m/s^3" "E" 'sngJerk)
    
           (list "Meters or Feet"    "Meters"     "L" "Units" '(list "Feet" "Meters") 'strUnits)
       
           (list "Curve Type"        "Sinewave"   "L" "Curve" '(list "Hybrid" "Sinewave" "Trapezoid") 'strCurveType)
     )
    )
    Attached Images Attached Images
    Last edited by peter; 2020-09-26 at 01:58 PM.
    AutomateCAD

  7. #7
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    1

    Default Re: AutoLISP / Visual LISP book

    As far as opendcl. I like the concept of a visual dialog builder and Owen did a great job developing it. The problem is it is not maintained by Autodesk and it requires maintenance when AutoCAD builds change. I feel it is more of a greed motive to not make workflow automation a priority at Autodesk. They control the market and want everyone to buy licenses and pay monkeys to run them. The last thing they want is to increase efficiency. IMO

    I do have a dcl editor that allows you to build dialogs with an editor. It is just not visual and it is written in LISP with all of its limitations.

    Attached are some images of the editor and the output file.
    Attached Images Attached Images
    AutomateCAD

  8. #8
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    559
    Login to Give a bone
    0

    Default Re: AutoLISP / Visual LISP book

    That is a great tool. Writing complicated dcl's can be difficult with multi rows and columns.

    I think Autodesk are heading down the Dynamo path with the release now for CIV3D.

  9. #9
    Member
    Join Date
    2008-05
    Location
    Fortaleza, Ceara, Brazil
    Posts
    8
    Login to Give a bone
    0

    Default Re: AutoLISP / Visual LISP book

    Great job! Congrats!!!!

  10. #10
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    1

    Default Re: AutoLISP / Visual LISP book

    I have an enormous library of LISP routines and functions.

    The problem is... I do not have time to document them.

    Without documentation, they are fundamentally useless.

    That is why I wanted to recruit programmers to help me document this stuff.

    Documentation help files, and header files for the routines help others to learn.

    Plus with my tools you can cut so many corners while writing them

    I probably have 6000 routines in my library and several thousand unique routines and functions.

    I want to polish them up and share them with others.

    P=
    AutomateCAD

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 2012-08-30, 11:59 AM
  2. visual lisp editor should be like visual studio
    By Wish List System in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2011-11-17, 05:33 PM
  3. Replies: 44
    Last Post: 2009-06-01, 02:11 PM
  4. Autolisp vs Visual Lisp
    By neje in forum AutoLISP
    Replies: 7
    Last Post: 2009-03-08, 10:54 PM
  5. Book "AutoLisp and Visual Lisp primer", recommended or not
    By thomas.huckabee in forum AutoLISP
    Replies: 0
    Last Post: 2007-05-02, 02:06 PM

Posting Permissions

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