Save Method

Back to Methods Reference

Saves a document, menu group, or group of layer property settings.

Signatures: Overview

Document: 

VBA : object.Save 

VL : (vla-Save object)

MenuGroup: 

VBA : object.Save MenuFileType 

VL : (vla-Save object MenuFileType)

Layer Settings: 

VBA : object.Save Name, Mask 

VL : (vla-Save object Name Mask


VBA : object.Save

VL : (vla-Save object)

(vla-Save thisdrawing)

  • Object : Document
    Saves the specified document.


VBA : object.Save MenuFileType

VL : (vla-Save object MenuFileType)

  • Object : MenuGroup
    The object or objects this method applies to.

  • MenuFileType : AcMenuFileType enum; input-only
    Saves the menu group as the given menu type.
    acMenuFileCompiled - A compiled menu file (MNC file type).
    acMenuFileSource - A source menu file (MNS file type).


VBA : object.Save Name, Mask

VL : (vla-Save object Name Mask)

  • Object : LayerStateManager
    A LayerStateManager object.

  • Name : String; input-only
    The name to be assigned to the saved layer settings.

  • Mask : enum; input-only
    A number representing the layer properties to be saved and restored. Use the following constants to identify layer properties:

acLsAll

All layer properties

acLsColor

Color

acLsFrozen

Frozen or thawed

acLsLineType

Linetype

acLsLineWeight

Lineweight

acLsLocked

Locked or unlocked

acLsNewViewport

New viewport layers frozen or thawed

acLsNone

None

acLsOn

On or off

acLsPlot

Plotting on or off

acLsPlotStyle

Plot style


Remarks

Document: Saving a file to a secure Internet location prompts the user for a password.

Example :


(defun c:al-Save ()

(vl-load-com)

(setq thisdrawing 
      (vla-get-activedocument 
           (vlax-get-acad-object)))

(vla-Save thisdrawing)

(princ)

);defun

 
The AutoLisp/Visual Lisp/VBA Resource Website
Google
Search the WWW Search AfraLisp

Copyright 1999-Perpetuity by AfraLisp

All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage

The AutoLisp/Visual Lisp/VBA Resource Website