FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
NavisPythonShell/NavisPythonShell/ConfigureCommand.cs at master · dimven/NavisPythonShell · GitHub
dimven
/
NavisPythonShell
Public
Notifications
You must be signed in to change notification settings
Fork
19
Star
84
Code
Issues
11
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
NavisPythonShell
/
NavisPythonShell
/
ConfigureCommand.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (36 loc) · 1.27 KB
Breadcrumbs
NavisPythonShell
/
NavisPythonShell
/
ConfigureCommand.cs
Copy path
File metadata and controls
41 lines (36 loc) · 1.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Linq
;
using
System
.
Text
;
using
System
.
Windows
.
Forms
;
using
Autodesk
.
Navisworks
.
Api
;
using
Autodesk
.
Navisworks
.
Api
.
Plugins
;
namespace
NavisPythonShell
{
/// <summary>
/// Open the configuration dialog.
/// </summary>
[
PluginAttribute
(
"NavisPythonShell.ConfigureCommand"
,
"ACOM"
,
ToolTip
=
"NPS configuration window"
,
DisplayName
=
"Configure NPS"
)
]
[
AddInPluginAttribute
(
AddInLocation
.
AddIn
,
Icon
=
"Icons
\\
Settings-16.ico"
,
LargeIcon
=
"Icons
\\
Settings-32.ico"
,
LoadForCanExecute
=
true
)
]
class
ConfigureCommand
:
AddInPlugin
{
public
override
int
Execute
(
params
string
[
]
parameters
)
{
//load the application
if
(
!
NavisPythonShellApplication
.
applicationLoaded
)
{
NavisPythonShellApplication
.
OnLoaded
(
)
;
}
var
dialog
=
new
ConfigureCommandsForm
(
)
;
dialog
.
ShowDialog
(
)
;
//MessageBox.Show("Restart Navisworks to see changes to the commands in the Ribbon", "Configure NavisPythonShell", MessageBoxButtons.OK, MessageBoxIcon.Information);
return
0
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL