Jump to content

Search the Community

Showing results for tags 's::startup'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Categories

  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Am I using acad.lsp and acaddoc.lsp poorly? I am using defun-q and appending S::STARTUP (as per the help files). This much works in general. The ony problem is if they have local variables. On autocad startup, the acad.lsp is added to S::STARTUP. Then the acaddoc.lsp is added to S::STARTUP. For arguments sake, lets assume acad.lsp is the first thing in the S::STARTUP (nothing before it). In this case, the acad.lsp functions will load just fine, then the S::STARTUP will cancel because it reads the ( / local variables) line from the acaddoc.lsp, which are now somewhere in the middle of the S::STARTUP - no longer defined as local variables. Of course the error is a numberp nil because it treats it as division. I hope this all makes sense. Do any of you have suggestions or other methods to try? I appreciate the help. p.s. the acaddoc.lsp loads just fine on any subsequent drawings opened after startup, when acad.lsp is not loading...so I am pretty positive it is the local variables shown in the middle of the S::STARTUP causing the error.
×
×
  • Create New...