-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Implemented ETABSShared projects for Connectors and Converters to account for ETABS specific things that SAP 2000 doesn't account for such as levels or frames being further classified as Column, Beam or Brace or shells as wall or floor
- Loading branch information
1 parent
792bd93
commit b042bee
Showing
32 changed files
with
399 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
Connectors/CSi/Speckle.Connectors.ETABS21/Plugin/SpeckleForm.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Speckle.Connectors.CSiShared; | ||
using Speckle.Connectors.ETABSShared; | ||
using Speckle.Sdk.Host; | ||
|
||
// NOTE: Plugin entry point must match the assembly name, otherwise ETABS hits you with a "Not found" error when loading plugin | ||
// Disabling error below to prioritize DUI3 project structure. Name of cPlugin class cannot be changed | ||
#pragma warning disable IDE0130 | ||
namespace Speckle.Connectors.ETABS21; | ||
|
||
public class SpeckleForm : SpeckleFormBase | ||
public class SpeckleForm : ETABSSpeckleFormBase | ||
{ | ||
protected override HostAppVersion GetVersion() => HostAppVersion.v2021; | ||
protected override HostAppVersion GetVersion() => HostAppVersion.v2021; // TODO: We need a v21 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Speckle.Connectors.CSiShared; | ||
using Speckle.Connectors.ETABSShared; | ||
|
||
// NOTE: Plugin entry point must match the assembly name, otherwise ETABS hits you with a "Not found" error when loading plugin | ||
// Disabling error below to prioritize DUI3 project structure. Name of cPlugin class cannot be changed | ||
#pragma warning disable IDE0130 | ||
namespace Speckle.Connectors.ETABS21; | ||
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "<Pending>")] | ||
public class cPlugin : CSiPluginBase | ||
public class cPlugin : ETABSPluginBase | ||
{ | ||
protected override SpeckleFormBase CreateForm() => new SpeckleForm(); | ||
protected override ETABSSpeckleFormBase CreateETABSForm() => new SpeckleForm(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
Connectors/CSi/Speckle.Connectors.ETABS22/Plugin/SpeckleForm.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Speckle.Connectors.CSiShared; | ||
using Speckle.Connectors.ETABSShared; | ||
using Speckle.Sdk.Host; | ||
|
||
// NOTE: Plugin entry point must match the assembly name, otherwise ETABS hits you with a "Not found" error when loading plugin | ||
// Disabling error below to prioritize DUI3 project structure. Name of cPlugin class cannot be changed | ||
#pragma warning disable IDE0130 | ||
namespace Speckle.Connectors.ETABS22; | ||
|
||
public class SpeckleForm : SpeckleFormBase | ||
public class SpeckleForm : ETABSSpeckleFormBase | ||
{ | ||
protected override HostAppVersion GetVersion() => HostAppVersion.v2021; | ||
protected override HostAppVersion GetVersion() => HostAppVersion.v2021; // TODO: v22 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Speckle.Connectors.CSiShared; | ||
using Speckle.Connectors.ETABSShared; | ||
|
||
// NOTE: Plugin entry point must match the assembly name, otherwise ETABS hits you with a "Not found" error when loading plugin | ||
// Disabling error below to prioritize DUI3 project structure. Name of cPlugin class cannot be changed | ||
#pragma warning disable IDE0130 | ||
namespace Speckle.Connectors.ETABS22; | ||
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "<Pending>")] | ||
public class cPlugin : CSiPluginBase | ||
public class cPlugin : ETABSPluginBase | ||
{ | ||
protected override SpeckleFormBase CreateForm() => new SpeckleForm(); | ||
protected override ETABSSpeckleFormBase CreateETABSForm() => new SpeckleForm(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
Connectors/CSi/Speckle.Connectors.ETABSShared/Plugin/ETABSPluginBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Speckle.Connectors.CSiShared; | ||
|
||
namespace Speckle.Connectors.ETABSShared; | ||
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "<Pending>")] | ||
public abstract class ETABSPluginBase : CSiPluginBase | ||
{ | ||
public override int Info(ref string text) | ||
{ | ||
text = "Hey Speckler! This is our next-gen ETABS Connector."; | ||
return 0; | ||
} | ||
|
||
protected override SpeckleFormBase CreateForm() => CreateETABSForm(); | ||
|
||
protected abstract ETABSSpeckleFormBase CreateETABSForm(); | ||
} |
16 changes: 16 additions & 0 deletions
16
Connectors/CSi/Speckle.Connectors.ETABSShared/Plugin/ETABSSpeckleFormBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Speckle.Connectors.CSiShared; | ||
using Speckle.Sdk.Host; | ||
|
||
namespace Speckle.Connectors.ETABSShared; | ||
|
||
public abstract class ETABSSpeckleFormBase : SpeckleFormBase | ||
{ | ||
protected override HostApplication GetHostApplication() => HostApplications.ETABS; | ||
|
||
protected override void ConfigureServices(IServiceCollection services) | ||
{ | ||
base.ConfigureServices(services); | ||
services.AddETABS(); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
Connectors/CSi/Speckle.Connectors.ETABSShared/ServiceRegistration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Speckle.Converters.ETABSShared; | ||
|
||
namespace Speckle.Connectors.ETABSShared; | ||
|
||
public static class ServiceRegistration | ||
{ | ||
public static IServiceCollection AddETABS(this IServiceCollection services) | ||
{ | ||
services.AddETABSConverters(); | ||
|
||
return services; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
Connectors/CSi/Speckle.Connectors.ETABSShared/Speckle.Connectors.ETABSShared.projitems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' < '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | ||
<HasSharedItems>true</HasSharedItems> | ||
<SharedGUID>5d1e0b0d-56a7-4e13-b9a9-8633e02b8f17</SharedGUID> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Configuration"> | ||
<Import_RootNamespace>Speckle.Connectors.ETABSShared</Import_RootNamespace> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="$(MSBuildThisFileDirectory)Plugin\ETABSPluginBase.cs" /> | ||
<Compile Include="$(MSBuildThisFileDirectory)Plugin\ETABSSpeckleFormBase.cs" /> | ||
<Compile Include="$(MSBuildThisFileDirectory)ServiceRegistration.cs" /> | ||
</ItemGroup> | ||
</Project> |
13 changes: 13 additions & 0 deletions
13
Connectors/CSi/Speckle.Connectors.ETABSShared/Speckle.Connectors.ETABSShared.shproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>5d1e0b0d-56a7-4e13-b9a9-8633e02b8f17</ProjectGuid> | ||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" /> | ||
<PropertyGroup /> | ||
<Import Project="Speckle.Connectors.ETABSShared.projitems" Label="Shared" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.