Load Method

Loads a menu group from a customization (CUI) file or the definition of a linetype from a library (LIN) file.

See Also | Example

Signatures: Overview

Linetypes 

object.Load LinetypeName, Filename 

MenuGroups 

object.Load MenuFilename [,BaseMenu] 

Signatures: Detail

object.Load LineTypeName, FileName

Object

Linetypes
The object or objects this method applies to.

LineTypeName

String; input-only
The name of the linetype to load.

FileName

String; input-only
The name of the file the linetype is in.


RetVal = object.Load (MenuFileName [,BaseMenu])

Object

MenuGroups
The object or objects this method applies to.

MenuFileName

String; input-only
The name of the customization (CUI) file to load.

BaseMenu

Variant; input-only; optional
If this parameter is set to TRUE, then the menu group will be loaded as a base menu (similar to the MENU command in AutoCAD). If this parameter is omitted, the menu group will be loaded as a partial menu (similar to the MENULOAD command in AutoCAD).

RetVal

MenuGroup object

Remarks

Linetypes: Although you can create a linetype and add it to the Linetypes Collection object using the Add method, it will be created with the default properties only. Because you cannot edit linetype properties with this release of ActiveX Automation, use this method to load existing linetypes into your drawing.

Menu groups: AutoCAD searches for customization files with the specified MenuFileName and a .cui extension.

 

   Comments?