|
|
|
@ -19,6 +19,7 @@ import { Circle } from "../DatabaseServices/Entity/Circle";
|
|
|
|
|
import { ExtrudeContourCurve } from "../DatabaseServices/Entity/Extrude";
|
|
|
|
|
import { Line } from "../DatabaseServices/Entity/Line";
|
|
|
|
|
import { Polyline } from "../DatabaseServices/Entity/Polyline";
|
|
|
|
|
import { GroupRecord } from "../DatabaseServices/GroupTableRecord";
|
|
|
|
|
import { HardwareCompositeEntity } from "../DatabaseServices/Hardware/HardwareCompositeEntity";
|
|
|
|
|
import { HardwareTopline } from "../DatabaseServices/Hardware/HardwareTopline";
|
|
|
|
|
import { Shape } from "../DatabaseServices/Shape";
|
|
|
|
@ -483,7 +484,7 @@ export namespace Production
|
|
|
|
|
radius: nail.Radius,
|
|
|
|
|
depth,
|
|
|
|
|
face,
|
|
|
|
|
name: nail.GroupId.Object['name']
|
|
|
|
|
name: GetGroupName(nail)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -501,7 +502,7 @@ export namespace Production
|
|
|
|
|
radius: cu.Radius,
|
|
|
|
|
depth: m.thickness,
|
|
|
|
|
face: m.dir as number,
|
|
|
|
|
name: cu.GroupId.Object['name']
|
|
|
|
|
name: GetGroupName(cu)
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
@ -666,7 +667,7 @@ export namespace Production
|
|
|
|
|
depth,//排钻的插入深度
|
|
|
|
|
face,//板在哪个边上
|
|
|
|
|
angle,
|
|
|
|
|
name: cyHole.GroupId.Object['name']
|
|
|
|
|
name: GetGroupName(cyHole)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -728,7 +729,7 @@ export namespace Production
|
|
|
|
|
depth,
|
|
|
|
|
face: z0 < CanDrawHoleFuzz ? FaceDirection.Back : FaceDirection.Front,
|
|
|
|
|
angle: angle,
|
|
|
|
|
name: d.GroupId.Object['name']
|
|
|
|
|
name: GetGroupName(cir)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -781,7 +782,7 @@ export namespace Production
|
|
|
|
|
radius: cir.Radius,
|
|
|
|
|
depth,
|
|
|
|
|
face,
|
|
|
|
|
name: d.GroupId.Object['name']
|
|
|
|
|
name: GetGroupName(cir)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1016,4 +1017,10 @@ export namespace Production
|
|
|
|
|
|
|
|
|
|
return paths.map((c: ExtrudeContourCurve) => ConverToPtsBul(c, false));
|
|
|
|
|
}
|
|
|
|
|
export function GetGroupName(ent: Entity): string
|
|
|
|
|
{
|
|
|
|
|
let group = ent.GroupId?.Object as GroupRecord;
|
|
|
|
|
if (!group || !(group instanceof GroupRecord)) return "未知(无拆单名称)";
|
|
|
|
|
return group.Name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|