mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Fix Schedules and References not incrementing the ID number properly
This commit is contained in:
@@ -1496,7 +1496,7 @@ class AddDrawingToSheet(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
attributes = tool.Drawing.generate_reference_attributes(
|
attributes = tool.Drawing.generate_reference_attributes(
|
||||||
reference,
|
reference,
|
||||||
Identification=str(
|
Identification=str(
|
||||||
len([r for r in references if tool.Drawing.get_reference_description(r) in ("DRAWING", "SCHEDULE")]) + 1
|
len([r for r in references if tool.Drawing.get_reference_description(r) in ("DRAWING", "SCHEDULE", "REFERENCE")]) + 1
|
||||||
),
|
),
|
||||||
Location=drawing_reference.Location,
|
Location=drawing_reference.Location,
|
||||||
Description="DRAWING",
|
Description="DRAWING",
|
||||||
@@ -2299,7 +2299,7 @@ class AddScheduleToSheet(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
attributes = tool.Drawing.generate_reference_attributes(
|
attributes = tool.Drawing.generate_reference_attributes(
|
||||||
reference,
|
reference,
|
||||||
Identification=str(
|
Identification=str(
|
||||||
len([r for r in references if tool.Drawing.get_reference_description(r) in ("DRAWING", "SCHEDULE")]) + 1
|
len([r for r in references if tool.Drawing.get_reference_description(r) in ("DRAWING", "SCHEDULE", "REFERENCE")]) + 1
|
||||||
),
|
),
|
||||||
Location=schedule_location,
|
Location=schedule_location,
|
||||||
Description="SCHEDULE",
|
Description="SCHEDULE",
|
||||||
@@ -2355,7 +2355,7 @@ class AddReferenceToSheet(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
attributes = tool.Drawing.generate_reference_attributes(
|
attributes = tool.Drawing.generate_reference_attributes(
|
||||||
reference,
|
reference,
|
||||||
Identification=str(
|
Identification=str(
|
||||||
len([r for r in references if tool.Drawing.get_reference_description(r) in ("DRAWING", "REFERENCE")])
|
len([r for r in references if tool.Drawing.get_reference_description(r) in ("DRAWING", "SCHEDULE", "REFERENCE")])
|
||||||
+ 1
|
+ 1
|
||||||
),
|
),
|
||||||
Location=extref_location,
|
Location=extref_location,
|
||||||
|
|||||||
Reference in New Issue
Block a user