From 0431c3ca2eaf20d085e55c794b8ed4b9bf87cf0d Mon Sep 17 00:00:00 2001 From: Zdenek Borovec Date: Sun, 1 Sep 2024 13:27:00 +0200 Subject: [PATCH] bricscad build compatibility --- Boprs.csproj | 11 +++++++++-- Commands.cs | 1 + SweepEdge.cs | 3 +-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Boprs.csproj b/Boprs.csproj index 4edefaa..6d59f07 100644 --- a/Boprs.csproj +++ b/Boprs.csproj @@ -26,9 +26,10 @@ pdbonly true bin\Release\ - TRACE + TRACE;BCAD prompt - 4 + 5 + bin\Release\Boprs.xml @@ -40,6 +41,9 @@ ..\..\..\..\..\Program Files\Autodesk\AutoCAD 2024\acmgd.dll + + ..\..\..\..\..\Program Files\Bricsys\BricsCAD V23 en_US\BrxMgd.dll + @@ -48,6 +52,9 @@ + + ..\..\..\..\..\Program Files\Bricsys\BricsCAD V23 en_US\TD_Mgd.dll + diff --git a/Commands.cs b/Commands.cs index 5887c38..4b9226e 100644 --- a/Commands.cs +++ b/Commands.cs @@ -11,6 +11,7 @@ using Bricscad.EditorInput; using Teigha.Geometry; using Teigha.DatabaseServices; using Teigha.Colors; +using AcAp = Bricscad.ApplicationServices; #endif using System; using System.Collections.Generic; diff --git a/SweepEdge.cs b/SweepEdge.cs index 8373bfe..ab8b512 100644 --- a/SweepEdge.cs +++ b/SweepEdge.cs @@ -9,6 +9,7 @@ using Bricscad.EditorInput; using Teigha.Geometry; using Teigha.DatabaseServices; using Teigha.Colors; +using AcAp = Bricscad.ApplicationServices; #endif using System; using System.Collections.Generic; @@ -157,8 +158,6 @@ namespace Boprs /// Edge preceeding this one in the bopr processing sweep line. internal void SetInsideOther(SweepEdge prevEdge) { - AcAp.Document acDoc = AcAp.Application.DocumentManager.MdiActiveDocument; - if (prevEdge == null) { InsideOther = false;