Gets or sets whether to enable file-related menus and toolbars.
.NET Syntax
Visual Basic (Declaration) | |
---|
Property EnableFileMenu As Boolean |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim value As Boolean
instance.EnableFileMenu = value
value = instance.EnableFileMenu
|
C# | |
---|
bool EnableFileMenu {get; set;} |
C++/CLI | |
---|
property bool EnableFileMenu {
bool get();
void set (bool value);
} |
Return 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