Fix IMPORT naming, messages and 3D Studio limits

STEP assemblies: a link that closes a loop in the assembly is dropped,
so no block inserts itself; the walk is iterative. Each imported block
gets a name the drawing does not use yet instead of silently reusing an
existing definition, inserts are pointed at the names the blocks got,
and an insert of a block that could not be defined is left out with
the error reported.

Names that come from files (STEP products, 3D Studio objects, materials
and cameras, WMF font faces) go through a new shared
scene::sanitized_table_name, which applies the block-name rules
(reserved and control characters, 255 characters).

3D Studio: meshes with more vertices than a polyface mesh can index are
split over several meshes. Single-layer mode uses the current layer.
Materials are only created when the drawing has a material dictionary.
Camera views get the current view's proportions and the perspective
flag.

Messages show paths as given, the file-not-found and read-failure
messages are plain text of our own, and the "Press Esc" line is gone
since the import cannot be cancelled. The true-colour packing is
shared. "Select ACIS File" and "Import WMF" get catalog entries and
keys in all 22 locales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-16 23:20:03 +03:00
1 parent dbc428b237
commit a0ed20df28
28 files changed
+205 -88

No files matched your search

+2
View File
@@ -1250,6 +1250,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = اختيار ملف ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6683,6 +6684,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = استيراد WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1237,6 +1237,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Избор на ACIS файл
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6671,6 +6672,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Импортиране на WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1237,6 +1237,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Vybrat soubor ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6668,6 +6669,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Importovat WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1238,6 +1238,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = ACIS-Datei auswählen
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6669,6 +6670,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = WMF importieren
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1239,6 +1239,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Επιλογή αρχείου ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6671,6 +6672,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Εισαγωγή WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1236,6 +1236,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Select ACIS File
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = Select External Reference File
.cad-files = CAD Files
@@ -6670,6 +6671,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Import WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1238,6 +1238,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Seleccionar archivo ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6671,6 +6672,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Importar WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1237,6 +1237,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Valitse ACIS-tiedosto
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6668,6 +6669,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Tuo WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1238,6 +1238,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Sélectionner un fichier ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6671,6 +6672,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Importer un WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1226,6 +1226,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = ACIS फ़ाइल चुनें
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6659,6 +6660,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = WMF आयात करें
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1242,6 +1242,7 @@ common =
.dgn-files = DGN-fájlok
.select-dwf-file = DWF-fájl kiválasztása
.select-dgn-file = DGN-fájl kiválasztása
.select-acis-file = ACIS-fájl kiválasztása
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6655,6 +6656,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = WMF importálása
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1237,6 +1237,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Seleziona file ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6670,6 +6671,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Importa WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1228,6 +1228,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = ACIS ファイルを選択
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6659,6 +6660,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = WMF を読み込み
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1237,6 +1237,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = ACIS 파일 선택
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6670,6 +6671,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = WMF 가져오기
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1243,6 +1243,7 @@ common =
.dgn-files = ໄຟລ໌ DGN
.select-dwf-file = ເລືອກໄຟລ໌ DWF
.select-dgn-file = ເລືອກໄຟລ໌ DGN
.select-acis-file = ເລືອກໄຟລ໌ ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = ເລືອກໄຟລ໌ອ້າງອີງພາຍນອກ
.cad-files = ໄຟລ໌ CAD
@@ -6671,6 +6672,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = ນຳເຂົ້າ WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1236,6 +1236,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = ACIS-bestand selecteren
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6669,6 +6670,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = WMF importeren
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1237,6 +1237,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Wybierz plik ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6670,6 +6671,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Importuj WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1238,6 +1238,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Selecionar arquivo ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6671,6 +6672,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Importar WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1241,6 +1241,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = Выбор файла ACIS
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6672,6 +6673,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = Импорт WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1224,6 +1224,7 @@ common =
.dgn-files = DGN Dosyaları
.select-dwf-file = DWF Dosyası Seç
.select-dgn-file = DGN Dosyası Seç
.select-acis-file = ACIS Dosyası Seç
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6592,6 +6593,7 @@ dgn-import =
.import-file = Dosya İçe Aktar
.dgn-import = DGN İçe Aktar
.import-dgn-file = DGN Dosyası İçe Aktar
.import-wmf = WMF İçe Aktar
.help-dgn = DGN modelini çizim nesneleri olarak içe aktarır: seviyeler katman, hücreler blok olur.
.help-import = Seçilen biçimdeki dosyayı o biçimin içe aktarıcısıyla içe aktarır.
.blank = Dosya adı boş olamaz
+2
View File
@@ -1225,6 +1225,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = 选择 ACIS 文件
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6654,6 +6655,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = 导入 WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank
+2
View File
@@ -1237,6 +1237,7 @@ common =
.dgn-files = DGN Files
.select-dwf-file = Select DWF File
.select-dgn-file = Select DGN File
.select-acis-file = 選擇 ACIS 檔案
.pdfattach = PDFATTACH: __ocs_fmt_0__
.select-external-reference-file = { draw.select } · { properties.external-reference } · { common.files }
.cad-files = { common.files } (CAD)
@@ -6666,6 +6667,7 @@ dgn-import =
.import-file = Import File
.dgn-import = DGN Import
.import-dgn-file = Import DGN File
.import-wmf = 匯入 WMF
.help-dgn = Imports a DGN model as drawing objects: levels as layers, cells as blocks.
.help-import = Imports a file of the chosen format with the format's importer.
.blank = Filename cannot be blank