├── .gitattributes ├── .gitignore ├── ComponentNumberingPlugin.sln └── ComponentNumberingPlugin ├── ComponentNumberingPlugin.csproj ├── MainForm.Designer.cs ├── MainForm.cs ├── MainForm.resx ├── ModelPlugin.cs ├── PluginData.cs ├── Properties ├── AssemblyInfo.cs ├── Resources.Designer.cs └── Resources.resx ├── Resources └── Logo.png ├── TeklaExtensionMethods.cs └── packages.config /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /ComponentNumberingPlugin.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27004.2002 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComponentNumberingPlugin", "ComponentNumberingPlugin\ComponentNumberingPlugin.csproj", "{446EEA05-2797-4180-9AEE-AD34E311DC76}" 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 | {446EEA05-2797-4180-9AEE-AD34E311DC76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {446EEA05-2797-4180-9AEE-AD34E311DC76}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {446EEA05-2797-4180-9AEE-AD34E311DC76}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {446EEA05-2797-4180-9AEE-AD34E311DC76}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {5FB2A4EF-455D-4F55-A667-E8634E1C637F} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /ComponentNumberingPlugin/ComponentNumberingPlugin.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 2017.0 5 | 2017 6 | Debug 7 | AnyCPU 8 | 8.0.50727 9 | 2.0 10 | {446EEA05-2797-4180-9AEE-AD34E311DC76} 11 | Library 12 | Properties 13 | ComponentNumberingPlugin 14 | ComponentNumberingPlugin 15 | 16 | 17 | v4.0 18 | 19 | 20 | 21 | 22 | 2.0 23 | 24 | publish\ 25 | true 26 | Disk 27 | false 28 | Foreground 29 | 7 30 | Days 31 | false 32 | false 33 | true 34 | 0 35 | 1.0.0.%2a 36 | false 37 | false 38 | true 39 | 40 | 41 | true 42 | full 43 | false 44 | bin\Debug\ 45 | DEBUG;TRACE 46 | prompt 47 | 4 48 | 49 | 50 | pdbonly 51 | true 52 | bin\Release\ 53 | TRACE 54 | prompt 55 | 4 56 | 57 | 58 | 59 | ..\packages\Newtonsoft.Json.10.0.3\lib\net40\Newtonsoft.Json.dll 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | ..\..\..\..\..\..\..\..\..\Program Files\Tekla Structures\$(TSVersionFolderName)\nt\bin\plugins\Tekla.Structures.Plugins.dll 73 | 74 | 75 | 76 | 77 | 78 | Form 79 | 80 | 81 | MainForm.cs 82 | 83 | 84 | 85 | 86 | True 87 | True 88 | Resources.resx 89 | 90 | 91 | 92 | 93 | 94 | Designer 95 | MainForm.cs 96 | 97 | 98 | ResXFileCodeGenerator 99 | Resources.Designer.cs 100 | Designer 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 118 | -------------------------------------------------------------------------------- /ComponentNumberingPlugin/MainForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace ComponentNumberingPlugin 2 | { 3 | partial class MainForm 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 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); 32 | this.okApplyModifyGetOnOffCancel1 = new Tekla.Structures.Dialog.UIControls.OkApplyModifyGetOnOffCancel(); 33 | this.saveLoad1 = new Tekla.Structures.Dialog.UIControls.SaveLoad(); 34 | this.textBox2 = new System.Windows.Forms.TextBox(); 35 | this.label2 = new System.Windows.Forms.Label(); 36 | this.textBox1 = new System.Windows.Forms.TextBox(); 37 | this.label1 = new System.Windows.Forms.Label(); 38 | this.textBoxAssemblyPrefix = new System.Windows.Forms.TextBox(); 39 | this.label15 = new System.Windows.Forms.Label(); 40 | this.textBoxPartPrefix = new System.Windows.Forms.TextBox(); 41 | this.label14 = new System.Windows.Forms.Label(); 42 | this.textBoxPhaseNumber = new System.Windows.Forms.TextBox(); 43 | this.label13 = new System.Windows.Forms.Label(); 44 | this.pictureBox1 = new System.Windows.Forms.PictureBox(); 45 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); 46 | this.SuspendLayout(); 47 | // 48 | // okApplyModifyGetOnOffCancel1 49 | // 50 | this.structuresExtender.SetAttributeName(this.okApplyModifyGetOnOffCancel1, null); 51 | this.structuresExtender.SetAttributeTypeName(this.okApplyModifyGetOnOffCancel1, null); 52 | this.structuresExtender.SetBindPropertyName(this.okApplyModifyGetOnOffCancel1, null); 53 | this.okApplyModifyGetOnOffCancel1.Dock = System.Windows.Forms.DockStyle.Bottom; 54 | this.okApplyModifyGetOnOffCancel1.Location = new System.Drawing.Point(0, 236); 55 | this.okApplyModifyGetOnOffCancel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 56 | this.okApplyModifyGetOnOffCancel1.Name = "okApplyModifyGetOnOffCancel1"; 57 | this.okApplyModifyGetOnOffCancel1.Size = new System.Drawing.Size(701, 36); 58 | this.okApplyModifyGetOnOffCancel1.TabIndex = 12; 59 | this.okApplyModifyGetOnOffCancel1.OkClicked += new System.EventHandler(this.OkApplyModifyGetOnOffCancel_OkClicked); 60 | this.okApplyModifyGetOnOffCancel1.ApplyClicked += new System.EventHandler(this.OkApplyModifyGetOnOffCancel_ApplyClicked); 61 | this.okApplyModifyGetOnOffCancel1.ModifyClicked += new System.EventHandler(this.OkApplyModifyGetOnOffCancel_ModifyClicked); 62 | this.okApplyModifyGetOnOffCancel1.GetClicked += new System.EventHandler(this.OkApplyModifyGetOnOffCancel_GetClicked); 63 | this.okApplyModifyGetOnOffCancel1.OnOffClicked += new System.EventHandler(this.OkApplyModifyGetOnOffCancel_OnOffClicked); 64 | this.okApplyModifyGetOnOffCancel1.CancelClicked += new System.EventHandler(this.OkApplyModifyGetOnOffCancel_CancelClicked); 65 | // 66 | // saveLoad1 67 | // 68 | this.structuresExtender.SetAttributeName(this.saveLoad1, null); 69 | this.structuresExtender.SetAttributeTypeName(this.saveLoad1, null); 70 | this.saveLoad1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 71 | this.structuresExtender.SetBindPropertyName(this.saveLoad1, null); 72 | this.saveLoad1.Dock = System.Windows.Forms.DockStyle.Top; 73 | this.saveLoad1.HelpFileType = Tekla.Structures.Dialog.UIControls.SaveLoad.HelpFileTypeEnum.General; 74 | this.saveLoad1.HelpKeyword = ""; 75 | this.saveLoad1.HelpUrl = ""; 76 | this.saveLoad1.Location = new System.Drawing.Point(0, 0); 77 | this.saveLoad1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 78 | this.saveLoad1.Name = "saveLoad1"; 79 | this.saveLoad1.SaveAsText = ""; 80 | this.saveLoad1.Size = new System.Drawing.Size(701, 53); 81 | this.saveLoad1.TabIndex = 13; 82 | this.saveLoad1.UserDefinedHelpFilePath = null; 83 | // 84 | // textBox2 85 | // 86 | this.structuresExtender.SetAttributeName(this.textBox2, "partStartNumber"); 87 | this.structuresExtender.SetAttributeTypeName(this.textBox2, "Integer"); 88 | this.structuresExtender.SetBindPropertyName(this.textBox2, "Text"); 89 | this.textBox2.Location = new System.Drawing.Point(365, 195); 90 | this.textBox2.Name = "textBox2"; 91 | this.textBox2.Size = new System.Drawing.Size(55, 22); 92 | this.textBox2.TabIndex = 59; 93 | // 94 | // label2 95 | // 96 | this.structuresExtender.SetAttributeName(this.label2, null); 97 | this.structuresExtender.SetAttributeTypeName(this.label2, null); 98 | this.label2.AutoSize = true; 99 | this.structuresExtender.SetBindPropertyName(this.label2, null); 100 | this.label2.Location = new System.Drawing.Point(237, 198); 101 | this.label2.Name = "label2"; 102 | this.label2.Size = new System.Drawing.Size(122, 17); 103 | this.label2.TabIndex = 58; 104 | this.label2.Text = "Part Start Number"; 105 | // 106 | // textBox1 107 | // 108 | this.structuresExtender.SetAttributeName(this.textBox1, "assemblyStartNumber"); 109 | this.structuresExtender.SetAttributeTypeName(this.textBox1, "Integer"); 110 | this.structuresExtender.SetBindPropertyName(this.textBox1, "Text"); 111 | this.textBox1.Location = new System.Drawing.Point(365, 167); 112 | this.textBox1.Name = "textBox1"; 113 | this.textBox1.Size = new System.Drawing.Size(55, 22); 114 | this.textBox1.TabIndex = 57; 115 | // 116 | // label1 117 | // 118 | this.structuresExtender.SetAttributeName(this.label1, null); 119 | this.structuresExtender.SetAttributeTypeName(this.label1, null); 120 | this.label1.AutoSize = true; 121 | this.structuresExtender.SetBindPropertyName(this.label1, null); 122 | this.label1.Location = new System.Drawing.Point(203, 170); 123 | this.label1.Name = "label1"; 124 | this.label1.Size = new System.Drawing.Size(156, 17); 125 | this.label1.TabIndex = 56; 126 | this.label1.Text = "Assembly Start Number"; 127 | // 128 | // textBoxAssemblyPrefix 129 | // 130 | this.structuresExtender.SetAttributeName(this.textBoxAssemblyPrefix, "assemblyPrefix"); 131 | this.structuresExtender.SetAttributeTypeName(this.textBoxAssemblyPrefix, "String"); 132 | this.structuresExtender.SetBindPropertyName(this.textBoxAssemblyPrefix, "Text"); 133 | this.textBoxAssemblyPrefix.Location = new System.Drawing.Point(128, 167); 134 | this.textBoxAssemblyPrefix.Name = "textBoxAssemblyPrefix"; 135 | this.textBoxAssemblyPrefix.Size = new System.Drawing.Size(55, 22); 136 | this.textBoxAssemblyPrefix.TabIndex = 55; 137 | // 138 | // label15 139 | // 140 | this.structuresExtender.SetAttributeName(this.label15, null); 141 | this.structuresExtender.SetAttributeTypeName(this.label15, null); 142 | this.label15.AutoSize = true; 143 | this.structuresExtender.SetBindPropertyName(this.label15, null); 144 | this.label15.Location = new System.Drawing.Point(9, 170); 145 | this.label15.Name = "label15"; 146 | this.label15.Size = new System.Drawing.Size(107, 17); 147 | this.label15.TabIndex = 54; 148 | this.label15.Text = "Assembly Prefix"; 149 | // 150 | // textBoxPartPrefix 151 | // 152 | this.structuresExtender.SetAttributeName(this.textBoxPartPrefix, "partPrefix"); 153 | this.structuresExtender.SetAttributeTypeName(this.textBoxPartPrefix, "String"); 154 | this.structuresExtender.SetBindPropertyName(this.textBoxPartPrefix, "Text"); 155 | this.textBoxPartPrefix.Location = new System.Drawing.Point(128, 195); 156 | this.textBoxPartPrefix.Name = "textBoxPartPrefix"; 157 | this.textBoxPartPrefix.Size = new System.Drawing.Size(55, 22); 158 | this.textBoxPartPrefix.TabIndex = 53; 159 | // 160 | // label14 161 | // 162 | this.structuresExtender.SetAttributeName(this.label14, null); 163 | this.structuresExtender.SetAttributeTypeName(this.label14, null); 164 | this.label14.AutoSize = true; 165 | this.structuresExtender.SetBindPropertyName(this.label14, null); 166 | this.label14.Location = new System.Drawing.Point(43, 198); 167 | this.label14.Name = "label14"; 168 | this.label14.Size = new System.Drawing.Size(73, 17); 169 | this.label14.TabIndex = 52; 170 | this.label14.Text = "Part Prefix"; 171 | // 172 | // textBoxPhaseNumber 173 | // 174 | this.structuresExtender.SetAttributeName(this.textBoxPhaseNumber, "phaseNumber"); 175 | this.structuresExtender.SetAttributeTypeName(this.textBoxPhaseNumber, "Integer"); 176 | this.structuresExtender.SetBindPropertyName(this.textBoxPhaseNumber, "Text"); 177 | this.textBoxPhaseNumber.Location = new System.Drawing.Point(128, 124); 178 | this.textBoxPhaseNumber.Name = "textBoxPhaseNumber"; 179 | this.textBoxPhaseNumber.Size = new System.Drawing.Size(55, 22); 180 | this.textBoxPhaseNumber.TabIndex = 51; 181 | // 182 | // label13 183 | // 184 | this.structuresExtender.SetAttributeName(this.label13, null); 185 | this.structuresExtender.SetAttributeTypeName(this.label13, null); 186 | this.label13.AutoSize = true; 187 | this.structuresExtender.SetBindPropertyName(this.label13, null); 188 | this.label13.Location = new System.Drawing.Point(14, 127); 189 | this.label13.Name = "label13"; 190 | this.label13.Size = new System.Drawing.Size(102, 17); 191 | this.label13.TabIndex = 50; 192 | this.label13.Text = "Phase Number"; 193 | // 194 | // pictureBox1 195 | // 196 | this.structuresExtender.SetAttributeName(this.pictureBox1, null); 197 | this.structuresExtender.SetAttributeTypeName(this.pictureBox1, null); 198 | this.structuresExtender.SetBindPropertyName(this.pictureBox1, null); 199 | this.pictureBox1.Image = global::ComponentNumberingPlugin.Properties.Resources.Logo; 200 | this.pictureBox1.Location = new System.Drawing.Point(12, 60); 201 | this.pictureBox1.Name = "pictureBox1"; 202 | this.pictureBox1.Size = new System.Drawing.Size(171, 42); 203 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; 204 | this.pictureBox1.TabIndex = 14; 205 | this.pictureBox1.TabStop = false; 206 | // 207 | // MainForm 208 | // 209 | this.structuresExtender.SetAttributeName(this, null); 210 | this.structuresExtender.SetAttributeTypeName(this, null); 211 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 212 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 213 | this.structuresExtender.SetBindPropertyName(this, null); 214 | this.ClientSize = new System.Drawing.Size(701, 272); 215 | this.Controls.Add(this.textBox2); 216 | this.Controls.Add(this.label2); 217 | this.Controls.Add(this.textBox1); 218 | this.Controls.Add(this.label1); 219 | this.Controls.Add(this.textBoxAssemblyPrefix); 220 | this.Controls.Add(this.label15); 221 | this.Controls.Add(this.textBoxPartPrefix); 222 | this.Controls.Add(this.label14); 223 | this.Controls.Add(this.textBoxPhaseNumber); 224 | this.Controls.Add(this.label13); 225 | this.Controls.Add(this.pictureBox1); 226 | this.Controls.Add(this.saveLoad1); 227 | this.Controls.Add(this.okApplyModifyGetOnOffCancel1); 228 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 229 | this.Margin = new System.Windows.Forms.Padding(4); 230 | this.Name = "MainForm"; 231 | this.Text = "Component Numbering Plugin"; 232 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); 233 | this.ResumeLayout(false); 234 | this.PerformLayout(); 235 | 236 | } 237 | 238 | #endregion 239 | private Tekla.Structures.Dialog.UIControls.OkApplyModifyGetOnOffCancel okApplyModifyGetOnOffCancel1; 240 | private Tekla.Structures.Dialog.UIControls.SaveLoad saveLoad1; 241 | private System.Windows.Forms.PictureBox pictureBox1; 242 | private System.Windows.Forms.TextBox textBox2; 243 | private System.Windows.Forms.Label label2; 244 | private System.Windows.Forms.TextBox textBox1; 245 | private System.Windows.Forms.Label label1; 246 | private System.Windows.Forms.TextBox textBoxAssemblyPrefix; 247 | private System.Windows.Forms.Label label15; 248 | private System.Windows.Forms.TextBox textBoxPartPrefix; 249 | private System.Windows.Forms.Label label14; 250 | private System.Windows.Forms.TextBox textBoxPhaseNumber; 251 | private System.Windows.Forms.Label label13; 252 | } 253 | } -------------------------------------------------------------------------------- /ComponentNumberingPlugin/MainForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ComponentNumberingPlugin 4 | { 5 | public partial class MainForm : Tekla.Structures.Dialog.PluginFormBase 6 | { 7 | public MainForm() 8 | { 9 | InitializeComponent(); 10 | } 11 | 12 | private void OkApplyModifyGetOnOffCancel_OkClicked(object sender, EventArgs e) 13 | { 14 | this.Apply(); 15 | this.Close(); 16 | } 17 | 18 | private void OkApplyModifyGetOnOffCancel_ApplyClicked(object sender, EventArgs e) 19 | { 20 | this.Apply(); 21 | } 22 | 23 | private void OkApplyModifyGetOnOffCancel_ModifyClicked(object sender, EventArgs e) 24 | { 25 | this.Modify(); 26 | } 27 | 28 | private void OkApplyModifyGetOnOffCancel_GetClicked(object sender, EventArgs e) 29 | { 30 | this.Get(); 31 | } 32 | 33 | private void OkApplyModifyGetOnOffCancel_OnOffClicked(object sender, EventArgs e) 34 | { 35 | this.ToggleSelection(); 36 | } 37 | 38 | private void OkApplyModifyGetOnOffCancel_CancelClicked(object sender, EventArgs e) 39 | { 40 | this.Close(); 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /ComponentNumberingPlugin/MainForm.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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | 124 | 125 | 126 | AAABAAEAMjIAAAEAIADIKAAAFgAAACgAAAAyAAAAZAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 127 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 128 | AAAAAAAAA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//imTv/4pk7/9+UNf/kplT/559B/+abO//mnDz/5pw8/+ac 179 | PP/mnDz/5pw8/+acPP/mnDz/5pw8/+acPP/mnDz/5pw8/+acPP/mnDz/5549//azQ//+vkb//LxG//y8 180 | Rv/9vUYVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8jEVn/IxF//yMRf/8jEX//IxF//2L 181 | Rf/Xijr/0Iw2/8+MNv/PjDb/z4w2/8+LNv/Pizb/zos2/86MNv/PjDb/z4w2/8+LNf/PjDb/7di8//// 182 | ///vwYT/6q1e/+acPP/mnDz/5pw8/+acPP/mnDz/5pw8/+acPP/mnDz/5pw8/+acPP/mnDz/5pw8//Cq 183 | Qf/9vUb//LxG//y8Rv/8vEb//LxG//29RhUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPyM 184 | RWf8jEX//IxF//yMRf/8jEX//IxF//GGQv/gfz7/0os3/8+MNv/PjDb/z4w2/8+MNv/PjDb/z4w2/8+M 185 | Nf/OizT/3rF4//////////////79/++/gf/wxIr/8MWL/+mkTP/mmzv/5pw8/+acPP/mnDz/5pw8/+ac 186 | PP/mnDz/5pw8/+ykP//9vUb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//b1GFQAAAAAAAAAAAAAAAAAA 187 | AAAAAAAAAAAAAAAAAAAAAAAA/IxFZ/yMRf/8jEX//IxF//yMRf/8jEX//Y1F/+R/P//ifj7/3YI8/8+M 188 | N//PjDb/z4w2/8+MNv/PizT/16Vh//v48////////////////////v3/77+B//DEiv/wxIr/8MSM/++9 189 | ff/nnkD/5pw8/+acPP/mnDz/5pw8/+mgPv/5t0T//b1G//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8 190 | Rv/9vUYVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8jEVn/IxF//yMRf/8jEX//IxF//yM 191 | Rf/8jEX/8oZC/+J+Pv/ifj7/4n4+/9uEO//OjDb/zokv//r17f/////////////////////////////+ 192 | /f/vv4H/8MSK//DEiv/wxIr/8MSK//DEiv/uuXX/5ps6/+WbPP/3tET//LxG//y8Rv/8vEb//LxG//y8 193 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//29RhUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPyM 194 | RWf8jEX//IxF//yMRf/8jEX//IxF//yMRf/+jUX/5IA//+J+Pv/ifj7/4n4+/+OHSf////////////// 195 | //////////////////////////79/++/gf/wxIr/8MSK//DEiv/wxIr/8MSK//DEiv/2z5T/+71H//y8 196 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//b1GFQAAAAAAAAAAAAAAAAAA 197 | AAAAAAAAAAAAAAAAAAAAAAAA/IxFZ/yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/1iEP/4H0+/+J+ 198 | Pv/ifj7/44dJ/////////////////////////////////////////v3/77+B//DEiv/wxIr/8MSK//DD 199 | iv/0yoz//NWQ//3bl//8vEf//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8 200 | Rv/9vUYVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8jEVn/IxF//yMRf/8jEX//IxF//yM 201 | Rf/8jEX//IxF//2MRf/ngED/4n4+/+J+Pv/jh0n////////////////////////////////////////+ 202 | /f/vv4H/8MSK//DEiv/xxYr/+9SP//3XkP/915D//dqX//y8R//8vEb//LxG//y8Rv/8vEb//LxG//y8 203 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//29RhUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPyM 204 | RWf8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//WIQ//hfj7/4n4+/+OHSf////////////// 205 | //////////////////////////79/++/gf/xxYr/+M+N//3XkP/915D//deQ//3XkP/92pf//LxH//y8 206 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//b1GFQAAAAAAAAAAAAAAAAAA 207 | AAAAAAAAAAAAAAAAAAAAAAAA/IxFZ/yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//YxF/+aA 208 | P//ifj7/44dJ////////////////////////////////////////////9ceD//zWkP/92JD//deQ//3X 209 | kP/915D//deQ//3al//8vEf//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8 210 | Rv/9vUYVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8jEVn/IxF//yMRf/8jEX//IxF//yM 211 | Rf/8jEX//IxF//yMRf/8jEX/94lE/+F+Pv/jh0n//////////////////////////////////u7k//3B 212 | mv/92ZD//deQ//3XkP/915D//deQ//3XkP/915D//dqX//y8R//8vEb//LxG//y8Rv/8vEb//LxG//y8 213 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//29RhUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPyM 214 | RWf8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/9jEX/54BA/+OISf////////////// 215 | //////////j0//7OsP/9t4r//buP//3ZkP/915D//deQ//3XkP/915D//deQ//3XkP/92pf//LxH//y8 216 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//b1GFQAAAAAAAAAAAAAAAAAA 217 | AAAAAAAAAAAAAAAAAAAAAAAA/IxFZ/yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yM 218 | Rf/4ikT/44ZJ//////////////z6//7aw//9ton//bqP//26j//9uo///dmQ//3XkP/915D//deQ//3X 219 | kP/915D//deQ//3al//8vEf//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8 220 | Rv/9vUYVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8jEVn/IxF//yMRf/8jEX//IxF//yM 221 | Rf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/ri0v////////t4//9uY3//bqP//26j//9uo///bqP//26 222 | j//92ZD//deQ//3XkP/915D//deQ//3XkP/915D//dqX//y8R//8vEb//LxG//y8Rv/8vEb//LxG//y8 223 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//29RhUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPyM 224 | RWf8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//qSTf/9v5f//bqQ//26 225 | j//9uo///bqP//26j//9uo///bqP//3ZkP/915D//deQ//3XkP/915D//deQ//3XkP/91o7//LxH//y8 226 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//b1GFQAAAAAAAAAAAAAAAAAA 227 | AAAAAAAAAAAAAAAAAAAAAAAA/IxFZ/yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yM 228 | Rf/8jEX//IxF//yKQv/8pWz//buR//26j//9uo///bqP//26j//9uo///dmQ//3XkP/915D//deQ//3X 229 | kP/915H//MZi//y7RP/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8 230 | Rv/9vUYVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8jEVn/IxF//yMRf/8jEX//IxF//yM 231 | Rf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jUb//bSE//26j//9uo///bqP//26 232 | j//92ZD//deQ//3XkP/915H//cxz//y8R//8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8 233 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//29RhUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPyM 234 | RWf8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yM 235 | Rf/8jEX//JJP//23iv/9upD//bqP//3ZkP/915L//dOE//y9R//8vEb//LxG//y8Rv/8vEb//LxG//y8 236 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//b1GFQAAAAAAAAAAAAAAAAAA 237 | AAAAAAAAAAAAAAAAAAAAAAAA/IxFZ/yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yM 238 | Rf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//ItE//ydYP/9vJH//deK//zCV//8vEX//LxG//y8 239 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8 240 | Rv/9vUYVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8jEVn/IxF//yMRf/8jEX//IxF//yM 241 | Rf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxE//yP 242 | Sf/8wUj//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8 243 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//29RhUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPyM 244 | RWb8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yMRf/8jEX//IxF//yM 245 | Rf/8jEX//IxF//yMRf/8jEX//IxF//zARv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8 246 | Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//LxG//y8Rv/8vEb//b1GFQAAAAAAAAAAAAAAAAAA 247 | AAAAAAAAAAAAAAAAAAAAAAAA/Y1FVfyMRf/8jEX//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AADwADwAAAAAAPAAPAAAAAAA8AA8AAAAAADwAD4AAAAAAfAAP4AAAAAH8AA/wAAAAB/ 299 | wAD/wAAAAf/AAP/wAAAD/8AA//wAAA//wAD//gAAP//AAP//gAB//8AA///AAf//wAD///AD///AAP// 300 | /A///8AA////P///wAD////////AAA== 301 | 302 | 303 | -------------------------------------------------------------------------------- /ComponentNumberingPlugin/ModelPlugin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | using Tekla.Structures; 6 | using Tekla.Structures.Model; 7 | using Tekla.Structures.Model.UI; 8 | using Tekla.Structures.Plugins; 9 | 10 | namespace ComponentNumberingPlugin 11 | { 12 | [Plugin("ComponentNumberingPlugin")] 13 | [PluginUserInterface("ComponentNumberingPlugin.MainForm")] 14 | public class ConnectionCheck : PluginBase 15 | { 16 | #region Properties 17 | private Model Model { get; } 18 | private PluginData Data { get; } 19 | #endregion 20 | 21 | #region Constructor 22 | public ConnectionCheck(PluginData data) 23 | { 24 | Model = new Model(); 25 | Data = data; 26 | } 27 | #endregion 28 | 29 | #region Overrides 30 | public override List DefineInput() 31 | { 32 | var inputList = new List(); 33 | var picker = new Picker(); 34 | 35 | Connection connection; 36 | do 37 | { 38 | connection = picker.PickObject(Picker.PickObjectEnum.PICK_ONE_OBJECT) as Connection; 39 | } 40 | while (connection == null); 41 | 42 | inputList.Add(new InputDefinition(connection.Identifier)); 43 | 44 | return inputList; 45 | } 46 | 47 | public override bool Run(List input) 48 | { 49 | try 50 | { 51 | var connection = Model.SelectModelObject((Identifier)input[0].GetInput()) as Connection; 52 | if (connection == null) return false; 53 | 54 | connection.GetPhase(out Phase phase); 55 | 56 | var parts = connection.GetChildren().ToList().OfType().ToList(); 57 | var part = parts[0]; 58 | if (part == null) MessageBox.Show("Not a part " + parts.Count); 59 | 60 | var newPartNumberPrefix = Data.PhaseNumber + Data.PartPrefix; 61 | var newAssemblyNumberPrefix = Data.PhaseNumber + Data.AssemblyPrefix; 62 | 63 | var newPartStartNumber = Data.PhaseNumber + Data.PartStartNumber; 64 | var newAssemblyStartNumber = Data.PhaseNumber + Data.AssemblyStartNumber; 65 | 66 | if (part.PartNumber.Prefix != newPartNumberPrefix) 67 | { 68 | part.PartNumber.Prefix = newPartNumberPrefix; 69 | part.Modify(); 70 | } 71 | 72 | if (part.AssemblyNumber.Prefix != newAssemblyNumberPrefix) 73 | { 74 | part.AssemblyNumber.Prefix = newAssemblyNumberPrefix; 75 | part.Modify(); 76 | } 77 | 78 | if (part.PartNumber.StartNumber != newPartStartNumber) 79 | { 80 | part.PartNumber.StartNumber = newPartStartNumber; 81 | part.Modify(); 82 | } 83 | 84 | if (part.AssemblyNumber.StartNumber != newAssemblyStartNumber) 85 | { 86 | part.AssemblyNumber.StartNumber = newAssemblyStartNumber; 87 | part.Modify(); 88 | } 89 | 90 | var partNumber = part.GetPartMark(); 91 | 92 | var drawer = new GraphicsDrawer(); 93 | drawer.DrawText(connection.GetCoordinateSystem().Origin, $"{part.PartNumber.Prefix} : {part.AssemblyNumber.Prefix} : {partNumber}", 94 | new Color(1, 1, 1)); 95 | 96 | return true; 97 | } 98 | catch (Exception Ex) 99 | { 100 | MessageBox.Show(Ex.ToString()); 101 | } 102 | 103 | return true; 104 | } 105 | #endregion 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /ComponentNumberingPlugin/PluginData.cs: -------------------------------------------------------------------------------- 1 | using Tekla.Structures.Plugins; 2 | 3 | namespace ComponentNumberingPlugin 4 | { 5 | public class PluginData 6 | { 7 | [StructuresField("phaseNumber")] 8 | public int PhaseNumber; 9 | [StructuresField("partPrefix")] 10 | public string PartPrefix; 11 | [StructuresField("assemblyPrefix")] 12 | public string AssemblyPrefix; 13 | [StructuresField("partStartNumber")] 14 | public int PartStartNumber; 15 | [StructuresField("assemblyStartNumber")] 16 | public int AssemblyStartNumber; 17 | } 18 | } -------------------------------------------------------------------------------- /ComponentNumberingPlugin/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("ConnectionCheck")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Tekla")] 12 | [assembly: AssemblyProduct("Tekla Structures")] 13 | [assembly: AssemblyCopyright("Copyright © Tekla 2012")] 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("581baed8-6c93-4723-915b-715a6d9ce3fb")] 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 Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /ComponentNumberingPlugin/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 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 ComponentNumberingPlugin.Properties { 12 | /// 13 | /// A strongly-typed resource class, for looking up localized strings, etc. 14 | /// 15 | // This class was auto-generated by the StronglyTypedResourceBuilder 16 | // class via a tool like ResGen or Visual Studio. 17 | // To add or remove a member, edit your .ResX file then rerun ResGen 18 | // with the /str option, or rebuild your VS project. 19 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 20 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 21 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 22 | internal class Resources { 23 | 24 | private static global::System.Resources.ResourceManager resourceMan; 25 | 26 | private static global::System.Globalization.CultureInfo resourceCulture; 27 | 28 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 29 | internal Resources() { 30 | } 31 | 32 | /// 33 | /// Returns the cached ResourceManager instance used by this class. 34 | /// 35 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 36 | internal static global::System.Resources.ResourceManager ResourceManager { 37 | get { 38 | if (object.ReferenceEquals(resourceMan, null)) { 39 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ComponentNumberingPlugin.Properties.Resources", typeof(Resources).Assembly); 40 | resourceMan = temp; 41 | } 42 | return resourceMan; 43 | } 44 | } 45 | 46 | /// 47 | /// Overrides the current thread's CurrentUICulture property for all 48 | /// resource lookups using this strongly typed resource class. 49 | /// 50 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 51 | internal static global::System.Globalization.CultureInfo Culture { 52 | get { 53 | return resourceCulture; 54 | } 55 | set { 56 | resourceCulture = value; 57 | } 58 | } 59 | 60 | /// 61 | /// Looks up a localized resource of type System.Drawing.Bitmap. 62 | /// 63 | internal static System.Drawing.Bitmap Logo { 64 | get { 65 | object obj = ResourceManager.GetObject("Logo", resourceCulture); 66 | return ((System.Drawing.Bitmap)(obj)); 67 | } 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /ComponentNumberingPlugin/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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | ..\Resources\Logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | -------------------------------------------------------------------------------- /ComponentNumberingPlugin/Resources/Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razorcx/component-numbering-plugin/3db0ea1036d7e4accc2c43619f4d7f2148ac5690/ComponentNumberingPlugin/Resources/Logo.png -------------------------------------------------------------------------------- /ComponentNumberingPlugin/TeklaExtensionMethods.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using Tekla.Structures.Model; 3 | 4 | namespace ComponentNumberingPlugin 5 | { 6 | public static class TeklaExtensionMethods 7 | { 8 | public static List ToList(this ModelObjectEnumerator enumerator) 9 | { 10 | var modelObjects = new List(); 11 | while (enumerator.MoveNext()) 12 | { 13 | var modelObject = enumerator.Current; 14 | if (modelObject == null) continue; 15 | modelObjects.Add(modelObject); 16 | } 17 | 18 | return modelObjects; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /ComponentNumberingPlugin/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | --------------------------------------------------------------------------------