一键生成计轴时过滤已生成过计轴的区段
This commit is contained in:
parent
c97af4fdd8
commit
cd28b8e6f2
@ -166,7 +166,12 @@ export class AxleCountingDraw extends GraphicDrawAssistant<
|
||||
const sections = this.app.queryStore
|
||||
.queryByType<Section>(Section.Type)
|
||||
.filter((section) => {
|
||||
return section.datas.sectionType == SectionType.Physical;
|
||||
return (
|
||||
section.relationManage.getRelationsOfGraphicAndOtherType(
|
||||
section,
|
||||
AxleCounting.Type
|
||||
).length < 2 && section.datas.sectionType == SectionType.Physical
|
||||
);
|
||||
});
|
||||
|
||||
sections.forEach((section) => {
|
||||
|
Loading…
Reference in New Issue
Block a user