Commit Graph

115 Commits

Author SHA1 Message Date
Claire Kuang 6fb4081efd fix(rhino): CNX-245 render materials inherited from layer bug (#127) 2024-08-09 14:50:40 +03:00
Jedd Morgan 46bb442f02 CNXPLA-19: Add logging for model card handled exceptions (#118)
* Add logging for model card handled exceptions

* Arcgis logger

* Polish
2024-08-09 10:42:38 +00:00
Dimitrie Stefanescu 65a8106a52 Dimitrie/cnx 201 group names from autocad to rhino are not supported (#126)
* fix(dui3): correctly creates groups with their appropriate name in rhino

* fix(dui3): purges groups on second receive to ensure correct name is set always

note, this means we're using our naming hack again

* fix: moves group logic to group manager :/

* chore: adds comment
2024-08-09 00:27:20 +03:00
Dimitrie Stefanescu b8d4b03be0 fix: handles correctly nested dynamic instances (inside other instances) (#125)
this check can now be safely removed, as we're handling 'em correctly
2024-08-08 19:06:39 +00:00
Adam Hathcock d4c47a050f Add more Rhino activities and update SDK (#124)
* Add more Rhino activities and update SDK

* update lock files

* fmt

---------

Co-authored-by: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com>
2024-08-08 18:58:52 +01:00
Claire Kuang 158027eb72 feat(autocad): CNX-23 render materials on send and receive (#117)
* adds color manager to autocad

* injects color manager

* adds colors to objects on receive

* Fixes setting layer colors on receive

* fixes layer colors and adds color to objects

* autocad color bugs

* merge errors

* object ids fix

* adds application id to autocad layers

* object ids bug

* reduces type complexity on send

* initializes collection cache to empty

* Update RhinoColorManager.cs

* layer bug

* adds materials to autocad on send

* skips inherited materials on send

* adds render materials as (color, transparency) on receive, and refactors groups to reduce complexity

* adds render material conversion to material

* fixes material bugs on receive

* fixes rhino render material receive default bug

* adds missing colors and materials to instances

* minor suggestions + semantics (#120)

* namespace changes

* Update AutocadInstanceObjectManager.cs

* fix: blocks

* Dim/cnx 23 fixes (#123)

* feat: simplification on the rhino side

* chore: removes stale code

* chore: moves colors next to materials

* chore: removes unused file

* chore: actually just stylistic changes

* feat: passes in material and color manager to layer manager by DI

* fix: forgot to stage this last change

* fix: typos, renaming + deleting stale code

---------

Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
2024-08-08 16:56:11 +00:00
Adam Hathcock 92af8677e9 Update to Sdk 3.1.0-dev.95 (#122) 2024-08-08 13:59:21 +01:00
Adam Hathcock 891a18819b React to sdk renaming (#113)
* react to renamespacing

* merge dev

* fmt

* initialize things with typeloader

* autocad initialization

* add arcgis

* add more projects to local

* instrument rhino more

* update nugets

* fmt
2024-08-08 10:32:01 +00:00
Oğuzhan Koral 6615badfe5 Track layer changes by ModifyObjectAttributes of RhinoObject (#119) 2024-08-08 09:23:48 +01:00
Oğuzhan Koral a0d44150e9 Remove DisableRedrawScope on send (#116) 2024-08-07 18:04:16 +00:00
Dimitrie Stefanescu f0745cae97 Fixes Rhino unhandled exception 'destination array is not long enough...' etc. (#115)
* fix(dui3): wip fix for cnx-202

* fix(dui3): propagates change from rhino to other host apps

* fix(dui3/revit): cnx-225; revit was reporting cancellation as errors

---------

Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com>
2024-08-07 17:32:04 +00:00
Adam Hathcock 3cb527667c Rhino otel (#112)
* add autocad beginnings

* WIP on DUI3-316-AutoCAD-Civil3d-SideBySide-Run-DUI3-and-DUI2-together

* Rhino 7 basics

* fix targets

* launch rhp

* intermediate commit

* intermediate commit

* Logger for Speckle.Logging

* Use nugets

* adjust dependencies

* Build fix

* merge fixes

* oops, two classes

* more receive instrumentation

* instrument to otel but not seq

* adds color manager to autocad

* injects color manager

* adds colors to objects on receive

* merge fixes

* add config for otel

* fmt

* Fixes setting layer colors on receive

* fixes layer colors and adds color to objects

* autocad color bugs

* merge errors

* object ids fix

* adds application id to autocad layers

* object ids bug

* reduces type complexity on send

* initializes collection cache to empty

* Update RhinoColorManager.cs

* react to sdk changes

* Update nugets

* remove serilog again

* fmt

* Rhino 7/8 now initializes logs same as Revit

* more instrumenting

* remove post-bulid copy step

---------

Co-authored-by: Claire Kuang <kuang.claire@gmail.com>
2024-08-07 13:37:33 +01:00
Adam Hathcock 5f9c718056 Logging using ILRepack and start of Open Telemetry usage (#89)
* add autocad beginnings

* WIP on DUI3-316-AutoCAD-Civil3d-SideBySide-Run-DUI3-and-DUI2-together

* Rhino 7 basics

* fix targets

* launch rhp

* intermediate commit

* intermediate commit

* Logger for Speckle.Logging

* Use nugets

* adjust dependencies

* Build fix

* merge fixes

* oops, two classes

* more receive instrumentation

* instrument to otel but not seq

* adds color manager to autocad

* injects color manager

* adds colors to objects on receive

* merge fixes

* add config for otel

* fmt

* Fixes setting layer colors on receive

* fixes layer colors and adds color to objects

* autocad color bugs

* merge errors

* object ids fix

* adds application id to autocad layers

* object ids bug

* reduces type complexity on send

* initializes collection cache to empty

* Update RhinoColorManager.cs

* react to sdk changes

* Update nugets

* remove serilog again

* fmt

---------

Co-authored-by: Claire Kuang <kuang.claire@gmail.com>
2024-08-07 11:56:55 +00:00
Oğuzhan Koral dfe2f71b67 Feat(dui3): CNX-182 upload download progress updates (#111)
* Downloading progress

* chore(dui3): comprise solution

* note re cnx-202

---------

Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
2024-08-07 11:10:28 +00:00
Oğuzhan Koral 1d8e585500 Disable receive binding for now (#109) 2024-08-06 16:06:55 +00:00
Claire Kuang cea5750cae feat(autocad/rhino): CNX-162 CNX-163 adds color proxies on send and receive (#104)
* adds color manager to autocad

* injects color manager

* adds colors to objects on receive

* Fixes setting layer colors on receive

* fixes layer colors and adds color to objects

* autocad color bugs

* merge errors

* object ids fix

* adds application id to autocad layers

* object ids bug

* reduces type complexity on send

* initializes collection cache to empty

* Update RhinoColorManager.cs

* layer bug

---------

Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com>
2024-08-06 16:46:55 +01:00
Oğuzhan Koral 82e95f9c00 Feat(dui3) Debouncing progress updates (#106)
* WIP

* Update progress by %1 interval

* Dim/millisecond based debounce (#107)

* uses time instead of progress values

* adds status as a change detector

* Extract to THROTTLE_INTERVAL_MS

* Inject OperationProgressManager as singleton

---------

Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
2024-08-06 18:03:21 +03:00
Jedd Morgan 3074855cde quick optimised rhino send (#105) 2024-08-06 10:31:09 +01:00
Adam Hathcock 764c804461 Fixes for Rhino installers with Rhino8 intro (#103) 2024-08-05 12:37:24 +03:00
Dimitrie Stefanescu 6366f03d07 fix(dui3): cleans up base layer prefix from invalid chars - fixes second receive cleanup issues (#101)
* fix(dui3): cleans up base layer prefix from invalid chars - fixes second receive cleanup issues

and adds extra defensibility around layer naming in acad.

* fix(dui3): corrects by layer purge in acad

i have no idea how i even wrote this code in the first place
2024-08-04 19:48:30 +03:00
KatKatKateryna bf0f2b3884 All operations: split main tread operations (ArcGIS, Rhino, Revit, Aacad) (#94)
* remove sync to main thread on Receive Operation

* non-gis datasets writing - to main thread

* map layers - on main thread

* gis & non-gis converters - to main thread

* Revert "non-gis datasets writing - to main thread"

This reverts commit 9b10a9ec99.

* all to main thread

* async host installer

* RootObjectBuilder uses Task now for sending

* move subscriptions to new layers to Send event

* Send to async

* spaces on conflict merge

* format

---------

Co-authored-by: Adam Hathcock <adam@speckle.systems>
Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com>
2024-08-03 13:09:22 +03:00
Adam Hathcock c23bd8ee70 Add Logging to Local.sln (#99)
* Add Logging to Local.sln

* VS fixes
2024-08-02 21:08:20 +00:00
Dimitrie Stefanescu ad9fb2d4be Dimitrie/cnx 34 implement in revit send (#86)
* feat(dui3): selection unpacker + removes wall hosted elems

* feat(dui3): removes hosted elems converter usage from all elements

* chore(dui3): refactors out hosted element converter

* fix(dui3): correctly unpacks and packs groups and curtain walls

+ comments

* feat(dui3): adds type sub-path to sent elements

* fix(dui3): fixes rhino layer creation

* feat(dui3): removes traverse with progress from hopefully everywhere
2024-08-02 17:42:36 +00:00
Jedd Morgan 9e6d07b6fa suppressed parentheses preferences (#100) 2024-08-02 17:33:59 +00:00
Adam Hathcock 3601bdc438 Use RunAsync for Revits and UI for 2025 (#98) 2024-08-02 15:04:58 +00:00
Claire Kuang e432183df3 fix(rhino) : CNX-136 fixes gem, glass, and emission materials to acceptable degree in rhino<>rhino (#95)
* makes rhino nurbs curve converter safer

* bug fixes for gem, glass, and emissive materials

* Update NurbsCurveConverter.cs
2024-08-02 14:47:59 +00:00
KatKatKateryna b11cb91a4d AGIS: expand groupLayers on Highlight (#97)
Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com>
2024-08-02 16:46:06 +03:00
KatKatKateryna 08d1e4578d AGIS: Blocks ToTransform for ITransformable (#93)
Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com>
2024-08-02 16:13:05 +03:00
Adam Hathcock 12094d1dbe Fix layer traversals (#96)
* Fix up transactions

* Fix for creating empty collection when asking for Rhino Layer Paths
2024-08-02 13:04:35 +00:00
Adam Hathcock 5361af8c76 Lock fix for Rhino 8 (#91)
* Lock fix for Rhino 8

* change CI build to do everything

* Remove Rhino8 multitargetting

* fix windows

* upgrade webview2 for Rhino8

* only test

* codecov requires ubuntu

* Remove platform target x64 and other net7 related ones

---------

Co-authored-by: oguzhankoral <oguzhankoral@gmail.com>
2024-08-02 09:56:55 +01:00
Adam Hathcock 7d42d52efd D ui3 316 auto cad civil3d side by side run d ui3 and d ui2 together (#73)
* add autocad beginnings

* WIP on DUI3-316-AutoCAD-Civil3d-SideBySide-Run-DUI3-and-DUI2-together

* Rhino 7 basics

* fix targets

* launch rhp
2024-08-01 13:13:27 +01:00
Jedd Morgan 77e6f74fd3 Update Directory.Build.props (#90) 2024-08-01 11:58:20 +00:00
Adam Hathcock 36cfa1d6fd Ilrepack update with logging only (#92)
* Update dependencies for SDK to latest

* Adjust code to build

* rework logger

* mark as sealed to drop warning suppressions
2024-08-01 11:53:45 +00:00
KatKatKateryna 05aa73dad1 AGIS: update progress bar on WriteToDataset step (#87)
Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com>
2024-08-01 11:08:44 +00:00
Oğuzhan Koral 8a9ada020b Rhino 8 support (#84)
* Split Rhino and Shared for 8 version

* Make plugin and command version agnostic

* Make it partially work

* Successful send from Rhino 8

* Fix rhino8 (#85)

* Regen lock files

* use BoxFactory again with generated types

* fmt

* Project settings for targets for x64 and copy

---------

Co-authored-by: Adam Hathcock <adamhathcock@users.noreply.github.com>
2024-07-31 18:05:00 +03:00
Oğuzhan Koral a5d0b861c2 Feat(arcgis): Receive new blocks (#79)
* Local to global proxy

* Fix on having only non-instanceProxy maps

* transforms

* fixed matrix

* text

* wip

* Fix styling

* More styling

* Lock files

* Fix atomic object unpacking

* Receive new blocks in arcgis

* Check matrix count before adding conversionTracker

* update TC in Unpacker

* Add note on serialization hack

* transforms for displayValues

---------

Co-authored-by: KatKatKateryna <kateryna@speckle.systems>
2024-07-29 16:14:58 +03:00
Dimitrie Stefanescu 96671f713d Dimitrie/cnx 14 send dynamic blocks from acad as exploded groupsstatic (#81)
* feat(dui3): CNX-116 and CNX-14

* fix(dui3): prevents acad object highlighting fatal crash

by using the new top level exception handler available on the parent

* fix(dui3): purges failed conversions from instance def proxies

* fix(acad): removes unnecessary wrapper

* chore(dui3): adds comments

---------

Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com>
2024-07-29 10:20:52 +01:00
Dimitrie Stefanescu bba22eef77 fix(rhino): checks for null edge trims (#82) 2024-07-27 20:31:10 +00:00
Jedd Morgan f4d77bf8ce Top Level Exception Handler and Bindings fix (#76)
* TopLeveExceptionHandlerBindings

* Fixed idle manager on exceptional path

* null bindings check

* Made TopLevelExceptionHandler injectable

* Revit now works

* Fixed Tests

* returned unintentional change
2024-07-27 12:40:21 +01:00
KatKatKateryna 0806284288 group with Catalog DockPane (#78) 2024-07-26 13:04:09 +00:00
Claire Kuang dc57a34990 CNX-103 Autocad: fixes polyline arc segment bug (#77)
* found the arc bug

* Update CircularArc3dToSpeckleRawConverter.cs
2024-07-26 12:42:25 +00:00
Claire Kuang 4ed8175bdc refactor(rhino): CNX-19 adds render materials to objects and layers (#74)
* handles layer render materials and refactors material manager

* updates to new render material proxy class

* fixes duplicate layer processing logic

* refactors receive, fixes bug on send

* Revert dependency changes

* feat(dui3): pushes complexity to material manager, and cleans up root object builder

* feat(dui3): pushes complexity to material manager, and cleans up root object builder 

co-authored with @oguzhankoral

---------

Co-authored-by: Adam Hathcock <adam@speckle.systems>
Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com>
2024-07-25 16:14:46 +00:00
Oğuzhan Koral c2a53f6f1e Fix on arcgis targets (#75) 2024-07-25 15:25:29 +03:00
Adam Hathcock a1c0fbec3e Cleanup notnull (#72)
* alphabetize deps

* rerun locks

* use new nuget

* dump usage of one not null

* dump another usage of not null
2024-07-25 08:35:11 +01:00
Adam Hathcock 78fc084c15 Update Core for new stuff (#70)
* Update Core for new stuff

* package locks correct
2024-07-24 15:18:27 +01:00
Adam Hathcock 0c8a3b0c06 Autocad cleanup (#66)
* Clean up Autocad Plugin (not needed) and id for revit

* add folders for autocad

* add back initialization

---------

Co-authored-by: oguzhankoral <oguzhankoral@gmail.com>
2024-07-24 14:11:11 +01:00
KatKatKateryna ea5910b102 catch invalid projection (#56)
Co-authored-by: Adam Hathcock <adam@speckle.systems>
2024-07-24 09:54:55 +00:00
KatKatKateryna f1febb5e37 set Relative to the ground Elevation prop (#57)
Co-authored-by: Adam Hathcock <adam@speckle.systems>
2024-07-24 09:54:28 +00:00
KatKatKateryna ca25470ba0 AGIS: send group layers (#59)
* send nested layers

* don't use cache for sending group layers

* propagate changedLayerId to all sub-layers on the Map

* new syntax

* count groups outside the loop

---------

Co-authored-by: Adam Hathcock <adam@speckle.systems>
2024-07-24 10:53:51 +01:00
Adam Hathcock ffc84bac10 don't ignore dev PRs (#69)
* don't ignore dev PRs

* rework actions

* minimize test output
2024-07-24 09:36:36 +01:00