-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bjorn/cnx-880-add-sections-and-materials-as-proxies #499
bjorn/cnx-880-add-sections-and-materials-as-proxies #499
Conversation
v21 and v22 following SDK updates
Refactoring in accordance with PropertiesExtractor example
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #499 +/- ##
=======================================
Coverage 14.74% 14.74%
=======================================
Files 239 239
Lines 4674 4674
Branches 576 576
=======================================
Hits 689 689
Misses 3954 3954
Partials 31 31 ☔ View full report in Codecov by Sentry. |
@clairekuang I had a brainwave this morning and currently exploring cc: @dogukankaratas |
- Interim solution for viewer filtering is appending the materialId to assignments for each object - For FRAME this was easy - For SHELL not so easy. No GetMaterial method avaiable given a AreaObj sectionName. Implemented lightweight materialCache based on cDatabaseTable. Marked as temporary based on previous discussions
Summary of DiscussionEtabs Model here. Changes
Future Issues
|
Connectors/CSi/Speckle.Connectors.CSiShared/HostApp/Helpers/CsiFrameSectionPropertyExtractor.cs
Outdated
Show resolved
Hide resolved
Connectors/CSi/Speckle.Connectors.CSiShared/HostApp/Helpers/CsiMaterialPropertyExtractor.cs
Outdated
Show resolved
Hide resolved
Connectors/CSi/Speckle.Connectors.CSiShared/HostApp/Helpers/MaterialProxy.cs
Outdated
Show resolved
Hide resolved
...s/CSi/Speckle.Connectors.CSiShared/HostApp/Relationships/ObjectSectionRelationshipManager.cs
Outdated
Show resolved
Hide resolved
...s/CSi/Speckle.Connectors.CSiShared/HostApp/Relationships/ObjectSectionRelationshipManager.cs
Outdated
Show resolved
Hide resolved
...CSi/Speckle.Connectors.CSiShared/HostApp/Relationships/SectionMaterialRelationshipManager.cs
Outdated
Show resolved
Hide resolved
Connectors/CSi/Speckle.Connectors.CSiShared/HostApp/MaterialUnpacker.cs
Outdated
Show resolved
Hide resolved
…aterials-as-proxies' into bjorn/cnx-880-add-sections-and-materials-as-proxies
- Fair point for repeated strings in the CsiMaterialPropertyExtractor.cs - Even more reason to include this across all repeated strings. Categories of properties screaming out for this. Added additionally
- Dictionary lookups for material and section proxies - Only create proxies for assigned sections and materials (not pretty)
Commit here. |
6d76123
to
116d077
Compare
…ions-and-materials-as-proxies
…ion relationships (#514) * This is a workaround for Revit's order of operations when initializing (#511) * This is a workaround for Revit's order of operations when initializing * Fix event listening * adds a singleton cache for material and section relationships to csishared * updating extraction results and simplifying classes * Only allow methods on classes as opposed to anonymous lambdas for Event Subscription (#512) * This is a workaround for Revit's order of operations when initializing * Fix event listening * Only allow methods on classes as opposed to anonymous lambdas * formatting * fix tests * weakreference found should remove subscription * doument model store fix (#516) * testing commit --------- Co-authored-by: Adam Hathcock <[email protected]> Co-authored-by: Björn <[email protected]>
- merged dev into branch - added "type" parameter to group proxies for sections in order to distinguish between frame sections and shell sections
Description & motivation
PropFrame
(FRAME
) orPropArea
(AREA
)PropArea
is for one of the following types:Deck
,Wall
orSlab
. This affects the applicable api queryChanges:
Figma Link
_materialUnpacker
- CsiShared implementation (eligible for both Sap2000 and Etabs)_sectionUnpacker
- CsiShared and host-app specific implementations (e.g.GetAllSectionProperties_2
not valid for Sap2000SectionMaterialRelationshipManager
andObjectSectionRelationshipManager
- Method of building relationships. Based onMaterialName
for section-material relationship andsectionDesignation
for object-section relationship. Both of these attributes (strings) have to be unique in Etabs worldTo-do before merge:
SectionProxy
andMaterialProxy
(?) in the SDK. Currently usingGroupProxy
Screenshots:
See Speckle Project.
Checklist: