├── Source
├── BatchProcessApp
│ ├── cog.ico
│ ├── Images
│ │ ├── add.png
│ │ ├── cog.png
│ │ ├── help.png
│ │ ├── stop.png
│ │ ├── delete.png
│ │ ├── wrench.png
│ │ ├── smallcog.png
│ │ ├── table_add.png
│ │ ├── folder_add.png
│ │ ├── script-add.png
│ │ ├── script-new.png
│ │ ├── script-save.png
│ │ ├── magic_wand_2.png
│ │ ├── script-go-failed.png
│ │ ├── checked-unchecked.png
│ │ ├── script-go-checked.png
│ │ └── script-go-selected.png
│ ├── Properties
│ │ ├── Settings.settings
│ │ ├── Settings.Designer.cs
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ ├── App.xaml.cs
│ ├── App.xaml
│ ├── MainWindow.xaml
│ ├── BatchProcessApp.csproj
│ └── MainWindow.xaml.cs
├── DrawingListUC
│ ├── Properties
│ │ ├── Settings.settings
│ │ ├── AssemblyInfo.cs
│ │ ├── Settings.Designer.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ ├── app.config
│ ├── Wizard_Step1.cs
│ ├── Wizard_Step2.cs
│ ├── WizardForm.cs
│ ├── Wizard_Step1.Designer.cs
│ ├── DrawingListUC.csproj
│ ├── Wizard_step3.Designer.cs
│ ├── Wizard_step3.cs
│ ├── OptionsDlg.resx
│ ├── WizardForm.resx
│ ├── Wizard_Step1.resx
│ ├── Wizard_step3.resx
│ ├── DrawingListControl.resx
│ ├── Wizard_Step2.Designer.cs
│ ├── WizardForm.Designer.cs
│ ├── OptionsDlg.cs
│ ├── Wizard_Step2.resx
│ ├── DrawingListControl.Designer.cs
│ └── OptionsDlg.Designer.cs
└── ScriptPro.sln
├── .gitattributes
├── LICENSE.md
├── .gitignore
└── README.md
/Source/BatchProcessApp/cog.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/cog.ico
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/add.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/cog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/cog.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/help.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/stop.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/delete.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/wrench.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/wrench.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/smallcog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/smallcog.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/table_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/table_add.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/folder_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/folder_add.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/script-add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/script-add.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/script-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/script-new.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/script-save.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/script-save.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/magic_wand_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/magic_wand_2.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/script-go-failed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/script-go-failed.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/checked-unchecked.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/checked-unchecked.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/script-go-checked.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/script-go-checked.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Images/script-go-selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/ScriptPro/HEAD/Source/BatchProcessApp/Images/script-go-selected.png
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Source/BatchProcessApp/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | namespace BatchProcessApp
4 | {
5 | ///
6 | /// Interaction logic for App.xaml
7 | ///
8 | public partial class App : Application
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source/BatchProcessApp/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
12 | # Standard to msysgit
13 | *.doc diff=astextplain
14 | *.DOC diff=astextplain
15 | *.docx diff=astextplain
16 | *.DOCX diff=astextplain
17 | *.dot diff=astextplain
18 | *.DOT diff=astextplain
19 | *.pdf diff=astextplain
20 | *.PDF diff=astextplain
21 | *.rtf diff=astextplain
22 | *.RTF diff=astextplain
23 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | true
7 |
8 |
9 | 2
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | true
12 |
13 |
14 | 2
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 |
2 | Copyright (c) 2013 Autodesk, Inc.
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of
5 | this software and associated documentation files (the "Software"), to deal in
6 | the Software without restriction, including without limitation the rights to
7 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8 | the Software, and to permit persons to whom the Software is furnished to do so,
9 | subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all
12 | copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.4206
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace BatchProcessApp.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source/ScriptPro.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 10.00
3 | # Visual Studio 2008
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DrawingListUC", "DrawingListUC\DrawingListUC.csproj", "{26255202-2F69-4247-B7D4-17F51D61637C}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BatchProcessApp", "BatchProcessApp\BatchProcessApp.csproj", "{5DED7800-5F14-4EF6-96AA-17C2599F0398}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {26255202-2F69-4247-B7D4-17F51D61637C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {26255202-2F69-4247-B7D4-17F51D61637C}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {26255202-2F69-4247-B7D4-17F51D61637C}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {26255202-2F69-4247-B7D4-17F51D61637C}.Release|Any CPU.Build.0 = Release|Any CPU
18 | {5DED7800-5F14-4EF6-96AA-17C2599F0398}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {5DED7800-5F14-4EF6-96AA-17C2599F0398}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {5DED7800-5F14-4EF6-96AA-17C2599F0398}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {5DED7800-5F14-4EF6-96AA-17C2599F0398}.Release|Any CPU.Build.0 = Release|Any CPU
22 | EndGlobalSection
23 | GlobalSection(SolutionProperties) = preSolution
24 | HideSolutionNode = FALSE
25 | EndGlobalSection
26 | EndGlobal
27 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Wizard_Step1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Data;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using System.Diagnostics;
9 | using System.IO;
10 |
11 | namespace DrawingListUC
12 | {
13 | public partial class Wizard_Step1 : UserControl
14 | {
15 | public Wizard_Step1()
16 | {
17 | InitializeComponent();
18 | }
19 |
20 | private void ScriptBrowse_Click(object sender, EventArgs e)
21 | {
22 | try{
23 | OpenFileDialog BPFileOpenDlg = new OpenFileDialog();
24 | BPFileOpenDlg.Filter = "Script (*.scr) |*.scr;";
25 |
26 | if (BPFileOpenDlg.ShowDialog() == DialogResult.OK)
27 | {
28 | ScriptPath.Text = BPFileOpenDlg.FileName;
29 | }
30 | }catch{}
31 | }
32 |
33 | private void Viewbutton_Click(object sender, EventArgs e)
34 | {
35 | try{
36 | Process notePad = new Process();
37 | notePad.StartInfo.FileName = "notepad.exe";
38 |
39 | // Find if the file present
40 |
41 | if (File.Exists(ScriptPath.Text))
42 | notePad.StartInfo.Arguments = ScriptPath.Text;
43 | notePad.Start();
44 | }
45 | catch { }
46 | }
47 |
48 | public string scriptFile()
49 | {
50 | return ScriptPath.Text;
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("DrawingListUC")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Autodesk, Inc.")]
12 | [assembly: AssemblyProduct("ScriptPro")]
13 | [assembly: AssemblyCopyright("Copyright © Autodesk, Inc. 2010")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("2e3c563f-3e96-495f-a737-bdd51d141080")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.3.0")]
36 | [assembly: AssemblyFileVersion("1.0.3.0")]
37 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Wizard_Step2.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Data;
6 | using System.Text;
7 | using System.Windows.Forms;
8 |
9 | namespace DrawingListUC
10 | {
11 | public partial class Wizard_Step2 : UserControl
12 | {
13 | public Wizard_Step2()
14 | {
15 | InitializeComponent();
16 |
17 | dwgList = new DrawingListControl();
18 |
19 | try
20 | {
21 | dwgList.ApplySettings();
22 | }
23 | catch
24 | {
25 | }
26 | }
27 |
28 | DrawingListControl dwgList = null;
29 |
30 |
31 |
32 | private void Wizard_Step2_Load(object sender, EventArgs e)
33 | {
34 | dwgList.Dock = DockStyle.Fill;
35 | Panel_DWGList.Controls.Add(dwgList);
36 |
37 | dwgList.hideControlsForWizard();
38 | }
39 |
40 | private void AddButton_Click(object sender, EventArgs e)
41 | {
42 | try
43 | {
44 | dwgList.AddDWGFiles();
45 | }
46 | catch { }
47 | }
48 |
49 | private void AddFolder_Click(object sender, EventArgs e)
50 | {
51 | try
52 | {
53 | dwgList.AddDWGFilesFromFolder();
54 | }
55 | catch { }
56 | }
57 |
58 | private void RemoveButton_Click(object sender, EventArgs e)
59 | {
60 | try
61 | {
62 | dwgList.RemoveSelectedDWG();
63 | }
64 | catch { }
65 | }
66 |
67 | public void populateDWGlist(List list)
68 | {
69 | try
70 | {
71 | dwgList.populateDWGlist(list);
72 | }
73 | catch { }
74 | }
75 |
76 |
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.3623
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DrawingListUC.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.UserScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("true")]
29 | public string SearchAllDirectories {
30 | get {
31 | return ((string)(this["SearchAllDirectories"]));
32 | }
33 | set {
34 | this["SearchAllDirectories"] = value;
35 | }
36 | }
37 |
38 | [global::System.Configuration.UserScopedSettingAttribute()]
39 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
40 | [global::System.Configuration.DefaultSettingValueAttribute("2")]
41 | public string CreateImage {
42 | get {
43 | return ((string)(this["CreateImage"]));
44 | }
45 | set {
46 | this["CreateImage"] = value;
47 | }
48 | }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("ScriptPro")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("Autodesk, Inc.")]
14 | [assembly: AssemblyProduct("ScriptPro")]
15 | [assembly: AssemblyCopyright("Copyright © Autodesk, Inc. 2010")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // Setting ComVisible to false makes the types in this assembly not visible
20 | // to COM components. If you need to access a type in this assembly from
21 | // COM, set the ComVisible attribute to true on that type.
22 | [assembly: ComVisible(false)]
23 |
24 | //In order to begin building localizable applications, set
25 | //CultureYouAreCodingWith in your .csproj file
26 | //inside a . For example, if you are using US english
27 | //in your source files, set the to en-US. Then uncomment
28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
29 | //the line below to match the UICulture setting in the project file.
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 | [assembly: Guid("d66c0293-5ff4-4b19-b9bc-b9c3f168ae6c")]
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36 | //(used if a resource is not found in the page,
37 | // or application resource dictionaries)
38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39 | //(used if a resource is not found in the page,
40 | // app, or any theme specific resource dictionaries)
41 | )]
42 |
43 |
44 | // Version information for an assembly consists of the following four values:
45 | //
46 | // Major Version
47 | // Minor Version
48 | // Build Number
49 | // Revision
50 | //
51 | // You can specify all the values or you can default the Build and Revision Numbers
52 | // by using the '*' as shown below:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("2.0.3.0")]
55 | [assembly: AssemblyFileVersion("2.0.3.0")]
56 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.3623
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DrawingListUC.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DrawingListUC.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.4206
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace BatchProcessApp.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BatchProcessApp.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/WizardForm.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Text;
7 | using System.IO;
8 | using System.Windows.Forms;
9 |
10 | namespace DrawingListUC
11 | {
12 | public partial class WizardForm : Form
13 | {
14 | public WizardForm()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | Wizard_Step1 step1;
20 | Wizard_Step2 step2;
21 | Wizard_step3 step3;
22 |
23 | public List dwgList;
24 | public string acadPath;
25 | public string scriptPath;
26 | public bool startScriptPro = false;
27 |
28 |
29 | private void WizardForm_Load(object sender, EventArgs e)
30 | {
31 | step1 = new Wizard_Step1();
32 | step2 = new Wizard_Step2();
33 | step3 = new Wizard_step3();
34 |
35 | Step1_panel.Controls.Add(step1);
36 | step1.Dock = DockStyle.Fill;
37 | Step2_panel.Controls.Add(step2);
38 | step2.Dock = DockStyle.Fill;
39 | Step3_panel.Controls.Add(step3);
40 | step3.Dock = DockStyle.Fill;
41 | }
42 |
43 | private void Cancel_button_Click(object sender, EventArgs e)
44 | {
45 | this.DialogResult = DialogResult.Cancel;
46 | }
47 |
48 | private void Finish_Button_Click(object sender, EventArgs e)
49 | {
50 | scriptPath = step1.scriptFile();
51 | acadPath = step3.acadPath();
52 |
53 | if (scriptPath.Length == 0)
54 | {
55 | MessageBox.Show("Please specify a valid script file.");
56 | return;
57 | }
58 |
59 | if (acadPath.Length != 0)
60 | {
61 | if (!File.Exists(acadPath))
62 | {
63 | MessageBox.Show("AutoCAD application does not exits");
64 | return;
65 | }
66 | }
67 |
68 | dwgList = new List();
69 | step2.populateDWGlist(dwgList);
70 |
71 | startScriptPro = false;
72 | //now add all the files to main dialog...
73 | this.DialogResult = DialogResult.OK;
74 | }
75 |
76 | private void StartScriptPro_Click(object sender, EventArgs e)
77 | {
78 | scriptPath = step1.scriptFile();
79 | acadPath = step3.acadPath();
80 |
81 | if (scriptPath.Length == 0)
82 | {
83 | MessageBox.Show("Please specify a valid script file.");
84 | return;
85 | }
86 |
87 | if (acadPath.Length != 0)
88 | {
89 | if (!File.Exists(acadPath))
90 | {
91 | MessageBox.Show("AutoCAD application does not exits");
92 | return;
93 | }
94 | }
95 |
96 |
97 | dwgList = new List();
98 | step2.populateDWGlist(dwgList);
99 |
100 | if (dwgList.Count == 0)
101 | {
102 | MessageBox.Show("No drawing is selected");
103 | return;
104 | }
105 |
106 | startScriptPro = true;
107 | this.DialogResult = DialogResult.OK;
108 |
109 | }
110 |
111 | private void label1_step1_Click(object sender, EventArgs e)
112 | {
113 |
114 | }
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | #################
2 | ## Eclipse
3 | #################
4 |
5 | *.pydevproject
6 | .project
7 | .metadata
8 | bin/
9 | tmp/
10 | *.tmp
11 | *.bak
12 | *.swp
13 | *~.nib
14 | local.properties
15 | .classpath
16 | .settings/
17 | .loadpath
18 |
19 | # External tool builders
20 | .externalToolBuilders/
21 |
22 | # Locally stored "Eclipse launch configurations"
23 | *.launch
24 |
25 | # CDT-specific
26 | .cproject
27 |
28 | # PDT-specific
29 | .buildpath
30 |
31 |
32 | #################
33 | ## Visual Studio
34 | #################
35 |
36 | ## Ignore Visual Studio temporary files, build results, and
37 | ## files generated by popular Visual Studio add-ons.
38 |
39 | # User-specific files
40 | *.suo
41 | *.user
42 | *.sln.docstates
43 |
44 | # Build results
45 |
46 | [Dd]ebug/
47 | [Rr]elease/
48 | x64/
49 | build/
50 | [Bb]in/
51 | [Oo]bj/
52 |
53 | # MSTest test Results
54 | [Tt]est[Rr]esult*/
55 | [Bb]uild[Ll]og.*
56 |
57 | *_i.c
58 | *_p.c
59 | *.ilk
60 | *.meta
61 | *.obj
62 | *.pch
63 | *.pdb
64 | *.pgc
65 | *.pgd
66 | *.rsp
67 | *.sbr
68 | *.tlb
69 | *.tli
70 | *.tlh
71 | *.tmp
72 | *.tmp_proj
73 | *.log
74 | *.vspscc
75 | *.vssscc
76 | .builds
77 | *.pidb
78 | *.log
79 | *.scc
80 |
81 | # Visual C++ cache files
82 | ipch/
83 | *.aps
84 | *.ncb
85 | *.opensdf
86 | *.sdf
87 | *.cachefile
88 |
89 | # Visual Studio profiler
90 | *.psess
91 | *.vsp
92 | *.vspx
93 |
94 | # Guidance Automation Toolkit
95 | *.gpState
96 |
97 | # ReSharper is a .NET coding add-in
98 | _ReSharper*/
99 | *.[Rr]e[Ss]harper
100 |
101 | # TeamCity is a build add-in
102 | _TeamCity*
103 |
104 | # DotCover is a Code Coverage Tool
105 | *.dotCover
106 |
107 | # NCrunch
108 | *.ncrunch*
109 | .*crunch*.local.xml
110 |
111 | # Installshield output folder
112 | [Ee]xpress/
113 |
114 | # DocProject is a documentation generator add-in
115 | DocProject/buildhelp/
116 | DocProject/Help/*.HxT
117 | DocProject/Help/*.HxC
118 | DocProject/Help/*.hhc
119 | DocProject/Help/*.hhk
120 | DocProject/Help/*.hhp
121 | DocProject/Help/Html2
122 | DocProject/Help/html
123 |
124 | # Click-Once directory
125 | publish/
126 |
127 | # Publish Web Output
128 | *.Publish.xml
129 | *.pubxml
130 |
131 | # NuGet Packages Directory
132 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line
133 | #packages/
134 |
135 | # Windows Azure Build Output
136 | csx
137 | *.build.csdef
138 |
139 | # Windows Store app package directory
140 | AppPackages/
141 |
142 | # Others
143 | sql/
144 | *.Cache
145 | ClientBin/
146 | [Ss]tyle[Cc]op.*
147 | ~$*
148 | *~
149 | *.dbmdl
150 | *.[Pp]ublish.xml
151 | *.pfx
152 | *.publishsettings
153 |
154 | # RIA/Silverlight projects
155 | Generated_Code/
156 |
157 | # Backup & report files from converting an old project file to a newer
158 | # Visual Studio version. Backup files are not needed, because we have git ;-)
159 | _UpgradeReport_Files/
160 | Backup*/
161 | UpgradeLog*.XML
162 | UpgradeLog*.htm
163 |
164 | # SQL Server files
165 | App_Data/*.mdf
166 | App_Data/*.ldf
167 |
168 | #############
169 | ## Windows detritus
170 | #############
171 |
172 | # Windows image file caches
173 | Thumbs.db
174 | ehthumbs.db
175 |
176 | # Folder config file
177 | Desktop.ini
178 |
179 | # Recycle Bin used on file shares
180 | $RECYCLE.BIN/
181 |
182 | # Mac crap
183 | .DS_Store
184 |
185 |
186 | #############
187 | ## Python
188 | #############
189 |
190 | *.py[co]
191 |
192 | # Packages
193 | *.egg
194 | *.egg-info
195 | dist/
196 | build/
197 | eggs/
198 | parts/
199 | var/
200 | sdist/
201 | develop-eggs/
202 | .installed.cfg
203 |
204 | # Installer logs
205 | pip-log.txt
206 |
207 | # Unit test / coverage reports
208 | .coverage
209 | .tox
210 |
211 | #Translations
212 | *.mo
213 |
214 | #Mr Developer
215 | .mr.developer.cfg
216 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Wizard_Step1.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace DrawingListUC
2 | {
3 | partial class Wizard_Step1
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Component Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.Viewbutton = new System.Windows.Forms.Button();
32 | this.ScriptBrowse = new System.Windows.Forms.Button();
33 | this.ScriptPath = new System.Windows.Forms.TextBox();
34 | this.SuspendLayout();
35 | //
36 | // Viewbutton
37 | //
38 | this.Viewbutton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
39 | this.Viewbutton.BackColor = System.Drawing.SystemColors.Control;
40 | this.Viewbutton.Location = new System.Drawing.Point(457, 7);
41 | this.Viewbutton.Name = "Viewbutton";
42 | this.Viewbutton.Size = new System.Drawing.Size(67, 24);
43 | this.Viewbutton.TabIndex = 2;
44 | this.Viewbutton.Text = "Edit";
45 | this.Viewbutton.UseVisualStyleBackColor = false;
46 | this.Viewbutton.Click += new System.EventHandler(this.Viewbutton_Click);
47 | //
48 | // ScriptBrowse
49 | //
50 | this.ScriptBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
51 | this.ScriptBrowse.BackColor = System.Drawing.SystemColors.Control;
52 | this.ScriptBrowse.Location = new System.Drawing.Point(383, 7);
53 | this.ScriptBrowse.Name = "ScriptBrowse";
54 | this.ScriptBrowse.Size = new System.Drawing.Size(67, 24);
55 | this.ScriptBrowse.TabIndex = 1;
56 | this.ScriptBrowse.Text = "Browse";
57 | this.ScriptBrowse.UseVisualStyleBackColor = false;
58 | this.ScriptBrowse.Click += new System.EventHandler(this.ScriptBrowse_Click);
59 | //
60 | // ScriptPath
61 | //
62 | this.ScriptPath.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
63 | | System.Windows.Forms.AnchorStyles.Left)
64 | | System.Windows.Forms.AnchorStyles.Right)));
65 | this.ScriptPath.Location = new System.Drawing.Point(1, 10);
66 | this.ScriptPath.Margin = new System.Windows.Forms.Padding(0);
67 | this.ScriptPath.Name = "ScriptPath";
68 | this.ScriptPath.Size = new System.Drawing.Size(372, 20);
69 | this.ScriptPath.TabIndex = 0;
70 | //
71 | // Wizard_Step1
72 | //
73 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
74 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
75 | this.Controls.Add(this.Viewbutton);
76 | this.Controls.Add(this.ScriptBrowse);
77 | this.Controls.Add(this.ScriptPath);
78 | this.Margin = new System.Windows.Forms.Padding(0);
79 | this.Name = "Wizard_Step1";
80 | this.Size = new System.Drawing.Size(528, 46);
81 | this.ResumeLayout(false);
82 | this.PerformLayout();
83 |
84 | }
85 |
86 | #endregion
87 |
88 | private System.Windows.Forms.Button Viewbutton;
89 | private System.Windows.Forms.Button ScriptBrowse;
90 | private System.Windows.Forms.TextBox ScriptPath;
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/DrawingListUC.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | 9.0.30729
7 | 2.0
8 | {26255202-2F69-4247-B7D4-17F51D61637C}
9 | Library
10 | Properties
11 | DrawingListUC
12 | DrawingListUC
13 | v3.5
14 | 512
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | Form
43 |
44 |
45 | OptionsDlg.cs
46 |
47 |
48 | True
49 | True
50 | Resources.resx
51 |
52 |
53 | True
54 | True
55 | Settings.settings
56 |
57 |
58 | UserControl
59 |
60 |
61 | DrawingListControl.cs
62 |
63 |
64 |
65 | Form
66 |
67 |
68 | WizardForm.cs
69 |
70 |
71 | UserControl
72 |
73 |
74 | Wizard_Step1.cs
75 |
76 |
77 | UserControl
78 |
79 |
80 | Wizard_Step2.cs
81 |
82 |
83 | UserControl
84 |
85 |
86 | Wizard_step3.cs
87 |
88 |
89 |
90 |
91 |
92 | OptionsDlg.cs
93 |
94 |
95 | DrawingListControl.cs
96 |
97 |
98 | ResXFileCodeGenerator
99 | Resources.Designer.cs
100 |
101 |
102 | WizardForm.cs
103 |
104 |
105 | Wizard_Step1.cs
106 |
107 |
108 | Wizard_Step2.cs
109 |
110 |
111 | Wizard_step3.cs
112 |
113 |
114 |
115 |
116 |
117 | SettingsSingleFileGenerator
118 | Settings.Designer.cs
119 |
120 |
121 |
122 |
129 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Wizard_step3.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace DrawingListUC
2 | {
3 | partial class Wizard_step3
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Component Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.button_exePath = new System.Windows.Forms.Button();
32 | this.textBox_exePath = new System.Windows.Forms.TextBox();
33 | this.listView_acadPaths = new System.Windows.Forms.ListView();
34 | this.Productcolumn = new System.Windows.Forms.ColumnHeader();
35 | this.ExePath = new System.Windows.Forms.ColumnHeader();
36 | this.SuspendLayout();
37 | //
38 | // button_exePath
39 | //
40 | this.button_exePath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
41 | this.button_exePath.Location = new System.Drawing.Point(458, 7);
42 | this.button_exePath.Name = "button_exePath";
43 | this.button_exePath.Size = new System.Drawing.Size(67, 24);
44 | this.button_exePath.TabIndex = 1;
45 | this.button_exePath.Text = "Browse";
46 | this.button_exePath.UseVisualStyleBackColor = true;
47 | this.button_exePath.Click += new System.EventHandler(this.button_exePath_Click);
48 | //
49 | // textBox_exePath
50 | //
51 | this.textBox_exePath.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
52 | | System.Windows.Forms.AnchorStyles.Left)
53 | | System.Windows.Forms.AnchorStyles.Right)));
54 | this.textBox_exePath.Location = new System.Drawing.Point(3, 10);
55 | this.textBox_exePath.Name = "textBox_exePath";
56 | this.textBox_exePath.Size = new System.Drawing.Size(449, 20);
57 | this.textBox_exePath.TabIndex = 0;
58 | this.textBox_exePath.TextChanged += new System.EventHandler(this.textBox_exePath_TextChanged);
59 | //
60 | // listView_acadPaths
61 | //
62 | this.listView_acadPaths.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
63 | | System.Windows.Forms.AnchorStyles.Left)
64 | | System.Windows.Forms.AnchorStyles.Right)));
65 | this.listView_acadPaths.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
66 | this.Productcolumn,
67 | this.ExePath});
68 | this.listView_acadPaths.FullRowSelect = true;
69 | this.listView_acadPaths.GridLines = true;
70 | this.listView_acadPaths.HideSelection = false;
71 | this.listView_acadPaths.Location = new System.Drawing.Point(3, 40);
72 | this.listView_acadPaths.MultiSelect = false;
73 | this.listView_acadPaths.Name = "listView_acadPaths";
74 | this.listView_acadPaths.Size = new System.Drawing.Size(522, 118);
75 | this.listView_acadPaths.TabIndex = 2;
76 | this.listView_acadPaths.UseCompatibleStateImageBehavior = false;
77 | this.listView_acadPaths.View = System.Windows.Forms.View.Details;
78 | this.listView_acadPaths.SelectedIndexChanged += new System.EventHandler(this.listView_acadPaths_SelectedIndexChanged);
79 | //
80 | // Productcolumn
81 | //
82 | this.Productcolumn.Text = "Product";
83 | this.Productcolumn.Width = 77;
84 | //
85 | // ExePath
86 | //
87 | this.ExePath.Text = "Path";
88 | this.ExePath.Width = 378;
89 | //
90 | // Wizard_step3
91 | //
92 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
93 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
94 | this.Controls.Add(this.listView_acadPaths);
95 | this.Controls.Add(this.button_exePath);
96 | this.Controls.Add(this.textBox_exePath);
97 | this.Margin = new System.Windows.Forms.Padding(0);
98 | this.Name = "Wizard_step3";
99 | this.Size = new System.Drawing.Size(528, 161);
100 | this.Load += new System.EventHandler(this.Wizard_step3_Load);
101 | this.ResumeLayout(false);
102 | this.PerformLayout();
103 |
104 | }
105 |
106 | #endregion
107 |
108 | private System.Windows.Forms.Button button_exePath;
109 | private System.Windows.Forms.TextBox textBox_exePath;
110 | private System.Windows.Forms.ListView listView_acadPaths;
111 | private System.Windows.Forms.ColumnHeader Productcolumn;
112 | private System.Windows.Forms.ColumnHeader ExePath;
113 | }
114 | }
115 |
--------------------------------------------------------------------------------
/Source/BatchProcessApp/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
13 |
14 |
15 |
16 |
17 |
18 |
20 |
21 |
22 |
25 |
26 |
27 |
28 |
29 |
34 |
39 |
44 |
49 |
54 |
59 |
60 |
61 |
65 |
70 |
75 |
80 |
81 |
82 |
87 |
92 |
97 |
98 |
99 |
104 |
105 |
106 |
111 |
112 |
113 |
118 |
119 |
120 |
121 |
129 |
132 |
135 |
136 |
137 |
138 |
139 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Wizard_step3.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Data;
6 | using System.Text;
7 | using System.Windows.Forms;
8 | using System.IO;
9 | using Microsoft.Win32;
10 |
11 | namespace DrawingListUC
12 | {
13 | public partial class Wizard_step3 : UserControl
14 | {
15 | public Wizard_step3()
16 | {
17 | InitializeComponent();
18 | }
19 |
20 | public string acadPath()
21 | {
22 | return textBox_exePath.Text;
23 | }
24 |
25 |
26 | internal static void GetAcadInstallPaths(List productList, List pathList)
27 | {
28 | string value = string.Empty;
29 | RegistryKey localMac = Registry.LocalMachine;
30 | RegistryKey registrySubKey = localMac.OpenSubKey(@"Software\Autodesk\AutoCAD\");
31 |
32 | if (registrySubKey != null)
33 | {
34 | string[] SubKeyNames = registrySubKey.GetSubKeyNames();
35 |
36 | foreach (string subKeyName in SubKeyNames)
37 | {
38 | RegistryKey key = registrySubKey.OpenSubKey(subKeyName);
39 | if (key != null)
40 | {
41 | string[] keyNames = key.GetSubKeyNames();
42 |
43 | foreach (string keyName in keyNames)
44 | {
45 | RegistryKey location = key.OpenSubKey(keyName);
46 | if (location != null)
47 | {
48 | object regKey = location.GetValue("AcadLocation");
49 | if (regKey != null)
50 | {
51 | string path = regKey.ToString();
52 | string acad = path + "\\acad.exe";
53 |
54 |
55 | if (File.Exists(acad))
56 | {
57 | pathList.Add(acad);
58 |
59 | string prodName = string.Empty;
60 | regKey = location.GetValue("ProductName");
61 | if (regKey != null)
62 | {
63 | prodName = regKey.ToString();
64 | productList.Add(prodName);
65 | }
66 |
67 | acad = path + "\\accoreconsole.exe";
68 |
69 | if (File.Exists(acad))
70 | {
71 | pathList.Add(acad);
72 | productList.Add(prodName + " " + "Accoreconsole");
73 | }
74 | }
75 | }
76 | }
77 | location.Close();
78 |
79 | }
80 | key.Close();
81 | }
82 | }
83 |
84 | registrySubKey.Close();
85 | }
86 | }
87 |
88 | private void Wizard_step3_Load(object sender, EventArgs e)
89 | {
90 | //go through the system and find all acad.exe...
91 | List pathList = new List();
92 | List ProductList = new List();
93 |
94 | try
95 | {
96 | GetAcadInstallPaths(ProductList, pathList);
97 |
98 | //populate
99 | int nIndex = 0;
100 | foreach (string acad in ProductList)
101 | {
102 | ListViewItem item = new ListViewItem(acad, 0);
103 | item.SubItems.Add(pathList[nIndex]);
104 | item.Tag = pathList[nIndex];
105 | nIndex++;
106 |
107 |
108 | listView_acadPaths.Items.Add(item);
109 | }
110 |
111 | if (listView_acadPaths.Items.Count != 0)
112 | {
113 | listView_acadPaths.Items[0].Selected = true;
114 | textBox_exePath.Text = listView_acadPaths.Items[0].Tag as string;
115 | }
116 |
117 | int width = listView_acadPaths.Width;
118 | listView_acadPaths.Columns[0].Width = (int)(width * 0.25);
119 | listView_acadPaths.Columns[1].Width = (int)(width * 0.72);
120 | }
121 | catch
122 | {
123 | }
124 | }
125 |
126 |
127 |
128 |
129 | private void button_exePath_Click(object sender, EventArgs e)
130 | {
131 | try
132 | {
133 | OpenFileDialog FileOpenDlg = new OpenFileDialog();
134 |
135 | FileOpenDlg.Filter = "AutoCAD application (*.exe) |*.exe;";
136 | if (FileOpenDlg.ShowDialog() == DialogResult.OK)
137 | {
138 | textBox_exePath.Text = FileOpenDlg.FileName;
139 | }
140 | }
141 | catch { }
142 | }
143 |
144 | private void listView_acadPaths_SelectedIndexChanged(object sender, EventArgs e)
145 | {
146 | if(listView_acadPaths.SelectedItems.Count != 0)
147 | textBox_exePath.Text = listView_acadPaths.SelectedItems[0].Tag as string;
148 | }
149 |
150 | private void textBox_exePath_TextChanged(object sender, EventArgs e)
151 | {
152 |
153 | }
154 | }
155 | }
156 |
--------------------------------------------------------------------------------
/Source/BatchProcessApp/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/OptionsDlg.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/WizardForm.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Wizard_Step1.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Wizard_step3.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/DrawingListControl.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 | 17, 17
122 |
123 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Wizard_Step2.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace DrawingListUC
2 | {
3 | partial class Wizard_Step2
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Component Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Wizard_Step2));
32 | this.Step2_toolStrip1 = new System.Windows.Forms.ToolStrip();
33 | this.AddButton = new System.Windows.Forms.ToolStripButton();
34 | this.AddFolder = new System.Windows.Forms.ToolStripButton();
35 | this.RemoveButton = new System.Windows.Forms.ToolStripButton();
36 | this.Panel_DWGList = new System.Windows.Forms.Panel();
37 | this.Step2_toolStrip1.SuspendLayout();
38 | this.SuspendLayout();
39 | //
40 | // Step2_toolStrip1
41 | //
42 | this.Step2_toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
43 | this.AddButton,
44 | this.AddFolder,
45 | this.RemoveButton});
46 | this.Step2_toolStrip1.Location = new System.Drawing.Point(0, 0);
47 | this.Step2_toolStrip1.Name = "Step2_toolStrip1";
48 | this.Step2_toolStrip1.Size = new System.Drawing.Size(584, 52);
49 | this.Step2_toolStrip1.TabIndex = 0;
50 | this.Step2_toolStrip1.Text = "toolStrip1";
51 | //
52 | // AddButton
53 | //
54 | this.AddButton.Image = ((System.Drawing.Image)(resources.GetObject("AddButton.Image")));
55 | this.AddButton.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
56 | this.AddButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
57 | this.AddButton.ImageTransparentColor = System.Drawing.Color.Magenta;
58 | this.AddButton.Name = "AddButton";
59 | this.AddButton.Size = new System.Drawing.Size(36, 49);
60 | this.AddButton.Text = "Add";
61 | this.AddButton.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
62 | this.AddButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
63 | this.AddButton.ToolTipText = "Add DWG files";
64 | this.AddButton.Click += new System.EventHandler(this.AddButton_Click);
65 | //
66 | // AddFolder
67 | //
68 | this.AddFolder.Image = ((System.Drawing.Image)(resources.GetObject("AddFolder.Image")));
69 | this.AddFolder.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
70 | this.AddFolder.ImageTransparentColor = System.Drawing.Color.Magenta;
71 | this.AddFolder.Name = "AddFolder";
72 | this.AddFolder.Size = new System.Drawing.Size(86, 49);
73 | this.AddFolder.Text = "Add from folder";
74 | this.AddFolder.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
75 | this.AddFolder.ToolTipText = "Add from folder";
76 | this.AddFolder.Click += new System.EventHandler(this.AddFolder_Click);
77 | //
78 | // RemoveButton
79 | //
80 | this.RemoveButton.Image = ((System.Drawing.Image)(resources.GetObject("RemoveButton.Image")));
81 | this.RemoveButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
82 | this.RemoveButton.ImageTransparentColor = System.Drawing.Color.Magenta;
83 | this.RemoveButton.Name = "RemoveButton";
84 | this.RemoveButton.Size = new System.Drawing.Size(50, 49);
85 | this.RemoveButton.Text = "Remove";
86 | this.RemoveButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
87 | this.RemoveButton.Click += new System.EventHandler(this.RemoveButton_Click);
88 | //
89 | // Panel_DWGList
90 | //
91 | this.Panel_DWGList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
92 | | System.Windows.Forms.AnchorStyles.Left)
93 | | System.Windows.Forms.AnchorStyles.Right)));
94 | this.Panel_DWGList.Location = new System.Drawing.Point(3, 58);
95 | this.Panel_DWGList.Name = "Panel_DWGList";
96 | this.Panel_DWGList.Size = new System.Drawing.Size(578, 217);
97 | this.Panel_DWGList.TabIndex = 1;
98 | //
99 | // Wizard_Step2
100 | //
101 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
102 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
103 | this.Controls.Add(this.Panel_DWGList);
104 | this.Controls.Add(this.Step2_toolStrip1);
105 | this.Margin = new System.Windows.Forms.Padding(0);
106 | this.Name = "Wizard_Step2";
107 | this.Size = new System.Drawing.Size(584, 278);
108 | this.Load += new System.EventHandler(this.Wizard_Step2_Load);
109 | this.Step2_toolStrip1.ResumeLayout(false);
110 | this.Step2_toolStrip1.PerformLayout();
111 | this.ResumeLayout(false);
112 | this.PerformLayout();
113 |
114 | }
115 |
116 | #endregion
117 |
118 | private System.Windows.Forms.ToolStrip Step2_toolStrip1;
119 | private System.Windows.Forms.ToolStripButton AddButton;
120 | private System.Windows.Forms.ToolStripButton AddFolder;
121 | private System.Windows.Forms.ToolStripButton RemoveButton;
122 | private System.Windows.Forms.Panel Panel_DWGList;
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/Source/BatchProcessApp/BatchProcessApp.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | 9.0.30729
7 | 2.0
8 | {5DED7800-5F14-4EF6-96AA-17C2599F0398}
9 | WinExe
10 | Properties
11 | BatchProcessApp
12 | ScriptPro
13 | v3.5
14 | 512
15 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
16 | 4
17 | cog.ico
18 | true
19 | publish\
20 | true
21 | Disk
22 | false
23 | Foreground
24 | 7
25 | Days
26 | false
27 | false
28 | true
29 | 0
30 | 1.0.0.%2a
31 | false
32 | false
33 | true
34 |
35 |
36 | true
37 | full
38 | false
39 | bin\Debug\
40 | DEBUG;TRACE
41 | prompt
42 | 4
43 |
44 |
45 | pdbonly
46 | true
47 | bin\Release\
48 | TRACE
49 | prompt
50 | 4
51 |
52 |
53 |
54 | True
55 |
56 |
57 |
58 |
59 |
60 |
61 | 3.0
62 |
63 |
64 | 3.0
65 |
66 |
67 |
68 |
69 | MSBuild:Compile
70 | Designer
71 |
72 |
73 | MSBuild:Compile
74 | Designer
75 |
76 |
77 | App.xaml
78 | Code
79 |
80 |
81 | MainWindow.xaml
82 | Code
83 |
84 |
85 |
86 |
87 | Code
88 |
89 |
90 | True
91 | True
92 | Resources.resx
93 |
94 |
95 | True
96 | Settings.settings
97 | True
98 |
99 |
100 | ResXFileCodeGenerator
101 | Resources.Designer.cs
102 |
103 |
104 | SettingsSingleFileGenerator
105 | Settings.Designer.cs
106 |
107 |
108 |
109 |
110 |
111 | {26255202-2F69-4247-B7D4-17F51D61637C}
112 | DrawingListUC
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 | False
162 | .NET Framework Client Profile
163 | false
164 |
165 |
166 | False
167 | .NET Framework 2.0 %28x86%29
168 | false
169 |
170 |
171 | False
172 | .NET Framework 3.0 %28x86%29
173 | false
174 |
175 |
176 | False
177 | .NET Framework 3.5
178 | false
179 |
180 |
181 | False
182 | .NET Framework 3.5 SP1
183 | true
184 |
185 |
186 | False
187 | Windows Installer 3.1
188 | true
189 |
190 |
191 |
192 |
193 |
194 |
195 |
202 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/WizardForm.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace DrawingListUC
2 | {
3 | partial class WizardForm
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.Step1_panel = new System.Windows.Forms.Panel();
32 | this.Step3_panel = new System.Windows.Forms.Panel();
33 | this.StartScriptPro = new System.Windows.Forms.Button();
34 | this.Finish_Button = new System.Windows.Forms.Button();
35 | this.Cancel_button = new System.Windows.Forms.Button();
36 | this.label1_step1 = new System.Windows.Forms.Label();
37 | this.Step2_panel = new System.Windows.Forms.Panel();
38 | this.label_step2 = new System.Windows.Forms.Label();
39 | this.label_step3 = new System.Windows.Forms.Label();
40 | this.SuspendLayout();
41 | //
42 | // Step1_panel
43 | //
44 | this.Step1_panel.Location = new System.Drawing.Point(16, 24);
45 | this.Step1_panel.Name = "Step1_panel";
46 | this.Step1_panel.Size = new System.Drawing.Size(533, 32);
47 | this.Step1_panel.TabIndex = 0;
48 | //
49 | // Step3_panel
50 | //
51 | this.Step3_panel.Location = new System.Drawing.Point(16, 394);
52 | this.Step3_panel.Margin = new System.Windows.Forms.Padding(0);
53 | this.Step3_panel.Name = "Step3_panel";
54 | this.Step3_panel.Size = new System.Drawing.Size(533, 134);
55 | this.Step3_panel.TabIndex = 0;
56 | //
57 | // StartScriptPro
58 | //
59 | this.StartScriptPro.Location = new System.Drawing.Point(403, 535);
60 | this.StartScriptPro.Name = "StartScriptPro";
61 | this.StartScriptPro.Size = new System.Drawing.Size(146, 24);
62 | this.StartScriptPro.TabIndex = 23;
63 | this.StartScriptPro.Text = "Finish && Start ScriptPro";
64 | this.StartScriptPro.UseVisualStyleBackColor = true;
65 | this.StartScriptPro.Click += new System.EventHandler(this.StartScriptPro_Click);
66 | //
67 | // Finish_Button
68 | //
69 | this.Finish_Button.Location = new System.Drawing.Point(323, 535);
70 | this.Finish_Button.Name = "Finish_Button";
71 | this.Finish_Button.Size = new System.Drawing.Size(70, 24);
72 | this.Finish_Button.TabIndex = 22;
73 | this.Finish_Button.Text = "Finish";
74 | this.Finish_Button.UseVisualStyleBackColor = true;
75 | this.Finish_Button.Click += new System.EventHandler(this.Finish_Button_Click);
76 | //
77 | // Cancel_button
78 | //
79 | this.Cancel_button.Location = new System.Drawing.Point(246, 535);
80 | this.Cancel_button.Name = "Cancel_button";
81 | this.Cancel_button.Size = new System.Drawing.Size(69, 24);
82 | this.Cancel_button.TabIndex = 21;
83 | this.Cancel_button.Text = "Cancel";
84 | this.Cancel_button.UseVisualStyleBackColor = true;
85 | this.Cancel_button.Click += new System.EventHandler(this.Cancel_button_Click);
86 | //
87 | // label1_step1
88 | //
89 | this.label1_step1.AutoSize = true;
90 | this.label1_step1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
91 | this.label1_step1.ForeColor = System.Drawing.Color.Blue;
92 | this.label1_step1.Location = new System.Drawing.Point(16, 9);
93 | this.label1_step1.Name = "label1_step1";
94 | this.label1_step1.Size = new System.Drawing.Size(170, 13);
95 | this.label1_step1.TabIndex = 24;
96 | this.label1_step1.Text = "Step 1 : Select the script file";
97 | this.label1_step1.Click += new System.EventHandler(this.label1_step1_Click);
98 | //
99 | // Step2_panel
100 | //
101 | this.Step2_panel.Location = new System.Drawing.Point(16, 82);
102 | this.Step2_panel.Margin = new System.Windows.Forms.Padding(0);
103 | this.Step2_panel.Name = "Step2_panel";
104 | this.Step2_panel.Size = new System.Drawing.Size(533, 296);
105 | this.Step2_panel.TabIndex = 0;
106 | //
107 | // label_step2
108 | //
109 | this.label_step2.AutoSize = true;
110 | this.label_step2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
111 | this.label_step2.ForeColor = System.Drawing.Color.Blue;
112 | this.label_step2.Location = new System.Drawing.Point(16, 61);
113 | this.label_step2.Name = "label_step2";
114 | this.label_step2.Size = new System.Drawing.Size(153, 13);
115 | this.label_step2.TabIndex = 25;
116 | this.label_step2.Text = "Step 2 : Add drawing files";
117 | //
118 | // label_step3
119 | //
120 | this.label_step3.AutoSize = true;
121 | this.label_step3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
122 | this.label_step3.ForeColor = System.Drawing.Color.Blue;
123 | this.label_step3.Location = new System.Drawing.Point(16, 381);
124 | this.label_step3.Name = "label_step3";
125 | this.label_step3.Size = new System.Drawing.Size(226, 13);
126 | this.label_step3.TabIndex = 26;
127 | this.label_step3.Text = "Step 3 : Select the Application version";
128 | //
129 | // WizardForm
130 | //
131 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
132 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
133 | this.ClientSize = new System.Drawing.Size(568, 567);
134 | this.Controls.Add(this.Step3_panel);
135 | this.Controls.Add(this.label_step3);
136 | this.Controls.Add(this.Step2_panel);
137 | this.Controls.Add(this.label_step2);
138 | this.Controls.Add(this.label1_step1);
139 | this.Controls.Add(this.Step1_panel);
140 | this.Controls.Add(this.StartScriptPro);
141 | this.Controls.Add(this.Finish_Button);
142 | this.Controls.Add(this.Cancel_button);
143 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
144 | this.MaximizeBox = false;
145 | this.MinimizeBox = false;
146 | this.Name = "WizardForm";
147 | this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
148 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
149 | this.Text = "Wizard : 3 simple steps";
150 | this.Load += new System.EventHandler(this.WizardForm_Load);
151 | this.ResumeLayout(false);
152 | this.PerformLayout();
153 |
154 | }
155 |
156 | #endregion
157 |
158 | private System.Windows.Forms.Panel Step1_panel;
159 | private System.Windows.Forms.Panel Step3_panel;
160 | private System.Windows.Forms.Button StartScriptPro;
161 | private System.Windows.Forms.Button Finish_Button;
162 | private System.Windows.Forms.Button Cancel_button;
163 | private System.Windows.Forms.Label label1_step1;
164 | private System.Windows.Forms.Panel Step2_panel;
165 | private System.Windows.Forms.Label label_step2;
166 | private System.Windows.Forms.Label label_step3;
167 | }
168 | }
--------------------------------------------------------------------------------
/Source/BatchProcessApp/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using System.Windows;
4 | using System.Windows.Controls;
5 | using System.Windows.Shapes;
6 | using Microsoft.Windows.Controls.Ribbon;
7 | using Microsoft.Win32;
8 |
9 | namespace BatchProcessApp
10 | {
11 | ///
12 | /// Interaction logic for MainWindow.xaml
13 | ///
14 | public partial class MainWindow : RibbonWindow, IMessageFilter
15 | {
16 | [DllImport("ole32.dll")]
17 | static extern int CoRegisterMessageFilter(
18 | IMessageFilter lpMessageFilter,
19 | out IMessageFilter lplpMessageFilter
20 | );
21 |
22 |
23 | public MainWindow()
24 | {
25 | InitializeComponent();
26 |
27 | IMessageFilter oldFilter;
28 | CoRegisterMessageFilter(this, out oldFilter);
29 |
30 | DWGControl.HostApplication = this;
31 |
32 | try
33 | {
34 | RegistryKey key =
35 | Registry.ClassesRoot.CreateSubKey(".bpl");
36 | key.SetValue(
37 | "", "BPL", Microsoft.Win32.RegistryValueKind.String
38 | );
39 | key.Close();
40 |
41 | key = Registry.ClassesRoot.CreateSubKey(
42 | "BPL\\shell\\open\\command"
43 | );
44 | key.SetValue(
45 | "", "\"" +
46 | System.Reflection.Assembly.GetExecutingAssembly().Location
47 | + "\"" + "\"\"%l\"\"",
48 | Microsoft.Win32.RegistryValueKind.String
49 | );
50 | key.Close();
51 |
52 | key = Registry.ClassesRoot.CreateSubKey("BPL\\DefaultIcon");
53 | key.SetValue(
54 | "",
55 | System.Reflection.Assembly.GetExecutingAssembly().Location
56 | + ",-32512"
57 | );
58 | key.Close();
59 | }
60 | catch { }
61 | }
62 |
63 | private bool _IsProcessRunning = false;
64 | private const string _toolTitle = "ScriptPro";
65 |
66 | #region IMessageFilter Members
67 |
68 | int IMessageFilter.HandleInComingCall(
69 | int dwCallType, IntPtr hTaskCaller,
70 | int dwTickCount, IntPtr lpInterfaceInfo
71 | )
72 | {
73 | return 0; // SERVERCALL_ISHANDLED
74 | }
75 |
76 | int IMessageFilter.RetryRejectedCall(
77 | IntPtr hTaskCallee, int dwTickCount,
78 | int dwRejectType
79 | )
80 | {
81 | return 1000; // Retry in a second
82 | }
83 |
84 | int IMessageFilter.MessagePending(
85 | IntPtr hTaskCallee, int dwTickCount, int dwPendingType
86 | )
87 | {
88 | return 1; // PENDINGMSG_WAITNOPROCESS
89 | }
90 |
91 | #endregion
92 |
93 | private void AddDWGFile_Click(object sender, RoutedEventArgs e)
94 | {
95 | try
96 | {
97 | if (_IsProcessRunning)
98 | return;
99 |
100 | this.DWGControl.AddDWGFiles();
101 | }
102 | catch { }
103 | }
104 |
105 | private void AddDWGFolder_Click(object sender, RoutedEventArgs e)
106 | {
107 | try
108 | {
109 | if (_IsProcessRunning)
110 | return;
111 |
112 | this.DWGControl.AddDWGFilesFromFolder();
113 | }
114 | catch { }
115 | }
116 |
117 | private void RemoveDWG_Click(object sender, RoutedEventArgs e)
118 | {
119 | try
120 | {
121 | if (_IsProcessRunning)
122 | return;
123 |
124 | DWGControl.RemoveSelectedDWG();
125 | }
126 | catch { }
127 | }
128 |
129 | private void SkipDWG_Click(object sender, RoutedEventArgs e)
130 | {
131 | try
132 | {
133 | if (_IsProcessRunning)
134 | return;
135 |
136 | DWGControl.SkipSelectedDWG();
137 | }
138 | catch { }
139 | }
140 |
141 | private void LoadList_Click(object sender, RoutedEventArgs e)
142 | {
143 | try
144 | {
145 | if (_IsProcessRunning)
146 | return;
147 |
148 | MessageBoxResult result = saveDrawingList();
149 | if (result == MessageBoxResult.Cancel)
150 | return;
151 |
152 | DWGControl.loadDWGList();
153 |
154 | if (!String.IsNullOrEmpty(DWGControl.ProjectName))
155 | this.Title =
156 | _toolTitle + " - " + DWGControl.ProjectName;
157 | }
158 | catch { }
159 | }
160 |
161 | private void SaveList_Click
162 | (object sender, RoutedEventArgs e)
163 | {
164 | try
165 | {
166 | if (_IsProcessRunning)
167 | return;
168 |
169 | DWGControl.saveDWGList(false);
170 |
171 | if (!String.IsNullOrEmpty(DWGControl.ProjectName))
172 | this.Title =
173 | _toolTitle + " - " + DWGControl.ProjectName;
174 | }
175 | catch { }
176 | }
177 |
178 | private void LoadSCP_Click
179 | (object sender, RoutedEventArgs e)
180 | {
181 | try
182 | {
183 | if (_IsProcessRunning)
184 | return;
185 |
186 | MessageBoxResult result = saveDrawingList();
187 | if (result == MessageBoxResult.Cancel)
188 | return;
189 |
190 | DWGControl.loadFromSCPfile();
191 | }
192 | catch { }
193 | }
194 |
195 | private void RunChecked_Click
196 | (object sender, RoutedEventArgs e)
197 | {
198 | try
199 | {
200 | if (_IsProcessRunning)
201 | return;
202 |
203 | DWGControl.runCheckedFiles();
204 | }
205 | catch { }
206 | }
207 |
208 | private void RunSelected_Click
209 | (object sender, RoutedEventArgs e)
210 | {
211 | try
212 | {
213 | if (_IsProcessRunning)
214 | return;
215 |
216 | DWGControl.runSelectedFiles();
217 | }
218 | catch { }
219 | }
220 |
221 | private void RunFailed_Click
222 | (object sender, RoutedEventArgs e)
223 | {
224 | try
225 | {
226 | if (_IsProcessRunning)
227 | return;
228 |
229 | DWGControl.runFailedFiles();
230 | }
231 | catch { }
232 | }
233 |
234 | private void StopProcess_Click
235 | (object sender, RoutedEventArgs e)
236 | {
237 | try
238 | {
239 | DWGControl.stopProcess();
240 | }
241 | catch { }
242 | }
243 |
244 | private void ProcessOptions_Click
245 | (object sender, RoutedEventArgs e)
246 | {
247 | try
248 | {
249 | if (_IsProcessRunning)
250 | return;
251 |
252 | DWGControl.setOptions();
253 | }
254 | catch { }
255 | }
256 |
257 | void updateUI(bool enabled)
258 | {
259 | try
260 | {
261 | NewList.IsEnabled = enabled;
262 | WizardList.IsEnabled = enabled;
263 | LoadList.IsEnabled = enabled;
264 | SaveList.IsEnabled = enabled;
265 | SaveAsList.IsEnabled = enabled;
266 | LoadSCP.IsEnabled = enabled;
267 |
268 | AddDWGFile.IsEnabled = enabled;
269 | AddDWGFolder.IsEnabled = enabled;
270 | RemoveDWG.IsEnabled = enabled;
271 | SkipDWG.IsEnabled = enabled;
272 |
273 | RunChecked.IsEnabled = enabled;
274 | RunSelected.IsEnabled = enabled;
275 | RunFailed.IsEnabled = enabled;
276 |
277 | // Opposite....
278 |
279 | StopProcess.IsEnabled = !enabled;
280 |
281 | ProcessOptions.IsEnabled = enabled;
282 | }
283 | catch { }
284 | }
285 |
286 | //This is to end the ScriptPro application
287 | //used in Silent exit
288 |
289 | public void exitApplication()
290 | {
291 | Application.Current.Shutdown();
292 | }
293 | //This is done to set the focus back to scriptpro
294 | //application. some times, scriptpro is not able to kill
295 | //AutoCAD, when AutoCAD is topmost application
296 |
297 | public void setFocusToApplication()
298 | {
299 | try
300 | {
301 | WindowState state = this.WindowState;
302 | this.WindowState = WindowState.Minimized;
303 |
304 | this.WindowState = WindowState.Maximized;
305 | this.Activate();
306 | this.WindowState = state;
307 | }
308 | catch
309 | {
310 | }
311 | }
312 |
313 | public void processStatus(bool started)
314 | {
315 | try
316 | {
317 | _IsProcessRunning = started;
318 | updateUI(!_IsProcessRunning);
319 | }
320 | catch { }
321 | }
322 |
323 | private void RibbonWindow_Loaded(
324 | object sender, RoutedEventArgs e
325 | )
326 | {
327 | try
328 | {
329 | if (!String.IsNullOrEmpty(DWGControl.ProjectName))
330 | this.Title =
331 | _toolTitle + " - " + DWGControl.ProjectName;
332 |
333 | // Disable the stop button...
334 |
335 | StopProcess.IsEnabled = false;
336 |
337 |
338 | DWGControl.DoInitialize();
339 | }
340 | catch { }
341 | }
342 |
343 | private void NewList_Click(object sender, RoutedEventArgs e)
344 | {
345 | try
346 | {
347 | if (_IsProcessRunning)
348 | return;
349 |
350 | MessageBoxResult result = saveDrawingList();
351 | if (result == MessageBoxResult.Cancel)
352 | return;
353 |
354 |
355 | DWGControl.newDWGList();
356 |
357 | this.Title = _toolTitle;
358 | }
359 | catch
360 | {
361 | }
362 | }
363 |
364 | private void SaveAsList_Click(object sender, RoutedEventArgs e)
365 | {
366 | try
367 | {
368 | if (_IsProcessRunning)
369 | return;
370 |
371 | DWGControl.saveDWGList(true);
372 |
373 | if (DWGControl.ProjectName.Length != 0)
374 | this.Title =
375 | _toolTitle + " - " + DWGControl.ProjectName;
376 | }
377 | catch { }
378 | }
379 |
380 | MessageBoxResult saveDrawingList()
381 | {
382 | MessageBoxResult result = MessageBoxResult.None;
383 | try
384 | {
385 | if (DWGControl.Modified)
386 | {
387 | result =
388 | MessageBox.Show(
389 | "Drawing list is modified. Do you want to save?",
390 | _toolTitle, MessageBoxButton.YesNoCancel
391 | );
392 |
393 | if (result == MessageBoxResult.Cancel)
394 | return result;
395 |
396 | if (result == MessageBoxResult.Yes)
397 | DWGControl.saveDWGList(false);
398 | }
399 | }
400 | catch
401 | {
402 | }
403 | return result;
404 | }
405 |
406 | private void RibbonWindow_Closing(
407 | object sender, System.ComponentModel.CancelEventArgs e
408 | )
409 | {
410 | try
411 | {
412 | MessageBoxResult result = saveDrawingList();
413 |
414 | if (result == MessageBoxResult.Cancel)
415 | e.Cancel = true;
416 | }
417 | catch
418 | {
419 | }
420 | }
421 |
422 | private void ProcessHelp_Click(object sender, RoutedEventArgs e)
423 | {
424 | string exePath =
425 | System.Reflection.Assembly.GetExecutingAssembly().Location;
426 | bool helpFileFound = false;
427 | string exeFolder = System.IO.Path.GetDirectoryName(exePath);
428 | string root = System.IO.Directory.GetDirectoryRoot(exePath);
429 | string helpFile = "";
430 |
431 | try
432 | {
433 | //helpFile = exeFolder + "\\" + "ReadMe.txt";
434 | helpFile = exeFolder + "\\" + "ScriptPro2.htm";
435 | if (System.IO.File.Exists(helpFile))
436 | {
437 | helpFileFound = true;
438 | }
439 | else
440 | {
441 | // Go one above
442 |
443 | exeFolder =
444 | System.IO.Directory.GetParent(exeFolder).FullName;
445 | //helpFile = exeFolder + "\\" + "ReadMe.txt";
446 | helpFile = exeFolder + "\\" + "ScriptPro2.htm";
447 | if (System.IO.File.Exists(helpFile))
448 | {
449 | helpFileFound = true;
450 | }
451 | }
452 | }
453 | catch
454 | {
455 | }
456 |
457 | if (helpFileFound)
458 | {
459 | System.Diagnostics.Process.Start(helpFile);
460 |
461 | //System.Diagnostics.Process notePad =
462 | // new System.Diagnostics.Process();
463 | //notePad.StartInfo.FileName = "notepad.exe";
464 | //notePad.StartInfo.Arguments = helpFile;
465 | //notePad.Start();
466 | }
467 | else
468 | {
469 | string strFolder =
470 | System.IO.Path.GetDirectoryName(exePath);
471 | MessageBox.Show(
472 | "ReadMe.txt file not found at location " + strFolder,
473 | _toolTitle
474 | );
475 | }
476 | }
477 |
478 |
479 | private void WizardList_Click(object sender, RoutedEventArgs e)
480 | {
481 | try
482 | {
483 | if (_IsProcessRunning)
484 | return;
485 |
486 | MessageBoxResult result = saveDrawingList();
487 | if (result == MessageBoxResult.Cancel)
488 | return;
489 |
490 |
491 | DWGControl.wizardDWGList();
492 |
493 | }
494 | catch
495 | {
496 | }
497 | }
498 | }
499 |
500 | [ComImport,
501 | InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
502 | Guid("00000016-0000-0000-C000-000000000046")]
503 | public interface IMessageFilter
504 | {
505 | [PreserveSig]
506 | int HandleInComingCall(
507 | int dwCallType, IntPtr hTaskCaller,
508 | int dwTickCount, IntPtr lpInterfaceInfo
509 | );
510 | [PreserveSig]
511 | int RetryRejectedCall(
512 | IntPtr hTaskCallee, int dwTickCount, int dwRejectType
513 | );
514 | [PreserveSig]
515 | int MessagePending(
516 | IntPtr hTaskCallee, int dwTickCount, int dwPendingType
517 | );
518 | }
519 | }
520 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/OptionsDlg.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 | using System.Diagnostics;
4 | using System.IO;
5 |
6 | namespace DrawingListUC
7 | {
8 | public partial class OptionsDlg : Form
9 | {
10 | public OptionsDlg()
11 | {
12 | InitializeComponent();
13 | }
14 |
15 | private string _iniScript = "";
16 | private string _logFilePath = "";
17 | private string _acadExePath = "";
18 | private int _timeout = 30;
19 | private int _restartCount = 30;
20 | private bool _searchAllDirectories = false;
21 | private int _createImage = 2; // Failed
22 | private bool _diagnosticMode;
23 | private int _toolSpeed = 0;
24 | private bool _runWithoutOpen = false;
25 | private bool _useCmdLine = false;
26 |
27 | public string IniScript
28 | {
29 | get
30 | {
31 | return _iniScript;
32 | }
33 | set
34 | {
35 | try
36 | {
37 | _iniScript = value;
38 | ScriptPath.Text =
39 | _iniScript;
40 | }
41 | catch { }
42 | }
43 | }
44 | //
45 |
46 |
47 | public string acadExePath
48 | {
49 | get
50 | {
51 | return _acadExePath;
52 | }
53 | set
54 | {
55 | try
56 | {
57 | _acadExePath = value;
58 | textBox_exePath.Text =
59 | _acadExePath;
60 | }
61 | catch { }
62 | }
63 | }
64 |
65 | public string logFilePath
66 | {
67 | get
68 | {
69 | return _logFilePath;
70 | }
71 | set
72 | {
73 | try
74 | {
75 | _logFilePath = value;
76 | ProcessLogFilePath.Text =
77 | _logFilePath;
78 | }
79 | catch { }
80 | }
81 | }
82 |
83 | public int timeout
84 | {
85 | get
86 | {
87 | return _timeout;
88 | }
89 | }
90 |
91 | public int reStartCount
92 | {
93 | get
94 | {
95 | return _restartCount;
96 | }
97 | }
98 |
99 | public int nCreateImage
100 | {
101 | get
102 | {
103 | return _createImage;
104 | }
105 | }
106 | public int toolSpeed
107 | {
108 | get
109 | {
110 | return _toolSpeed;
111 | }
112 | set
113 | {
114 | try
115 | {
116 | _toolSpeed = value;
117 | trackBar_speed.Value = _toolSpeed;
118 | }
119 | catch { }
120 | }
121 | }
122 |
123 |
124 | public bool SearchAllDirectories
125 | {
126 | get
127 | {
128 | return _searchAllDirectories;
129 | }
130 | set
131 | {
132 | _searchAllDirectories = value;
133 | }
134 | }
135 |
136 | public bool RunWithoutOpen
137 | {
138 | get
139 | {
140 | return _runWithoutOpen;
141 | }
142 | set
143 | {
144 | try
145 | {
146 | _runWithoutOpen = value;
147 | OpenDWGFile.Checked =
148 | value;
149 | }
150 | catch { }
151 |
152 | }
153 | }
154 |
155 | //Not used for now..
156 | public bool UseScriptAsCmdLine
157 | {
158 | get
159 | {
160 | return _useCmdLine;
161 | }
162 | set
163 | {
164 | try
165 | {
166 | _useCmdLine = value;
167 | UseExeCheckbox.Checked =
168 | value;
169 | }
170 | catch { }
171 |
172 | }
173 | }
174 |
175 | public bool DiagnosticMode
176 | {
177 | get
178 | {
179 | return _diagnosticMode;
180 | }
181 | set
182 | {
183 | _diagnosticMode = value;
184 |
185 | try
186 | {
187 | diagnosticMode.Checked = _diagnosticMode;
188 | }
189 | catch { }
190 | }
191 | }
192 |
193 |
194 |
195 | private void OptionOK_Click(object sender, EventArgs e)
196 | {
197 | try
198 | {
199 | if (Convert.ToInt32(this.textSeconds.Text) < 10)
200 | {
201 | MessageBox.Show("Timeout should be at least 10 seconds");
202 | return;
203 | }
204 | }
205 | catch
206 | {
207 | MessageBox.Show(
208 | "Specific valid publish timeout in seconds"
209 | );
210 | textSeconds.Focus();
211 | return;
212 | }
213 | //
214 | try
215 | {
216 | if (Convert.ToInt32(this.restartAcad.Text) <= 0)
217 | {
218 | MessageBox.Show(
219 | "Restart AutoCAD value should be more then 0"
220 | );
221 | return;
222 | }
223 | }
224 | catch
225 | {
226 | MessageBox.Show(
227 | "Specific valid AutoCAD restart value"
228 | );
229 | restartAcad.Focus();
230 | return;
231 | }
232 |
233 | if (ScriptPath.Text.Length != 0)
234 | {
235 | if (!System.IO.File.Exists(ScriptPath.Text))
236 | {
237 | MessageBox.Show(
238 | "Specific valid Start up script file"
239 | );
240 |
241 | IniScriptBrowse.Focus();
242 | return;
243 | }
244 | }
245 |
246 | if (ProcessLogFilePath.Text.Length != 0)
247 | {
248 | try
249 | {
250 | string str = ProcessLogFilePath.Text + "\\" + "test.log";
251 | StreamWriter SW = File.CreateText(str);
252 | SW.Close();
253 |
254 | File.Delete(str);
255 | }
256 | catch
257 | {
258 | MessageBox.Show("Specific valid log file folder value");
259 | ProcessLogFilePath.Focus();
260 | ProcessLogFilePath.Text = Path.GetTempPath();
261 | return;
262 | }
263 | }
264 |
265 | if (textBox_exePath.Text.Length != 0)
266 | {
267 | if (!System.IO.File.Exists(textBox_exePath.Text))
268 | {
269 | MessageBox.Show(
270 | "Specific valid AutoCAD application"
271 | );
272 |
273 | textBox_exePath.Focus();
274 | return;
275 | }
276 | }
277 |
278 | _iniScript = ScriptPath.Text;
279 | _timeout = Convert.ToInt32(this.textSeconds.Text);
280 | _restartCount = Convert.ToInt32(this.restartAcad.Text);
281 | _logFilePath = ProcessLogFilePath.Text;
282 | _searchAllDirectories = searchFolder.Checked;
283 | _acadExePath = textBox_exePath.Text;
284 | _diagnosticMode = diagnosticMode.Checked;
285 | _toolSpeed = trackBar_speed.Value;
286 | _runWithoutOpen = OpenDWGFile.Checked;
287 |
288 | //not used for now
289 | //_useCmdLine = UseExeCheckbox.Checked;
290 |
291 | //check for exe
292 | if (_useCmdLine)
293 | {
294 | //
295 | bool showError = true;
296 | if (textBox_exePath.Text.Length != 0)
297 | {
298 | if (System.IO.File.Exists(textBox_exePath.Text))
299 | {
300 | showError = false;
301 |
302 | }
303 | }
304 |
305 | if (showError)
306 | {
307 | MessageBox.Show(
308 | "Specific valid AutoCAD/Console application"
309 | );
310 |
311 | textBox_exePath.Focus();
312 | return;
313 | }
314 | }
315 |
316 | try
317 | {
318 | if (searchFolder.Checked)
319 | {
320 | Properties.Settings.Default.SearchAllDirectories = "true";
321 | }
322 | else
323 | {
324 | Properties.Settings.Default.SearchAllDirectories = "false";
325 | }
326 |
327 | if (radioButton_none.Checked)
328 | {
329 | Properties.Settings.Default.CreateImage = "2";
330 | _createImage = 2;
331 | }
332 | else if (radioButton_failed.Checked)
333 | {
334 | Properties.Settings.Default.CreateImage = "1";
335 | _createImage = 1;
336 | }
337 | else
338 | {
339 | Properties.Settings.Default.CreateImage = "0";
340 | _createImage = 0;
341 | }
342 | Properties.Settings.Default.Save();
343 | }
344 | catch
345 | {
346 | }
347 |
348 | SaveSettings();
349 | DialogResult = DialogResult.OK;
350 | }
351 |
352 | private void OptionCancel_Click(object sender, EventArgs e)
353 | {
354 | DialogResult = DialogResult.Cancel;
355 | }
356 |
357 | private void IniScriptBrowse_Click(object sender, EventArgs e)
358 | {
359 | try
360 | {
361 | OpenFileDialog FileOpenDlg = new OpenFileDialog();
362 |
363 | if (File.Exists(_iniScript))
364 | FileOpenDlg.InitialDirectory =
365 | Path.GetDirectoryName(_iniScript);
366 |
367 | FileOpenDlg.Filter = "Script (*.scr) |*.scr;";
368 | if (FileOpenDlg.ShowDialog() == DialogResult.OK)
369 | IniScript = FileOpenDlg.FileName;
370 | }
371 | catch { }
372 | }
373 |
374 | private void IniViewbutton_Click(object sender, EventArgs e)
375 | {
376 | Process notePad = new Process();
377 | notePad.StartInfo.FileName = "notepad.exe";
378 |
379 | // Find if the file is present
380 |
381 | if (File.Exists(ScriptPath.Text))
382 | {
383 | notePad.StartInfo.Arguments = ScriptPath.Text;
384 | }
385 | notePad.Start();
386 | }
387 |
388 | private void OptionsDlg_Load(object sender, EventArgs e)
389 | {
390 | ApplySettings();
391 |
392 | //
393 | if (ProcessLogFilePath.Text.Length == 0)
394 | logFilePath = Path.GetTempPath();
395 |
396 |
397 | if (_useCmdLine)
398 | {
399 | UpdateUI_seExeCheckbox(true);
400 | }
401 | }
402 | public void SaveSettings()
403 | {
404 |
405 | }
406 |
407 | public void ApplySettings()
408 | {
409 |
410 | }
411 |
412 | public void setProjectSetting(
413 | string startUpScript, string timeout,
414 | string logFile, string _restartDWGCount
415 | )
416 | {
417 | textSeconds.Text = timeout;
418 | restartAcad.Text = _restartDWGCount;
419 | ScriptPath.Text = startUpScript;
420 | logFilePath = logFile;
421 |
422 | // Read from the settings
423 |
424 | string str = Properties.Settings.Default.SearchAllDirectories;
425 |
426 | if (str.Contains("false"))
427 | searchFolder.Checked = false;
428 | else
429 | searchFolder.Checked = true;
430 |
431 | str = Properties.Settings.Default.CreateImage;
432 |
433 | if (str.Contains("1"))
434 | this.radioButton_failed.Checked = true;
435 | else if (str.Contains("0"))
436 | {
437 | this.radioButton_all.Checked = true;
438 | }
439 | else
440 | {
441 | this.radioButton_none.Checked = true;
442 | }
443 | }
444 |
445 | private void logPathBrowse_Click(object sender, EventArgs e)
446 | {
447 | FolderBrowserDialog LogDia = new FolderBrowserDialog();
448 | LogDia.ShowNewFolderButton = true;
449 | LogDia.SelectedPath = _logFilePath;
450 |
451 | if (LogDia.ShowDialog() == DialogResult.OK)
452 | {
453 | ProcessLogFilePath.Text = LogDia.SelectedPath;
454 |
455 | try
456 | {
457 | string str = ProcessLogFilePath.Text + "\\" + "test.log";
458 | StreamWriter SW = File.CreateText(str);
459 | SW.Close();
460 |
461 | File.Delete(str);
462 | _logFilePath = ProcessLogFilePath.Text;
463 | }
464 | catch
465 | {
466 | MessageBox.Show("Unable to create the log file");
467 | ProcessLogFilePath.Text = "";
468 | }
469 | }
470 | }
471 |
472 | private void button_exePath_Click(object sender, EventArgs e)
473 | {
474 | try
475 | {
476 | OpenFileDialog FileOpenDlg = new OpenFileDialog();
477 |
478 | if (File.Exists(_acadExePath))
479 | FileOpenDlg.InitialDirectory =
480 | Path.GetDirectoryName(_acadExePath);
481 |
482 | FileOpenDlg.Filter = "AutoCAD application (*.exe) |*.exe;";
483 | if (FileOpenDlg.ShowDialog() == DialogResult.OK)
484 | {
485 | acadExePath = FileOpenDlg.FileName;
486 |
487 | if (DrawingListControl.isHeadlessAcad(acadExePath))
488 | UpdateUI_seExeCheckbox(true);
489 | else
490 | UpdateUI_seExeCheckbox(false);
491 | }
492 | }
493 | catch { }
494 | }
495 |
496 | private void trackBar_speed_Scroll(object sender, EventArgs e)
497 | {
498 |
499 | }
500 |
501 |
502 |
503 | private void UpdateUI_seExeCheckbox(bool useExe)
504 | {
505 | try
506 | {
507 | restartAcad.Enabled = !useExe;
508 | radioButton_all.Enabled = !useExe;
509 | radioButton_none.Enabled = !useExe;
510 | this.radioButton_failed.Enabled = !useExe;
511 | this.trackBar_speed.Enabled = !useExe;
512 | this.diagnosticMode.Enabled = !useExe;
513 | this.OpenDWGFile.Enabled = !useExe;
514 | this.ScriptPath.Enabled = !useExe;
515 | this.intScriptGBox.Enabled = !useExe;
516 | this.IniViewbutton.Enabled = !useExe;
517 |
518 | UseScriptAsCmdLine = useExe;
519 | }
520 | catch
521 | {
522 | }
523 |
524 | }
525 |
526 | //Not used for now
527 | private void UseExeCheckbox_CheckedChanged(object sender, EventArgs e)
528 | {
529 | //not used
530 | //UpdateUI_seExeCheckbox(UseExeCheckbox.Checked);
531 | }
532 |
533 | private void textBox_exePath_Leave(object sender, EventArgs e)
534 | {
535 | if (File.Exists(textBox_exePath.Text))
536 | {
537 | if (DrawingListControl.isHeadlessAcad(textBox_exePath.Text))
538 | UpdateUI_seExeCheckbox(true);
539 | else
540 | UpdateUI_seExeCheckbox(false);
541 | }
542 | }
543 | }
544 | }
545 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/Wizard_Step2.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 | 17, 17
122 |
123 |
124 |
125 |
126 | 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
155 | xv8CKIt8sOQPDVMAAAAASUVORK5CYII=
156 |
157 |
158 |
159 |
160 | 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
188 |
189 |
190 |
191 |
192 | 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
224 |
225 |
226 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ScriptPro
2 | =========
3 | This ScriptPro 2.0 source code
4 |
5 | About this materials...
6 | -----------------------
7 | This is the source code for the application posted here:
8 |
9 | http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=4091678&linkID=9240618
10 |
11 | * Blog articles
12 |
13 | http://adndevblog.typepad.com/autocad/2012/04/batch-purging-of-drawing-files-using-scriptpro-20.html
14 |
15 | http://adndevblog.typepad.com/autocad/2012/04/batch-recover-using-scriptpro-20.html
16 |
17 | * Disclaimer: We are aware that materials is not free of errors.
18 | We intend to correct them as we encounter. We hope this will
19 | be still useful for you to get started.
20 |
21 | Good luck!
22 |
23 | Developer Technical Services
24 | Autodesk Developer Network
25 | November 2013
26 |
27 | ================================================
28 | Plugin of the Month, November 2010
29 | Brought to you by the Autodesk Developer Network
30 | ================================================
31 | -------------
32 | ScriptPro 2.0
33 | -------------
34 |
35 | Description
36 | -----------
37 | ScriptPro 2.0 is a batch processing utility that allows you to apply
38 | a set of commands to multiple drawings. Simply specify a script file
39 | that contains the commands you want to run on a single drawing, and
40 | then use ScriptPro 2.0 to apply that script to as many drawings as
41 | you like. ScriptPro 2.0 will handle opening and closing each drawing
42 | for you. ScriptPro 2.0 takes AutoCAD scripting to a new level with
43 | an easy-to-use interface, logging, reusable project files and robust
44 | error recovery so your processing continues even when AutoCAD can't.
45 |
46 | This version of ScriptPro is a ground-up rewrite of this highly
47 | popular utility for AutoCAD. It has been redeveloped with the key
48 | feature of being usable on 64-bit systems, and is now being provided
49 | with full source code for others to use and extend.
50 |
51 | System Requirements
52 | -------------------
53 | This application has been tested with AutoCAD 2008 onwards. It will
54 | use the version of AutoCAD most recently used on the system. To
55 | select a particular version of AutoCAD for use with the tool, simply
56 | start and close that version prior to using it.
57 |
58 | A pre-built version of the application has been provided which should
59 | work on 32- and 64-bit Windows systems. The application requires the
60 | .NET Framework 3.5 or above.
61 |
62 | The application has not been tested with all AutoCAD-based products,
63 | but should work (see "Feedback", below, otherwise).
64 |
65 | The source code has been provided as a Visual Studio 2008 project
66 | containing C# code (not required to run the tool).
67 |
68 | This application makes use of "Microsoft Ribbon for WPF October 2010".
69 | This only needs to be installed if you wish to work with the source
70 | project:
71 | http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4
72 |
73 | Installation
74 | ------------
75 | Copy the contents of the "bin" folder (the main application file,
76 | "ScriptPro.exe" and its supporting DLLs, "DrawingListUC.dll",
77 | "Microsoft.Windows.Shell.dll" and "RibbonControlsLibrary.dll")
78 | to the same location on your local system. Optionally copy this
79 | ReadMe to the same folder or the folder above.
80 |
81 | Usage
82 | -----
83 | ScriptPro 2.0 is a batch-processing tool that will run an AutoCAD
84 | script on each drawing in a list of drawing files. Before you begin
85 | using ScriptPro 2.0, you should have a specific task in mind.
86 |
87 | It can be as simple or as complex as you like. Once you have decided
88 | on your task and have written a script to handle it, you decide which
89 | drawings you would like to run the script with.
90 |
91 | In the ScriptPro 2.0 Project Editor, you can specify the script file
92 | to use and select the drawings to apply the script to. This
93 | information can be saved as a ScriptPro 2.0 project file.
94 |
95 | While running a project, ScriptPro 2.0 opens each drawing in sequence
96 | and runs the associated script file.
97 |
98 | The following topics outline each of the steps for creating and
99 | running a ScriptPro 2.0 project.
100 |
101 | Starting ScriptPro
102 |
103 | ScriptPro 2.0 is a stand-alone application that runs independently of
104 | AutoCAD. To simplify running the tool, you can create a shortcut to
105 | ScriptPro.exe on your desktop. Otherwise simply run the executable
106 | directly from Windows Explorer or a command-prompt window.
107 |
108 | ScriptPro 2.0 has a ribbon UI. The ribbon has a number of different
109 | groups. They are "List", "Drawing Files", "Run", "Stop", "Options"
110 | and "Help".
111 |
112 | List:
113 |
114 | "New" - Creates a new ScriptPro 2.0 project.
115 | "Load" - Loads an existing ScriptPro 2.0 project.
116 | "Save" - Saves the current ScriptPro 2.0 project.
117 | "Save As" - Saves the current project to another location.
118 | "Load SCP Project"
119 | - Reads the specified ScriptPro (SCP) project file.
120 |
121 | Drawing Files:
122 |
123 | "Add" - Adds drawing files (DWG & DXF) to the current project.
124 | "Add From Folder"
125 | - Adds drawing files (DWG & DXF) from a selected folder.
126 | to the current project
127 | "Remove" - Removes the selected files from the current project.
128 | "Check/Uncheck"
129 | - Allows drawing files to be skipped during processing.
130 |
131 | Run:
132 |
133 | "Checked" - Runs the selected script on all the checked drawing
134 | files in the current project.
135 | "Selected" - Runs the selected script on all the selected drawing
136 | files in the current project.
137 | "Failed" - Re-runs the selected script on all the drawing files
138 | which previously failed to execute.
139 |
140 | Stop:
141 |
142 | "Stop" - Stops the processing of drawings.
143 |
144 | Options:
145 |
146 | "Settings" - Shows the "Options" dialog box which allows you to
147 | specify various options such as the time-out period,
148 | log file path and initial script.
149 |
150 | Help:
151 |
152 | "Help" - Shows this ReadMe.txt file, if either placed in the
153 | same folder as ScriptPro.exe or the parent folder.
154 |
155 | The "Options" dialog box contains a number of project-related
156 | settings:
157 |
158 | "Process timeout per drawing in seconds"
159 |
160 | A timeout period indicating how long AutoCAD is inactive before
161 | ScriptPro 2.0 aborts processing on the current drawing and moves
162 | on to the next drawing in the list. The time-out period is specified
163 | in seconds. If you are processing very large drawings, you may need
164 | to increase the time-out period to allow AutoCAD enough time to open
165 | these drawings.
166 |
167 | "Restart AutoCAD after _ drawings"
168 |
169 | This indicates the number of drawings to process prior to restarting
170 | AutoCAD. Processing multiple drawings in the same AutoCAD session
171 | reduces the time needed to process them - as the application does not
172 | need to be restarted - but typically leads to a gradual increase in
173 | memory consumption. This option tells ScriptPro 2.0 to restart
174 | AutoCAD after processing a certain number of drawings, resetting the
175 | memory needed by the AutoCAD process.
176 |
177 | "AutoCAD startup script file"
178 |
179 | A script to be executed once when starting a new AutoCAD session.
180 | This can be used to load required LISP, ObjectARX, .NET or VBA
181 | applications, for instance.
182 |
183 | "Process log folder"
184 |
185 | The location in which logs will be created. Each log will be named
186 | using the format "SPlog_date_hour_min_seconds.log" (e.g.
187 | SPlog_20_14_23_49.log) while running unsaved drawing list. In case of running
188 | drawing list, the name of log file will include the drawing list name
189 | with date time. A detailed log containing the text from
190 | AutoCAD's command-line will also be created using the format
191 | "SPlog_Detail_log_date_hour_min_seconds.log" (for unsaved drawing list)
192 | and "Drawinglistname_Detail_log_date_hour_min_seconds.log" .
193 |
194 | "Create image before closing the drawing file"
195 |
196 | Causes a screenshot to be captured of the AutoCAD application window,
197 | whether for all processed drawings or only the ones that have failed.
198 |
199 | "Select DWG/DXF files in sub directories"
200 |
201 | Causes the "Add From Folder" command to search sub-folders when
202 | populating the list of drawings to process.
203 |
204 | "Run the tool in diagnostic mode"
205 |
206 | Causes processing to stop just before closing each drawing for the
207 | user to verify the state of the drawing file. There is no timeout
208 | during this mode of running.
209 |
210 | "Delay during process (Seconds)"
211 |
212 | Delay setting which enables the user to slow down the tool, which in turns
213 | gives enough time to AutoCAD to respond to the tools commands
214 |
215 | "AutoCAD exe path to use"
216 |
217 | This option allows the selection of particular AutoCAD version to be
218 | used with the tool. If no path is given, tool will use most recently
219 | used AutoCAD version on the system.
220 |
221 | "Run script without opening drawing file"
222 | Causes the script to run on empty/dummy document. Use this option when script file
223 | has commands to open and close the drawing. This option is helpful for commands like
224 | "Recover" which requires the script open the file. The Drawing list selected in the UI
225 | is used to resolve the keywords in run time. This below example shows the script for
226 | performing batch recover.
227 |
228 | Example 1:
229 | QAFLAGS 31
230 | _RECOVER
231 | ""
232 | _SAVEAS
233 | 2007(LT2007)
234 | "\_RECOVED.dwg"
235 | close
236 |
237 |
238 | Command Line Access
239 |
240 | To run a series of ScriptPro 2.0 projects from a DOS batch file,
241 | you can use the ScriptPro command line interface:
242 |
243 | \ScriptPro "run"
244 |
245 | For example:
246 |
247 | C:\\ScriptPro 2.0\\ScriptPro.exe "c:\\TestProject.bpl" "run"
248 |
249 | You can also use "exit" at the end to make silent exit of ScriptPro after
250 | processing the drawing list.
251 |
252 | For example:
253 |
254 | C:\\ScriptPro 2.0\\ScriptPro.exe "c:\\TestProject.bpl" "run" "exit"
255 |
256 | ScriptPro Keywords
257 |
258 | Keywords can be used to specify the current file name and its directory.
259 | When ScriptPro runs, it will replace each keyword with the correct value
260 | before processing the script. This is done for each drawing file after
261 | it has been opened so that the keywords are always replaced with the correct
262 | values from the current drawing.
263 |
264 | Specifies the drawing file folder name (directory name).
265 | Specifies the base file name without a directory or extension.
266 | Specifies the extension for the drawing file (.dwg, .dwt, or .dxf)
267 | Specifies the base name with the extension.
268 | This will have the same value as the DWGNAME system variable.
269 | Specifies the full file name with path and extension.
270 |
271 | Call Script Files
272 |
273 | AutoCAD terminates the current script when a SCRIPT command is invoked.
274 | If you wish to call another script from the current one and continue processing from the
275 | current script once the called script process has completed, you can use the ScriptPro CALL command.
276 | The CALL command prompts for the script file to be called.
277 |
278 | For example:
279 | zoom e
280 | call save.scr
281 |
282 | ScriptPro preprocesses scripts before running them. During this process,
283 | it finds all instances of CALL and replaces them with the actual script
284 | code from the called script. The resulting script file contains all the
285 | code from the original script and all the code from the called scripts.
286 | This file is placed in the temporary directory and is used when running the project.
287 |
288 | Creating Scripts for ScriptPro
289 |
290 | A script is a series of AutoCAD commands in a text file that can be
291 | used to carry out a task. With scripts, you can run several commands
292 | in succession. You create script files outside AutoCAD, using a text
293 | editor (such as Microsoft Windows Notepad) or a word processor (such
294 | as Microsoft Word) that saves the file in ASCII format. The file
295 | extension must be .scr. All references to long file names that
296 | contain embedded spaces must be enclosed in double quotes. For
297 | example, to insert the drawing c:\My Project Files\sink.dwg from a
298 | script, you must use the following syntax:
299 |
300 | -insert "c:\My Project Files\sink.dwg"
301 |
302 | Script files can contain comments. Any line that begins with a
303 | semicolon (;) is considered a comment, and AutoCAD ignores the line
304 | while processing the script file. For information about creating
305 | scripts, see the Customization Guide.
306 |
307 | When putting together a script for use with ScriptPro 2.0, you need
308 | to consider the actions you want performed on the drawing. ScriptPro
309 | 2.0 will handle opening the drawing file and exiting the file once
310 | processing is complete. ScriptPro 2.0 will not save the drawing
311 | automatically. If you want the drawing saved, you must put that
312 | into your script.
313 |
314 | ScriptPro 2.0 preprocesses scripts before running them. During this
315 | process, it finds all instances of CALL and replaces them with the
316 | actual script code from the called script. The resulting script file
317 | contains all the code from the original script and all the code from
318 | the called scripts. This file is placed in the temporary directory
319 | and is used when running the project.
320 |
321 | ScriptPro 2.0 comes with some sample files to help you get started.
322 | The files are contained in the "Samples" sub-folder.
323 |
324 | Uninstallation
325 | --------------
326 | Delete the "ScriptPro.exe" and its supporting dlls,
327 | "DrawingListUC.dll", "Microsoft.Windows.Shell.dll" and
328 | "RibbonControlsLibrary.dll" from the location to which the files
329 | were originally copied.
330 |
331 | Known Issues
332 | ------------
333 |
334 |
335 | Author
336 | ------
337 | This plugin was written by Virupaksha Aithal with input from Kean
338 | Walmsley.
339 |
340 | Acknowledgements
341 | ----------------
342 | The icons used for this application were downloaded from FatCow:
343 | http://www.fatcow.com/free-icons
344 |
345 | Further Reading
346 | ---------------
347 | For more information on developing with AutoCAD, please visit the
348 | AutoCAD Developer Center at http://www.autodesk.com/developautocad
349 |
350 | Feedback
351 | --------
352 | Email us at labs.plugins@autodesk.com with feedback or requests for
353 | enhancements.
354 |
355 | Release History
356 | ---------------
357 |
358 | 2.0 Original release
359 | 2.0.1 A delay setting is added in options dialog so that users can
360 | have control over speed of the ScriptPro tool.
361 | An options is provided (in options dialog) in which
362 | user can specify the AutoCAD application path to be used
363 | by ScriptPro tool.
364 | 2.0.2 Keywords capability is added.
365 | Silent exit capability is added for running ScriptPro through DOS batch file.
366 | An options is provided (in options dialog) in which
367 | ability to run the script before opening drawing file is added –
368 | required for recovery kind of commands. This can be used along
369 | with Keywords effectively.
370 | 2.0.3 Added support to accoreconsole.exe
371 |
372 | //////////////////////////////////////////////////////////////////////
373 |
374 | (C) Copyright 2013 by Autodesk, Inc.
375 |
376 | Permission to use, copy, modify, and distribute this software in
377 | object code form for any purpose and without fee is hereby granted,
378 | provided that the above copyright notice appears in all copies and
379 | that both that copyright notice and the limited warranty and
380 | restricted rights notice below appear in all supporting
381 | documentation.
382 |
383 | AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
384 | AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
385 | MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
386 | DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
387 | UNINTERRUPTED OR ERROR FREE.
388 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/DrawingListControl.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace DrawingListUC
2 | {
3 | partial class DrawingListControl
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Component Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | this.DwgList = new System.Windows.Forms.ListView();
33 | this.dwgName = new System.Windows.Forms.ColumnHeader();
34 | this.DwgPath = new System.Windows.Forms.ColumnHeader();
35 | this.Status = new System.Windows.Forms.ColumnHeader();
36 | this.DwgContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
37 | this.AddDWG = new System.Windows.Forms.ToolStripMenuItem();
38 | this.ContextDWGAddFile = new System.Windows.Forms.ToolStripMenuItem();
39 | this.ContextDWGAddFolder = new System.Windows.Forms.ToolStripMenuItem();
40 | this.RemoveDWG = new System.Windows.Forms.ToolStripMenuItem();
41 | this.SkipDWG = new System.Windows.Forms.ToolStripMenuItem();
42 | this.chToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
43 | this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
44 | this.loadDWGListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
45 | this.saveDWGListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
46 | this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
47 | this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
48 | this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
49 | this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
50 | this.failToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
51 | this.BPbar = new System.Windows.Forms.ProgressBar();
52 | this.scriptGBox = new System.Windows.Forms.GroupBox();
53 | this.Viewbutton = new System.Windows.Forms.Button();
54 | this.ScriptBrowse = new System.Windows.Forms.Button();
55 | this.ScriptPath = new System.Windows.Forms.TextBox();
56 | this.label_filename = new System.Windows.Forms.Label();
57 | this.DwgContextMenu.SuspendLayout();
58 | this.scriptGBox.SuspendLayout();
59 | this.SuspendLayout();
60 | //
61 | // DwgList
62 | //
63 | this.DwgList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
64 | | System.Windows.Forms.AnchorStyles.Left)
65 | | System.Windows.Forms.AnchorStyles.Right)));
66 | this.DwgList.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
67 | this.DwgList.CheckBoxes = true;
68 | this.DwgList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
69 | this.dwgName,
70 | this.DwgPath,
71 | this.Status});
72 | this.DwgList.ContextMenuStrip = this.DwgContextMenu;
73 | this.DwgList.FullRowSelect = true;
74 | this.DwgList.GridLines = true;
75 | this.DwgList.Location = new System.Drawing.Point(20, 63);
76 | this.DwgList.Name = "DwgList";
77 | this.DwgList.Size = new System.Drawing.Size(582, 142);
78 | this.DwgList.TabIndex = 3;
79 | this.DwgList.UseCompatibleStateImageBehavior = false;
80 | this.DwgList.View = System.Windows.Forms.View.Details;
81 | this.DwgList.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.DwgList_ItemChecked);
82 | this.DwgList.SizeChanged += new System.EventHandler(this.DwgList_SizeChanged);
83 | //
84 | // dwgName
85 | //
86 | this.dwgName.Text = "Name";
87 | this.dwgName.Width = 149;
88 | //
89 | // DwgPath
90 | //
91 | this.DwgPath.Text = "Path";
92 | this.DwgPath.Width = 311;
93 | //
94 | // Status
95 | //
96 | this.Status.Text = "Status";
97 | this.Status.Width = 61;
98 | //
99 | // DwgContextMenu
100 | //
101 | this.DwgContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
102 | this.AddDWG,
103 | this.RemoveDWG,
104 | this.SkipDWG,
105 | this.chToolStripMenuItem,
106 | this.toolStripSeparator2,
107 | this.loadDWGListToolStripMenuItem,
108 | this.saveDWGListToolStripMenuItem,
109 | this.toolStripSeparator3,
110 | this.toolStripMenuItem1});
111 | this.DwgContextMenu.Name = "DwgContextMenu";
112 | this.DwgContextMenu.Size = new System.Drawing.Size(161, 170);
113 | this.DwgContextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.DwgContextMenu_Opening);
114 | //
115 | // AddDWG
116 | //
117 | this.AddDWG.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
118 | this.ContextDWGAddFile,
119 | this.ContextDWGAddFolder});
120 | this.AddDWG.Name = "AddDWG";
121 | this.AddDWG.Size = new System.Drawing.Size(160, 22);
122 | this.AddDWG.Text = "Add";
123 | //
124 | // ContextDWGAddFile
125 | //
126 | this.ContextDWGAddFile.Name = "ContextDWGAddFile";
127 | this.ContextDWGAddFile.Size = new System.Drawing.Size(104, 22);
128 | this.ContextDWGAddFile.Text = "Files";
129 | this.ContextDWGAddFile.Click += new System.EventHandler(this.ContextDWGAddFile_Click);
130 | //
131 | // ContextDWGAddFolder
132 | //
133 | this.ContextDWGAddFolder.Name = "ContextDWGAddFolder";
134 | this.ContextDWGAddFolder.Size = new System.Drawing.Size(104, 22);
135 | this.ContextDWGAddFolder.Text = "Folder";
136 | this.ContextDWGAddFolder.Click += new System.EventHandler(this.ContextDWGAddFolder_Click);
137 | //
138 | // RemoveDWG
139 | //
140 | this.RemoveDWG.Name = "RemoveDWG";
141 | this.RemoveDWG.Size = new System.Drawing.Size(160, 22);
142 | this.RemoveDWG.Text = "Remove";
143 | this.RemoveDWG.Click += new System.EventHandler(this.RemoveDWG_Click);
144 | //
145 | // SkipDWG
146 | //
147 | this.SkipDWG.Name = "SkipDWG";
148 | this.SkipDWG.Size = new System.Drawing.Size(160, 22);
149 | this.SkipDWG.Text = "Skip";
150 | this.SkipDWG.Click += new System.EventHandler(this.SkipDWG_Click);
151 | //
152 | // chToolStripMenuItem
153 | //
154 | this.chToolStripMenuItem.Name = "chToolStripMenuItem";
155 | this.chToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
156 | this.chToolStripMenuItem.Text = "Check\\Uncheck all";
157 | this.chToolStripMenuItem.Click += new System.EventHandler(this.chToolStripMenuItem_Click);
158 | //
159 | // toolStripSeparator2
160 | //
161 | this.toolStripSeparator2.Name = "toolStripSeparator2";
162 | this.toolStripSeparator2.Size = new System.Drawing.Size(157, 6);
163 | //
164 | // loadDWGListToolStripMenuItem
165 | //
166 | this.loadDWGListToolStripMenuItem.Name = "loadDWGListToolStripMenuItem";
167 | this.loadDWGListToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
168 | this.loadDWGListToolStripMenuItem.Text = "&Load DWG list";
169 | this.loadDWGListToolStripMenuItem.Click += new System.EventHandler(this.loadDWGListToolStripMenuItem_Click);
170 | //
171 | // saveDWGListToolStripMenuItem
172 | //
173 | this.saveDWGListToolStripMenuItem.Name = "saveDWGListToolStripMenuItem";
174 | this.saveDWGListToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
175 | this.saveDWGListToolStripMenuItem.Text = "&Save DWG list";
176 | this.saveDWGListToolStripMenuItem.Click += new System.EventHandler(this.saveDWGListToolStripMenuItem_Click);
177 | //
178 | // toolStripSeparator3
179 | //
180 | this.toolStripSeparator3.Name = "toolStripSeparator3";
181 | this.toolStripSeparator3.Size = new System.Drawing.Size(157, 6);
182 | //
183 | // toolStripMenuItem1
184 | //
185 | this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
186 | this.toolStripMenuItem2,
187 | this.toolStripMenuItem3,
188 | this.failToolStripMenuItem});
189 | this.toolStripMenuItem1.Name = "toolStripMenuItem1";
190 | this.toolStripMenuItem1.Size = new System.Drawing.Size(160, 22);
191 | this.toolStripMenuItem1.Text = "&Run";
192 | //
193 | // toolStripMenuItem2
194 | //
195 | this.toolStripMenuItem2.Name = "toolStripMenuItem2";
196 | this.toolStripMenuItem2.Size = new System.Drawing.Size(115, 22);
197 | this.toolStripMenuItem2.Text = "&Checked";
198 | this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
199 | //
200 | // toolStripMenuItem3
201 | //
202 | this.toolStripMenuItem3.Name = "toolStripMenuItem3";
203 | this.toolStripMenuItem3.Size = new System.Drawing.Size(115, 22);
204 | this.toolStripMenuItem3.Text = "&Selected";
205 | this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click);
206 | //
207 | // failToolStripMenuItem
208 | //
209 | this.failToolStripMenuItem.Name = "failToolStripMenuItem";
210 | this.failToolStripMenuItem.Size = new System.Drawing.Size(115, 22);
211 | this.failToolStripMenuItem.Text = "Failed";
212 | this.failToolStripMenuItem.Click += new System.EventHandler(this.failToolStripMenuItem_Click);
213 | //
214 | // BPbar
215 | //
216 | this.BPbar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
217 | | System.Windows.Forms.AnchorStyles.Right)));
218 | this.BPbar.ForeColor = System.Drawing.SystemColors.HotTrack;
219 | this.BPbar.Location = new System.Drawing.Point(125, 211);
220 | this.BPbar.Name = "BPbar";
221 | this.BPbar.Size = new System.Drawing.Size(477, 21);
222 | this.BPbar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
223 | this.BPbar.TabIndex = 4;
224 | //
225 | // scriptGBox
226 | //
227 | this.scriptGBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
228 | | System.Windows.Forms.AnchorStyles.Right)));
229 | this.scriptGBox.Controls.Add(this.Viewbutton);
230 | this.scriptGBox.Controls.Add(this.ScriptBrowse);
231 | this.scriptGBox.Controls.Add(this.ScriptPath);
232 | this.scriptGBox.Location = new System.Drawing.Point(20, 6);
233 | this.scriptGBox.Name = "scriptGBox";
234 | this.scriptGBox.Size = new System.Drawing.Size(580, 51);
235 | this.scriptGBox.TabIndex = 9;
236 | this.scriptGBox.TabStop = false;
237 | this.scriptGBox.Text = "Script file";
238 | //
239 | // Viewbutton
240 | //
241 | this.Viewbutton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
242 | this.Viewbutton.BackColor = System.Drawing.SystemColors.Control;
243 | this.Viewbutton.Location = new System.Drawing.Point(502, 15);
244 | this.Viewbutton.Name = "Viewbutton";
245 | this.Viewbutton.Size = new System.Drawing.Size(70, 24);
246 | this.Viewbutton.TabIndex = 2;
247 | this.Viewbutton.Text = "Edit";
248 | this.Viewbutton.UseVisualStyleBackColor = false;
249 | this.Viewbutton.Click += new System.EventHandler(this.Viewbutton_Click);
250 | //
251 | // ScriptBrowse
252 | //
253 | this.ScriptBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
254 | this.ScriptBrowse.BackColor = System.Drawing.SystemColors.Control;
255 | this.ScriptBrowse.Location = new System.Drawing.Point(409, 16);
256 | this.ScriptBrowse.Name = "ScriptBrowse";
257 | this.ScriptBrowse.Size = new System.Drawing.Size(70, 24);
258 | this.ScriptBrowse.TabIndex = 1;
259 | this.ScriptBrowse.Text = "Browse";
260 | this.ScriptBrowse.UseVisualStyleBackColor = false;
261 | this.ScriptBrowse.Click += new System.EventHandler(this.ScriptBrowse_Click);
262 | //
263 | // ScriptPath
264 | //
265 | this.ScriptPath.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
266 | | System.Windows.Forms.AnchorStyles.Left)
267 | | System.Windows.Forms.AnchorStyles.Right)));
268 | this.ScriptPath.Location = new System.Drawing.Point(14, 19);
269 | this.ScriptPath.Name = "ScriptPath";
270 | this.ScriptPath.Size = new System.Drawing.Size(359, 20);
271 | this.ScriptPath.TabIndex = 0;
272 | //
273 | // label_filename
274 | //
275 | this.label_filename.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
276 | this.label_filename.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
277 | this.label_filename.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
278 | this.label_filename.ForeColor = System.Drawing.Color.DarkRed;
279 | this.label_filename.Location = new System.Drawing.Point(20, 211);
280 | this.label_filename.Name = "label_filename";
281 | this.label_filename.Size = new System.Drawing.Size(99, 21);
282 | this.label_filename.TabIndex = 10;
283 | this.label_filename.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
284 | //
285 | // DrawingListControl
286 | //
287 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
288 | this.Controls.Add(this.label_filename);
289 | this.Controls.Add(this.scriptGBox);
290 | this.Controls.Add(this.DwgList);
291 | this.Controls.Add(this.BPbar);
292 | this.Name = "DrawingListControl";
293 | this.Size = new System.Drawing.Size(636, 247);
294 | this.Load += new System.EventHandler(this.DrawingListControl_Load);
295 | this.DwgContextMenu.ResumeLayout(false);
296 | this.scriptGBox.ResumeLayout(false);
297 | this.scriptGBox.PerformLayout();
298 | this.ResumeLayout(false);
299 |
300 | }
301 |
302 | #endregion
303 |
304 | private System.Windows.Forms.ListView DwgList;
305 | private System.Windows.Forms.ColumnHeader dwgName;
306 | private System.Windows.Forms.ColumnHeader DwgPath;
307 | private System.Windows.Forms.ColumnHeader Status;
308 | private System.Windows.Forms.ProgressBar BPbar;
309 | private System.Windows.Forms.ContextMenuStrip DwgContextMenu;
310 | private System.Windows.Forms.ToolStripMenuItem AddDWG;
311 | private System.Windows.Forms.ToolStripMenuItem ContextDWGAddFile;
312 | private System.Windows.Forms.ToolStripMenuItem ContextDWGAddFolder;
313 | private System.Windows.Forms.ToolStripMenuItem RemoveDWG;
314 | private System.Windows.Forms.ToolStripMenuItem SkipDWG;
315 | private System.Windows.Forms.ToolStripMenuItem chToolStripMenuItem;
316 | private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
317 | private System.Windows.Forms.ToolStripMenuItem loadDWGListToolStripMenuItem;
318 | private System.Windows.Forms.ToolStripMenuItem saveDWGListToolStripMenuItem;
319 | private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
320 | private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
321 | private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
322 | private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
323 | private System.Windows.Forms.ToolStripMenuItem failToolStripMenuItem;
324 | private System.Windows.Forms.GroupBox scriptGBox;
325 | private System.Windows.Forms.Button Viewbutton;
326 | private System.Windows.Forms.Button ScriptBrowse;
327 | private System.Windows.Forms.TextBox ScriptPath;
328 | private System.Windows.Forms.Label label_filename;
329 | }
330 | }
331 |
--------------------------------------------------------------------------------
/Source/DrawingListUC/OptionsDlg.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace DrawingListUC
2 | {
3 | partial class OptionsDlg
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.label_timeout = new System.Windows.Forms.Label();
32 | this.textSeconds = new System.Windows.Forms.TextBox();
33 | this.IniViewbutton = new System.Windows.Forms.Button();
34 | this.intScriptGBox = new System.Windows.Forms.GroupBox();
35 | this.IniScriptBrowse = new System.Windows.Forms.Button();
36 | this.ScriptPath = new System.Windows.Forms.TextBox();
37 | this.OptionOK = new System.Windows.Forms.Button();
38 | this.OptionCancel = new System.Windows.Forms.Button();
39 | this.groupBox1 = new System.Windows.Forms.GroupBox();
40 | this.logPathBrowse = new System.Windows.Forms.Button();
41 | this.ProcessLogFilePath = new System.Windows.Forms.TextBox();
42 | this.restartAcad = new System.Windows.Forms.TextBox();
43 | this.label2 = new System.Windows.Forms.Label();
44 | this.label1 = new System.Windows.Forms.Label();
45 | this.searchFolder = new System.Windows.Forms.CheckBox();
46 | this.groupBox_image = new System.Windows.Forms.GroupBox();
47 | this.radioButton_none = new System.Windows.Forms.RadioButton();
48 | this.radioButton_failed = new System.Windows.Forms.RadioButton();
49 | this.radioButton_all = new System.Windows.Forms.RadioButton();
50 | this.diagnosticMode = new System.Windows.Forms.CheckBox();
51 | this.groupBox_exepath = new System.Windows.Forms.GroupBox();
52 | this.button_exePath = new System.Windows.Forms.Button();
53 | this.textBox_exePath = new System.Windows.Forms.TextBox();
54 | this.groupBox_speed = new System.Windows.Forms.GroupBox();
55 | this.trackBar_speed = new System.Windows.Forms.TrackBar();
56 | this.OpenDWGFile = new System.Windows.Forms.CheckBox();
57 | this.UseExeCheckbox = new System.Windows.Forms.CheckBox();
58 | this.intScriptGBox.SuspendLayout();
59 | this.groupBox1.SuspendLayout();
60 | this.groupBox_image.SuspendLayout();
61 | this.groupBox_exepath.SuspendLayout();
62 | this.groupBox_speed.SuspendLayout();
63 | ((System.ComponentModel.ISupportInitialize)(this.trackBar_speed)).BeginInit();
64 | this.SuspendLayout();
65 | //
66 | // label_timeout
67 | //
68 | this.label_timeout.AutoSize = true;
69 | this.label_timeout.Location = new System.Drawing.Point(20, 70);
70 | this.label_timeout.Name = "label_timeout";
71 | this.label_timeout.Size = new System.Drawing.Size(233, 13);
72 | this.label_timeout.TabIndex = 0;
73 | this.label_timeout.Text = "Process timeout per drawing in seconds ( >= 10)";
74 | //
75 | // textSeconds
76 | //
77 | this.textSeconds.Location = new System.Drawing.Point(267, 67);
78 | this.textSeconds.Name = "textSeconds";
79 | this.textSeconds.Size = new System.Drawing.Size(49, 20);
80 | this.textSeconds.TabIndex = 1;
81 | this.textSeconds.Text = "30";
82 | //
83 | // IniViewbutton
84 | //
85 | this.IniViewbutton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
86 | this.IniViewbutton.Location = new System.Drawing.Point(409, 17);
87 | this.IniViewbutton.Name = "IniViewbutton";
88 | this.IniViewbutton.Size = new System.Drawing.Size(61, 24);
89 | this.IniViewbutton.TabIndex = 2;
90 | this.IniViewbutton.Text = "Edit";
91 | this.IniViewbutton.UseVisualStyleBackColor = true;
92 | this.IniViewbutton.Click += new System.EventHandler(this.IniViewbutton_Click);
93 | //
94 | // intScriptGBox
95 | //
96 | this.intScriptGBox.Controls.Add(this.IniViewbutton);
97 | this.intScriptGBox.Controls.Add(this.IniScriptBrowse);
98 | this.intScriptGBox.Controls.Add(this.ScriptPath);
99 | this.intScriptGBox.Location = new System.Drawing.Point(25, 125);
100 | this.intScriptGBox.Name = "intScriptGBox";
101 | this.intScriptGBox.Size = new System.Drawing.Size(491, 51);
102 | this.intScriptGBox.TabIndex = 3;
103 | this.intScriptGBox.TabStop = false;
104 | this.intScriptGBox.Text = "AutoCAD startup script file";
105 | //
106 | // IniScriptBrowse
107 | //
108 | this.IniScriptBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
109 | this.IniScriptBrowse.Location = new System.Drawing.Point(349, 17);
110 | this.IniScriptBrowse.Name = "IniScriptBrowse";
111 | this.IniScriptBrowse.Size = new System.Drawing.Size(53, 25);
112 | this.IniScriptBrowse.TabIndex = 1;
113 | this.IniScriptBrowse.Text = "Browse";
114 | this.IniScriptBrowse.UseVisualStyleBackColor = true;
115 | this.IniScriptBrowse.Click += new System.EventHandler(this.IniScriptBrowse_Click);
116 | //
117 | // ScriptPath
118 | //
119 | this.ScriptPath.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
120 | | System.Windows.Forms.AnchorStyles.Left)
121 | | System.Windows.Forms.AnchorStyles.Right)));
122 | this.ScriptPath.Location = new System.Drawing.Point(23, 20);
123 | this.ScriptPath.Name = "ScriptPath";
124 | this.ScriptPath.Size = new System.Drawing.Size(320, 20);
125 | this.ScriptPath.TabIndex = 0;
126 | //
127 | // OptionOK
128 | //
129 | this.OptionOK.Location = new System.Drawing.Point(302, 352);
130 | this.OptionOK.Name = "OptionOK";
131 | this.OptionOK.Size = new System.Drawing.Size(86, 25);
132 | this.OptionOK.TabIndex = 10;
133 | this.OptionOK.Text = "OK";
134 | this.OptionOK.UseVisualStyleBackColor = true;
135 | this.OptionOK.Click += new System.EventHandler(this.OptionOK_Click);
136 | //
137 | // OptionCancel
138 | //
139 | this.OptionCancel.Location = new System.Drawing.Point(411, 352);
140 | this.OptionCancel.Name = "OptionCancel";
141 | this.OptionCancel.Size = new System.Drawing.Size(86, 25);
142 | this.OptionCancel.TabIndex = 11;
143 | this.OptionCancel.Text = "Cancel";
144 | this.OptionCancel.UseVisualStyleBackColor = true;
145 | this.OptionCancel.Click += new System.EventHandler(this.OptionCancel_Click);
146 | //
147 | // groupBox1
148 | //
149 | this.groupBox1.Controls.Add(this.logPathBrowse);
150 | this.groupBox1.Controls.Add(this.ProcessLogFilePath);
151 | this.groupBox1.Location = new System.Drawing.Point(25, 183);
152 | this.groupBox1.Name = "groupBox1";
153 | this.groupBox1.Size = new System.Drawing.Size(491, 51);
154 | this.groupBox1.TabIndex = 4;
155 | this.groupBox1.TabStop = false;
156 | this.groupBox1.Text = "Process log folder";
157 | //
158 | // logPathBrowse
159 | //
160 | this.logPathBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
161 | this.logPathBrowse.Location = new System.Drawing.Point(403, 14);
162 | this.logPathBrowse.Name = "logPathBrowse";
163 | this.logPathBrowse.Size = new System.Drawing.Size(67, 25);
164 | this.logPathBrowse.TabIndex = 1;
165 | this.logPathBrowse.Text = "Browse";
166 | this.logPathBrowse.UseVisualStyleBackColor = true;
167 | this.logPathBrowse.Click += new System.EventHandler(this.logPathBrowse_Click);
168 | //
169 | // ProcessLogFilePath
170 | //
171 | this.ProcessLogFilePath.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
172 | | System.Windows.Forms.AnchorStyles.Left)
173 | | System.Windows.Forms.AnchorStyles.Right)));
174 | this.ProcessLogFilePath.Location = new System.Drawing.Point(23, 17);
175 | this.ProcessLogFilePath.Name = "ProcessLogFilePath";
176 | this.ProcessLogFilePath.Size = new System.Drawing.Size(374, 20);
177 | this.ProcessLogFilePath.TabIndex = 0;
178 | //
179 | // restartAcad
180 | //
181 | this.restartAcad.Location = new System.Drawing.Point(170, 93);
182 | this.restartAcad.Name = "restartAcad";
183 | this.restartAcad.Size = new System.Drawing.Size(49, 20);
184 | this.restartAcad.TabIndex = 2;
185 | this.restartAcad.Text = "30";
186 | //
187 | // label2
188 | //
189 | this.label2.AutoSize = true;
190 | this.label2.Location = new System.Drawing.Point(20, 96);
191 | this.label2.Name = "label2";
192 | this.label2.Size = new System.Drawing.Size(144, 13);
193 | this.label2.TabIndex = 5;
194 | this.label2.Text = "Restart AutoCAD after every ";
195 | //
196 | // label1
197 | //
198 | this.label1.AutoSize = true;
199 | this.label1.Location = new System.Drawing.Point(225, 96);
200 | this.label1.Name = "label1";
201 | this.label1.Size = new System.Drawing.Size(79, 13);
202 | this.label1.TabIndex = 7;
203 | this.label1.Text = "drawings (>= 1)";
204 | //
205 | // searchFolder
206 | //
207 | this.searchFolder.AutoSize = true;
208 | this.searchFolder.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
209 | this.searchFolder.Location = new System.Drawing.Point(25, 308);
210 | this.searchFolder.Name = "searchFolder";
211 | this.searchFolder.Size = new System.Drawing.Size(218, 17);
212 | this.searchFolder.TabIndex = 7;
213 | this.searchFolder.Text = "Select DWG/DXF files in sub directories ";
214 | this.searchFolder.UseVisualStyleBackColor = true;
215 | //
216 | // groupBox_image
217 | //
218 | this.groupBox_image.Controls.Add(this.radioButton_none);
219 | this.groupBox_image.Controls.Add(this.radioButton_failed);
220 | this.groupBox_image.Controls.Add(this.radioButton_all);
221 | this.groupBox_image.Location = new System.Drawing.Point(24, 243);
222 | this.groupBox_image.Name = "groupBox_image";
223 | this.groupBox_image.Size = new System.Drawing.Size(257, 59);
224 | this.groupBox_image.TabIndex = 5;
225 | this.groupBox_image.TabStop = false;
226 | this.groupBox_image.Text = "Create image before closing the drawing file";
227 | //
228 | // radioButton_none
229 | //
230 | this.radioButton_none.AutoSize = true;
231 | this.radioButton_none.Checked = true;
232 | this.radioButton_none.Location = new System.Drawing.Point(176, 25);
233 | this.radioButton_none.Name = "radioButton_none";
234 | this.radioButton_none.Size = new System.Drawing.Size(51, 17);
235 | this.radioButton_none.TabIndex = 2;
236 | this.radioButton_none.TabStop = true;
237 | this.radioButton_none.Text = "None";
238 | this.radioButton_none.UseVisualStyleBackColor = true;
239 | //
240 | // radioButton_failed
241 | //
242 | this.radioButton_failed.AutoSize = true;
243 | this.radioButton_failed.Location = new System.Drawing.Point(77, 26);
244 | this.radioButton_failed.Name = "radioButton_failed";
245 | this.radioButton_failed.Size = new System.Drawing.Size(98, 17);
246 | this.radioButton_failed.TabIndex = 1;
247 | this.radioButton_failed.Text = "Only Failed files";
248 | this.radioButton_failed.UseVisualStyleBackColor = true;
249 | //
250 | // radioButton_all
251 | //
252 | this.radioButton_all.AutoSize = true;
253 | this.radioButton_all.Location = new System.Drawing.Point(17, 26);
254 | this.radioButton_all.Name = "radioButton_all";
255 | this.radioButton_all.Size = new System.Drawing.Size(57, 17);
256 | this.radioButton_all.TabIndex = 0;
257 | this.radioButton_all.Text = "All files";
258 | this.radioButton_all.UseVisualStyleBackColor = true;
259 | //
260 | // diagnosticMode
261 | //
262 | this.diagnosticMode.AutoSize = true;
263 | this.diagnosticMode.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
264 | this.diagnosticMode.Location = new System.Drawing.Point(289, 308);
265 | this.diagnosticMode.Name = "diagnosticMode";
266 | this.diagnosticMode.Size = new System.Drawing.Size(181, 17);
267 | this.diagnosticMode.TabIndex = 8;
268 | this.diagnosticMode.Text = "Run the tool in diagnostic mode ";
269 | this.diagnosticMode.UseVisualStyleBackColor = true;
270 | //
271 | // groupBox_exepath
272 | //
273 | this.groupBox_exepath.Controls.Add(this.button_exePath);
274 | this.groupBox_exepath.Controls.Add(this.textBox_exePath);
275 | this.groupBox_exepath.Location = new System.Drawing.Point(25, 9);
276 | this.groupBox_exepath.Name = "groupBox_exepath";
277 | this.groupBox_exepath.Size = new System.Drawing.Size(491, 51);
278 | this.groupBox_exepath.TabIndex = 0;
279 | this.groupBox_exepath.TabStop = false;
280 | this.groupBox_exepath.Text = "AutoCAD application to use";
281 | //
282 | // button_exePath
283 | //
284 | this.button_exePath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
285 | this.button_exePath.Location = new System.Drawing.Point(409, 15);
286 | this.button_exePath.Name = "button_exePath";
287 | this.button_exePath.Size = new System.Drawing.Size(63, 25);
288 | this.button_exePath.TabIndex = 1;
289 | this.button_exePath.Text = "Browse";
290 | this.button_exePath.UseVisualStyleBackColor = true;
291 | this.button_exePath.Click += new System.EventHandler(this.button_exePath_Click);
292 | //
293 | // textBox_exePath
294 | //
295 | this.textBox_exePath.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
296 | | System.Windows.Forms.AnchorStyles.Left)
297 | | System.Windows.Forms.AnchorStyles.Right)));
298 | this.textBox_exePath.Location = new System.Drawing.Point(23, 18);
299 | this.textBox_exePath.Name = "textBox_exePath";
300 | this.textBox_exePath.Size = new System.Drawing.Size(376, 20);
301 | this.textBox_exePath.TabIndex = 0;
302 | this.textBox_exePath.Leave += new System.EventHandler(this.textBox_exePath_Leave);
303 | //
304 | // groupBox_speed
305 | //
306 | this.groupBox_speed.Controls.Add(this.trackBar_speed);
307 | this.groupBox_speed.Location = new System.Drawing.Point(289, 243);
308 | this.groupBox_speed.Name = "groupBox_speed";
309 | this.groupBox_speed.Size = new System.Drawing.Size(227, 59);
310 | this.groupBox_speed.TabIndex = 6;
311 | this.groupBox_speed.TabStop = false;
312 | this.groupBox_speed.Text = "Delay during process (Seconds)";
313 | //
314 | // trackBar_speed
315 | //
316 | this.trackBar_speed.LargeChange = 1;
317 | this.trackBar_speed.Location = new System.Drawing.Point(13, 15);
318 | this.trackBar_speed.Name = "trackBar_speed";
319 | this.trackBar_speed.Size = new System.Drawing.Size(195, 42);
320 | this.trackBar_speed.TabIndex = 0;
321 | this.trackBar_speed.Scroll += new System.EventHandler(this.trackBar_speed_Scroll);
322 | //
323 | // OpenDWGFile
324 | //
325 | this.OpenDWGFile.AutoSize = true;
326 | this.OpenDWGFile.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
327 | this.OpenDWGFile.Location = new System.Drawing.Point(26, 331);
328 | this.OpenDWGFile.Name = "OpenDWGFile";
329 | this.OpenDWGFile.Size = new System.Drawing.Size(217, 17);
330 | this.OpenDWGFile.TabIndex = 9;
331 | this.OpenDWGFile.Text = "Run script without opening drawing file ";
332 | this.OpenDWGFile.UseVisualStyleBackColor = true;
333 | //
334 | // UseExeCheckbox
335 | //
336 | this.UseExeCheckbox.AutoSize = true;
337 | this.UseExeCheckbox.Location = new System.Drawing.Point(23, 360);
338 | this.UseExeCheckbox.Name = "UseExeCheckbox";
339 | this.UseExeCheckbox.Size = new System.Drawing.Size(268, 17);
340 | this.UseExeCheckbox.TabIndex = 12;
341 | this.UseExeCheckbox.Text = "Use script as commandline argument for application";
342 | this.UseExeCheckbox.UseVisualStyleBackColor = true;
343 | this.UseExeCheckbox.Visible = false;
344 | this.UseExeCheckbox.CheckedChanged += new System.EventHandler(this.UseExeCheckbox_CheckedChanged);
345 | //
346 | // OptionsDlg
347 | //
348 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
349 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
350 | this.ClientSize = new System.Drawing.Size(536, 392);
351 | this.Controls.Add(this.UseExeCheckbox);
352 | this.Controls.Add(this.OpenDWGFile);
353 | this.Controls.Add(this.groupBox_speed);
354 | this.Controls.Add(this.groupBox_exepath);
355 | this.Controls.Add(this.diagnosticMode);
356 | this.Controls.Add(this.groupBox_image);
357 | this.Controls.Add(this.searchFolder);
358 | this.Controls.Add(this.label1);
359 | this.Controls.Add(this.restartAcad);
360 | this.Controls.Add(this.label2);
361 | this.Controls.Add(this.groupBox1);
362 | this.Controls.Add(this.OptionCancel);
363 | this.Controls.Add(this.OptionOK);
364 | this.Controls.Add(this.intScriptGBox);
365 | this.Controls.Add(this.textSeconds);
366 | this.Controls.Add(this.label_timeout);
367 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
368 | this.MaximizeBox = false;
369 | this.MinimizeBox = false;
370 | this.Name = "OptionsDlg";
371 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
372 | this.Text = "Options";
373 | this.Load += new System.EventHandler(this.OptionsDlg_Load);
374 | this.intScriptGBox.ResumeLayout(false);
375 | this.intScriptGBox.PerformLayout();
376 | this.groupBox1.ResumeLayout(false);
377 | this.groupBox1.PerformLayout();
378 | this.groupBox_image.ResumeLayout(false);
379 | this.groupBox_image.PerformLayout();
380 | this.groupBox_exepath.ResumeLayout(false);
381 | this.groupBox_exepath.PerformLayout();
382 | this.groupBox_speed.ResumeLayout(false);
383 | this.groupBox_speed.PerformLayout();
384 | ((System.ComponentModel.ISupportInitialize)(this.trackBar_speed)).EndInit();
385 | this.ResumeLayout(false);
386 | this.PerformLayout();
387 |
388 | }
389 |
390 | #endregion
391 |
392 | private System.Windows.Forms.Label label_timeout;
393 | private System.Windows.Forms.TextBox textSeconds;
394 | private System.Windows.Forms.Button IniViewbutton;
395 | private System.Windows.Forms.GroupBox intScriptGBox;
396 | private System.Windows.Forms.Button IniScriptBrowse;
397 | private System.Windows.Forms.TextBox ScriptPath;
398 | private System.Windows.Forms.Button OptionOK;
399 | private System.Windows.Forms.Button OptionCancel;
400 | private System.Windows.Forms.GroupBox groupBox1;
401 | private System.Windows.Forms.Button logPathBrowse;
402 | private System.Windows.Forms.TextBox ProcessLogFilePath;
403 | private System.Windows.Forms.TextBox restartAcad;
404 | private System.Windows.Forms.Label label2;
405 | private System.Windows.Forms.Label label1;
406 | private System.Windows.Forms.CheckBox searchFolder;
407 | private System.Windows.Forms.GroupBox groupBox_image;
408 | private System.Windows.Forms.RadioButton radioButton_failed;
409 | private System.Windows.Forms.RadioButton radioButton_all;
410 | private System.Windows.Forms.RadioButton radioButton_none;
411 | private System.Windows.Forms.CheckBox diagnosticMode;
412 | private System.Windows.Forms.GroupBox groupBox_exepath;
413 | private System.Windows.Forms.Button button_exePath;
414 | private System.Windows.Forms.TextBox textBox_exePath;
415 | private System.Windows.Forms.GroupBox groupBox_speed;
416 | private System.Windows.Forms.TrackBar trackBar_speed;
417 | private System.Windows.Forms.CheckBox OpenDWGFile;
418 | private System.Windows.Forms.CheckBox UseExeCheckbox;
419 | }
420 | }
--------------------------------------------------------------------------------