Jump to content

Search the Community

Showing results for tags 'layerstatesave'.

  • 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. Hi All, I'm Autolisp beginer and first problem which I would like to solve with it is how to restore layers Visibility after Layiso command. In few steps it's looks like: 1. Before use Layiso command I'have some layers that are on others are off. 2. I'm using Layiso and makes some changes on drawning. 3. After changing I want to restor layers visibility from point 1 (before Laiso command). My idea is to use LayerState functions: layerstate-save, layerstate-delete and layerstate-restore. I have problem with using LayerState functions. I could name functions for example "Iso" and "RestoreState". LayerState name could be "XX" Program structure: Step 1 - c:Iso I'm checking if "XX" exist. If "XX" exist then using layerstate-delete I'm deleting "XX". I'm creating LayerState "XX" using layerstate-save. Step 2 (command "Layiso") Step 3 I'm doing some changes in drawing. Step 4 - c:RestoreState I'm restoring "XX" using layerstate-restore. My problem is that I don't know how to use LayerState functions. Many info I've found here: http://www.cadtutor.net/forum/showthread.php?39986-LayerState-Manipulation-Info.-Coding but still don't know how to for example make Layerstate "XX" using it. or don't work. How it should look like? Also I've tried to use only commands: This code don't has checking if "XX" exist but works. How to write code using LayerState functions?? Anyone can help? Sorry for my English
×
×
  • Create New...