Jump to content

Search the Community

Showing results for tags 'closeall'.

  • 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. All, I have two preliminary routines called CA (CloseAll) and PA (PrintAll) tailored for my needs as following: CloseAll: (defun C:CA() (setvar "TILEMODE" 1) (command "._ZOOM" "_Extents") (command "._PURGE" "all" "*" "No") (command "._PURGE" "all" "*" "No") (command "._PURGE" "all" "*" "No") (setvar "TILEMODE" 0) (command "._MSPACE") (command "._Grid" "_OFF") (command "._OVERKILL" "ALL" \\P "DONE") (command "._PSPACE") (command "._VPORTS" "L" "ON" "ALL" "") (command "._ZOOM" "_Extents") (command "._QSAVE") (command "._CLOSE") ) PrintAll: (defun C:PA() (foreach x (LAYOUTLIST) (setvar "CTAB" x) (command "-PLOT" "" "" "" "" "" "" "")) ) Above codes work perfect for a single drawing. However, I am stuck on applying them to all of my open drawings (trying to learn LSP gradually ). Note I don't want to 'browse' for any specific folders or drawings or load some script to do so. Instead I need to apply my code across all open drawings. The intent is to put them both in my Startup Suite and call them whenever needed. Attentions are appreciated in advance.
×
×
  • Create New...