bricscad build compatibility

This commit is contained in:
Zdenek Borovec 2024-09-01 13:27:00 +02:00
parent 9049499525
commit 0431c3ca2e
3 changed files with 11 additions and 4 deletions

View file

@ -26,9 +26,10 @@
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE;BCAD</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>5</WarningLevel>
<DocumentationFile>bin\Release\Boprs.xml</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="accoremgd"> <Reference Include="accoremgd">
@ -40,6 +41,9 @@
<Reference Include="acmgd"> <Reference Include="acmgd">
<HintPath>..\..\..\..\..\Program Files\Autodesk\AutoCAD 2024\acmgd.dll</HintPath> <HintPath>..\..\..\..\..\Program Files\Autodesk\AutoCAD 2024\acmgd.dll</HintPath>
</Reference> </Reference>
<Reference Include="BrxMgd">
<HintPath>..\..\..\..\..\Program Files\Bricsys\BricsCAD V23 en_US\BrxMgd.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
@ -48,6 +52,9 @@
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Net.Http" /> <Reference Include="System.Net.Http" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
<Reference Include="TD_Mgd">
<HintPath>..\..\..\..\..\Program Files\Bricsys\BricsCAD V23 en_US\TD_Mgd.dll</HintPath>
</Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="BooleanOperation.cs" /> <Compile Include="BooleanOperation.cs" />

View file

@ -11,6 +11,7 @@ using Bricscad.EditorInput;
using Teigha.Geometry; using Teigha.Geometry;
using Teigha.DatabaseServices; using Teigha.DatabaseServices;
using Teigha.Colors; using Teigha.Colors;
using AcAp = Bricscad.ApplicationServices;
#endif #endif
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View file

@ -9,6 +9,7 @@ using Bricscad.EditorInput;
using Teigha.Geometry; using Teigha.Geometry;
using Teigha.DatabaseServices; using Teigha.DatabaseServices;
using Teigha.Colors; using Teigha.Colors;
using AcAp = Bricscad.ApplicationServices;
#endif #endif
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -157,8 +158,6 @@ namespace Boprs
/// <param name="prevEdge">Edge preceeding this one in the bopr processing sweep line.</param> /// <param name="prevEdge">Edge preceeding this one in the bopr processing sweep line.</param>
internal void SetInsideOther(SweepEdge prevEdge) internal void SetInsideOther(SweepEdge prevEdge)
{ {
AcAp.Document acDoc = AcAp.Application.DocumentManager.MdiActiveDocument;
if (prevEdge == null) if (prevEdge == null)
{ {
InsideOther = false; InsideOther = false;