diff --git a/src/Add-on/MoveToWCS0.ts b/src/Add-on/MoveToWCS0.ts index 038d83775..284079cef 100644 --- a/src/Add-on/MoveToWCS0.ts +++ b/src/Add-on/MoveToWCS0.ts @@ -4,7 +4,7 @@ import { app } from "../ApplicationServices/Application"; import { Entity } from "../DatabaseServices/Entity/Entity"; import { Command } from "../Editor/CommandMachine"; import { PromptStatus } from "../Editor/PromptResult"; -import { comparePoint, GetBox } from '../Geometry/GeUtils'; +import { GetBox } from '../Geometry/GeUtils'; import { HotCMD } from '../Hot/HotCommand'; @@ -49,7 +49,7 @@ export class Command_PackageMove implements Command for (let i = 0; i < ents.length; i++) { let en = ents[i]; - en.TempData = { i, b: GetBox(en.DrawObject), u: false }; + en.TempData = { i, b: en.Visible ? GetBox(en.DrawObject) : en.BoundingBox, u: false }; } let fb = new Flatbush(ents.length);