3drepo / 3drepobouncer

A C++ library providing 3D Repo Scene Graph definition, repository management logic and manipulation logic. It is is essentially the refactored 3DRepoCore and (parts of) 3DRepoGUI
GNU Affero General Public License v3.0
29 stars 13 forks source link

Issue 679 - Add support for DWG importer #680

Closed sebjf closed 3 months ago

sebjf commented 4 months ago

This fixes #679 - DWG object handles do not match Navis.

This PR adds a dedicated DWG importer using the Drawings SDK, replacing the previous importer which converted the DWG to a DGN, and then imported that using the DGN importer.

The new importer preserves the Handle Ids from AutoCAD, and better matches the Navisworks tree.

Description

New classes

View

Blocks

Names

Metadata

Colours

CMake

Unit Tests

Things to note

  1. A new error code has been added for the password protected case. The code is 37. This code will also be used by #667.
  2. The handle entities created by the new importer are "correct", however they do not match those created by the NWD importer or the (Navis) plugin. The plugins and NWD importer will need to be changed before cross referencing will work.
sebjf commented 3 months ago

@carmenfan fixed!