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

Thread: Erroneous lisp

  1. #1
    Member
    Join Date
    2017-10
    Posts
    21
    Login to Give a bone
    0

    Default Erroneous lisp

    Hello
    I have this code which gives errors at the first run,then when it's cancelled and rerun, it works fine.Someone can help?
    Attached Files Attached Files

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Erroneous lisp

    As kpblc said "You have to make all variables local. Variables width, textheight and so on are not setted at first run."
    https://www.theswamp.org/index.php?topic=56768.0

  3. #3
    Member
    Join Date
    2017-10
    Posts
    21
    Login to Give a bone
    0

    Default Re: Erroneous lisp

    Hello
    My knowledge about Autolisp is so limited...could you please attach the final code? I can't put things together to get the new code.
    Thanks

  4. #4
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Erroneous lisp

    Quote Originally Posted by RamiMann View Post
    Hello
    My knowledge about Autolisp is so limited...could you please attach the final code? I can't put things together to get the new code.
    Thanks
    You'd be better off describing what you're expecting the code to do exactly. Over 20 global variables and 3 functions to do this?
    I'm sure there's code to do it already having localized variables and an *error* function set up that tests if Layers, Text Styles and Linetypes exist and only adds them if necessary.
    It's always helpful to include the software and version you're using in your signature as answers are often specific to them. In this case setting up major and minor grid lines are easy in recent versions of AutoCAD.
    Are you wanting the grid lines to be plottable?
    https://forums.augi.com/profile.php?do=editsignature

  5. #5
    Member
    Join Date
    2017-10
    Posts
    21
    Login to Give a bone
    0

    Default Re: Erroneous lisp

    Of curse I want them to be plottable. I'm using Autocad Map 3d 2020 and have tested the code in many previous versions and got the same results.

  6. #6
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Erroneous lisp

    Quote Originally Posted by RamiMann View Post
    Of curse I want them to be plottable. I'm using Autocad Map 3d 2020 and have tested the code in many previous versions and got the same results.
    All you code did was draw a rectangle.
    If that's all you need it to do why not just use the RECTANG command?

    Again "You'd be better off describing what you're expecting the code to do exactly."

    If you can't put that much effort into asking others to spend their time doing your job you're not going to get much response.

  7. #7
    Member
    Join Date
    2017-10
    Posts
    21
    Login to Give a bone
    0

    Default Re: Erroneous lisp

    Okay brother,that code draws (at the second run, since it returns some errors at the first run) a grid of lines with coordinates all around, similar to many lisps but I want this specific code.
    Anyway this video explains the work of it:https://www.youtube.com/watch?v=jgKErmSIa1M
    Thanks

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

    Default Re: Erroneous lisp

    If you google you will be swamped with draw grids options find one that works. It sounds like the code in the one you tried has some problems. Rather than fix find another

    I have an advanced one that draws grids in paperspace viewport layouts but based on model space co-ordinates.

  9. #9
    Member
    Join Date
    2017-10
    Posts
    21
    Login to Give a bone
    0

    Default Re: Erroneous lisp

    I know there's a variety of lisps that can do a similar work,mine is so convenient...Could you please attach a copy?

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

    Default Re: Erroneous lisp

    Google lee-mac Grid

Page 1 of 2 12 LastLast

Similar Threads

  1. 2012: Erroneous Older Version Message
    By TcaddyUK in forum Revit MEP - United Kingdom
    Replies: 0
    Last Post: 2014-03-03, 09:35 AM
  2. 2011: Qbase erroneous filehandle
    By fredrik.schlau in forum AutoCAD General
    Replies: 2
    Last Post: 2011-10-06, 07:02 PM
  3. Erroneous "Cannot open central + local model" error message
    By Rustle in forum Revit Architecture - General
    Replies: 5
    Last Post: 2010-09-13, 04:54 PM
  4. Erroneous error
    By Coolmo in forum AutoCAD General
    Replies: 2
    Last Post: 2007-08-02, 01:21 PM
  5. Calling a lisp from within a lisp
    By LanceMcHatton in forum AutoLISP
    Replies: 10
    Last Post: 2005-10-16, 02:08 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
  •