Skip to content

Commit

Permalink
resolving conflicts, testing and small tweaks
Browse files Browse the repository at this point in the history
- merged dev into branch
- added "type" parameter to group proxies for sections in order to distinguish between frame sections and shell sections
  • Loading branch information
bjoernsteinhagen committed Jan 22, 2025
1 parent 892954b commit c3a362e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ICsiApplicationService csiApplicationService
LoadState();
}

private void SetPaths() // TODO: Event vent aggregator issues
private void SetPaths()
{
ModelPathHash = Crypt.Md5(_csiApplicationService.SapModel.GetModelFilepath(), length: 32);
HostAppUserDataPath = Path.Combine(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public IEnumerable<IProxyCollection> UnpackMaterials()
name = materialName,
applicationId = materialName,
objects = sectionIds,
["Properties"] = properties
["properties"] = properties
};

yield return materialProxy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Speckle.Connectors.CSiShared;

public static class ServiceRegistration // TODO: Fix in light of events
public static class ServiceRegistration
{
public static IServiceCollection AddCsi(this IServiceCollection services)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ private IEnumerable<GroupProxy> UnpackFrameSections()
name = sectionName,
applicationId = sectionName,
objects = frameIds,
["Properties"] = properties // openings will just have an empty dict here
["type"] = "Frame Section", // since sectionProxies are a flat list, need some way to distinguish from shell
["properties"] = properties // openings will just have an empty dict here
};

yield return sectionProxy;
Expand Down Expand Up @@ -99,7 +100,8 @@ private IEnumerable<GroupProxy> UnpackShellSections()
name = sectionName,
applicationId = sectionName,
objects = frameIds,
["Properties"] = properties // openings will just have an empty dict here
["type"] = "Shell Section", // since sectionProxies are a flat list, need some way to distinguish from frame
["properties"] = properties // openings will just have an empty dict here
};

yield return sectionProxy;
Expand Down

0 comments on commit c3a362e

Please sign in to comment.