From 6dd1298b089e507df6f3af57f9301fd1d806cd76 Mon Sep 17 00:00:00 2001 From: ChenX Date: Mon, 21 Jun 2021 16:14:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E9=81=BF=E5=85=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/DrawDim/DimArc.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Add-on/DrawDim/DimArc.ts b/src/Add-on/DrawDim/DimArc.ts index c47b17ef9..a0404a57d 100644 --- a/src/Add-on/DrawDim/DimArc.ts +++ b/src/Add-on/DrawDim/DimArc.ts @@ -11,7 +11,8 @@ import { HotCMD } from "../../Hot/HotCommand"; function GetBoardCurve(ent: Board): Arc | undefined { - return GetPolylineArc(ent.ContourCurve.Clone().ApplyMatrix(ent.OCSNoClone) as Polyline); + if (ent.ContourCurve instanceof Polyline) + return GetPolylineArc(ent.ContourCurve.Clone().ApplyMatrix(ent.OCSNoClone) as Polyline); } function GetPolylineArc(cu: Polyline)