|
|
|
@ -23,7 +23,7 @@ export class ParseHinge implements Command
|
|
|
|
|
let res = await app.Editor.GetSelection({
|
|
|
|
|
Msg: "请选择需要分析铰链的门板:",
|
|
|
|
|
Filter: {
|
|
|
|
|
filterFunction: (o, e) => IsDoor(e)
|
|
|
|
|
filterFunction: (o, e) => { return e && IsDoor(e); }
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (res.Status === PromptStatus.OK)
|
|
|
|
@ -149,8 +149,8 @@ function ParseHingeToDoor(door: Entity, hingObjId: ObjectId<CADObject>[], hingeM
|
|
|
|
|
|
|
|
|
|
for (let hid of hingObjId)
|
|
|
|
|
{
|
|
|
|
|
let hw = hid?.Object as HardwareCompositeEntity;
|
|
|
|
|
if (!hw || hw.IsErase)
|
|
|
|
|
let hw = hid?.Object;
|
|
|
|
|
if (!hw || hw.IsErase || !(hw instanceof HardwareCompositeEntity)) //过滤掉铰链模板其他类型实体
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
if (hw.HardwareOption.name.includes("铰链"))
|
|
|
|
|