Gets or sets whether to enable file-related menus and toolbars.
.NET Syntax
Visual Basic (Declaration) | |
---|
Property EnableFileMenu As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim value As System.Boolean
instance.EnableFileMenu = value
value = instance.EnableFileMenu |
C# | |
---|
System.bool EnableFileMenu {get; set;} |
C++/CLI | |
---|
property System.bool EnableFileMenu {
System.bool get();
void set ( & System.bool value);
} |
Property Value
True to enable file-related menus and toolbars (e.g., open a document, create a new document, open a recent document, etc.,); false to disable file-related menus and toolbars
Example
Visual Basic for Applications (VBA)
Option Explicit
Dim swApp As SldWorks.SldWorks
Sub main()
Set swApp = Application.SldWorks
' Disable file-related menus and toolbars
swApp.EnableFileMenu = False
' Enable file-related menus and toolbars
swApp.EnableFileMenu = True
End Sub
See Also
Availability
SolidWorks 2009 FCS, Revision Number 17.0