Jump to content

Search the Community

Showing results for tags 'erase area layout'.

  • 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. Sorry, I'm newbie. I just want to erase some object (viewport) in Specific Area at Several Layout. Every layout actually have the same position of object. When this script work, I will make the (repeat n) version.... (defun c:xxxx () (setq p1 (getpoint "\np1: ")) (setq p2 (getpoint "\np2: ")) (setq seleksi (ssget "C" p1 p2)) (setvar 'ctab (car (layoutlist))) ; move to first layout (command "erase" seleksi "") (command "rectangle" p1 p2 "") (setvar 'ctab (cadr (member (getvar 'ctab)(layoutlist)))) ; next layout (command "erase" seleksi "") (command "rectangle" p1 p2 "") (setvar 'ctab (cadr (member (getvar 'ctab)(layoutlist)))) (command "erase" seleksi "") (command "rectangle" p1 p2 "") (setvar 'ctab (cadr (member (getvar 'ctab)(layoutlist)))) (command "erase" seleksi "") (command "rectangle" p1 p2 "") (setvar 'ctab (cadr (member (getvar 'ctab)(layoutlist)))) ) The problem is: for example, the active layout is the 3rd layout, and then I run this script. It will only erase the object in the 3rd layout. But, it success to make rectangle in every layout... I have no idea why this can happen. Thx in advance.
×
×
  • Create New...