Упрощение dxfgen. Теперь в toml не нужна указывать два раза один объект для разных этапов
This commit is contained in:
parent
a18aec7eeb
commit
9549112bb4
27
README.md
27
README.md
|
|
@ -123,9 +123,36 @@ python src/dxfgen.py --discipline СПД,КСБ --chart-type power --places RTP3
|
|||
|
||||
- `place` — простой код для фильтрации `--places`;
|
||||
- `document_name` — название документа для поиска в MDR (генерируются все этапы);
|
||||
- `template` — шаблон;
|
||||
- `title_block` — заполнение основной надписи (STR1/STR2/STR3);
|
||||
- `[drawings.values]` — произвольные замены текста в шаблоне (поддерживаются варианты `{{ KEY }}`, `{{KEY}}`, `\{{ KEY \}}`, `\{{KEY\}}`);
|
||||
- `STAGE_TITUL` — если пуст или `*` — документ генерируется для **всех** этапов из MDR с подстановкой кода этапа; если задан конкретный код — обрабатывается только этот этап;
|
||||
- генерируются только DXF и PDF.
|
||||
|
||||
Пример `translation/spd/replace.toml`:
|
||||
|
||||
```toml
|
||||
discipline = "СПД"
|
||||
chart_type = "replace"
|
||||
replace_mode = true
|
||||
title_block = { STR1 = "", ST = "Р", SH = "1", SHS = "1" }
|
||||
|
||||
[[drawings]]
|
||||
place = "powerin"
|
||||
document_name = "Схема компоновки устройства ввода электропитания"
|
||||
template = "Шаблон Схема компоновки устройства ввода электропитания СПД r13.dxf"
|
||||
|
||||
[drawings.values]
|
||||
STAGE_TITUL = "*"
|
||||
```
|
||||
|
||||
### Логика `STAGE_TITUL`
|
||||
|
||||
Логика `STAGE_TITUL` работает **для всех типов чертежей** (`principle`, `power`, `layout`, `replace`):
|
||||
|
||||
- `STAGE_TITUL = "*"` (или не указан) → для места/документа генерируются **все** записи из MDR (все этапы); в каждом файле `{{STAGE_TITUL}}` заменяется на код этапа;
|
||||
- `STAGE_TITUL = "110900"` → обрабатывается только документ этого этапа.
|
||||
|
||||
## Источники данных
|
||||
|
||||
Основные входные данные:
|
||||
|
|
|
|||
228
src/dxfgen.py
228
src/dxfgen.py
|
|
@ -510,28 +510,28 @@ def resolve_template_path(templates_root: Path, template_name: str) -> Path:
|
|||
return candidates[0]
|
||||
|
||||
|
||||
def select_entry(
|
||||
def stage_titul_matches(entry: MdrEntry, normalized_stage_titul: str) -> bool:
|
||||
if not normalized_stage_titul or normalized_stage_titul == "*":
|
||||
return True
|
||||
if normalize_token(entry.title_number) == normalized_stage_titul:
|
||||
return True
|
||||
prefix = normalize_token(f"01/B590.{normalized_stage_titul}.")
|
||||
return normalize_token(entry.doc_number).startswith(prefix)
|
||||
|
||||
|
||||
def select_entries(
|
||||
entries: list[MdrEntry],
|
||||
place: str,
|
||||
chart_spec: ChartSpec,
|
||||
place_record: TranslationPlace | None,
|
||||
place_record: TranslationPlace,
|
||||
place_lookup: dict[str, PlaceInfo],
|
||||
) -> MdrEntry:
|
||||
) -> list[MdrEntry]:
|
||||
place = place_record.place
|
||||
normalized_discipline = normalize_token(chart_spec.discipline)
|
||||
normalized_place = normalize_token(place)
|
||||
normalized_prefix = normalize_text(chart_spec.document_prefix)
|
||||
normalized_stage_titul = ""
|
||||
if place_record is not None:
|
||||
normalized_stage_titul = normalize_token(place_record.values.get("STAGE_TITUL", ""))
|
||||
|
||||
def stage_matches(entry: MdrEntry) -> bool:
|
||||
return (
|
||||
not normalized_stage_titul
|
||||
or normalize_token(entry.title_number) == normalized_stage_titul
|
||||
or normalize_token(entry.doc_number).startswith(
|
||||
f"01/B590.{normalized_stage_titul}."
|
||||
)
|
||||
)
|
||||
normalized_stage_titul = normalize_token(
|
||||
place_record.values.get("STAGE_TITUL", "")
|
||||
)
|
||||
place_info = place_lookup.get(normalized_place.upper())
|
||||
normalized_place_cabinet = (
|
||||
normalize_token(place_info.cabinet_name) if place_info else ""
|
||||
|
|
@ -539,86 +539,84 @@ def select_entry(
|
|||
normalized_place_title = (
|
||||
normalize_token(place_info.title_name) if place_info else ""
|
||||
)
|
||||
candidates = [
|
||||
entry
|
||||
for entry in entries
|
||||
if normalize_token(entry.discipline) == normalized_discipline
|
||||
and normalize_text(entry.doc_name).startswith(normalized_prefix)
|
||||
and stage_matches(entry)
|
||||
and (
|
||||
normalize_token(cabinet_to_place(entry.cabinet)) == normalized_place
|
||||
or (
|
||||
normalized_place_cabinet
|
||||
and normalize_token(entry.cabinet) == normalized_place_cabinet
|
||||
|
||||
if chart_spec.replace_mode:
|
||||
document_name = normalize_text(place_record.document_name)
|
||||
if not document_name:
|
||||
raise ProcessingError(
|
||||
f"Replace chart '{chart_spec.chart_type}' requires document_name in drawings for place '{place}'."
|
||||
)
|
||||
or (
|
||||
normalized_place_title
|
||||
and normalize_token(entry.title_name) == normalized_place_title
|
||||
candidates = [
|
||||
entry
|
||||
for entry in entries
|
||||
if normalize_text(entry.doc_name) == document_name
|
||||
and stage_titul_matches(entry, normalized_stage_titul)
|
||||
]
|
||||
if not candidates:
|
||||
raise ProcessingError(
|
||||
f"No MDR document found with name '{document_name}' for chart type '{chart_spec.chart_type}'."
|
||||
)
|
||||
or (
|
||||
normalized_place_title
|
||||
and normalize_token(entry.doc_name) == normalized_place_title
|
||||
)
|
||||
)
|
||||
]
|
||||
if not candidates and place_info:
|
||||
else:
|
||||
candidates = [
|
||||
entry
|
||||
for entry in entries
|
||||
if normalize_token(entry.discipline) == normalized_discipline
|
||||
and normalize_text(entry.doc_name).startswith(normalized_prefix)
|
||||
and stage_matches(entry)
|
||||
and stage_titul_matches(entry, normalized_stage_titul)
|
||||
and (
|
||||
normalize_token(entry.cabinet) == normalized_place_cabinet
|
||||
or normalize_token(entry.title_name) == normalized_place_title
|
||||
or normalize_token(entry.doc_name) == normalized_place_title
|
||||
normalize_token(cabinet_to_place(entry.cabinet)) == normalized_place
|
||||
or (
|
||||
normalized_place_cabinet
|
||||
and normalize_token(entry.cabinet) == normalized_place_cabinet
|
||||
)
|
||||
or (
|
||||
normalized_place_title
|
||||
and normalize_token(entry.title_name) == normalized_place_title
|
||||
)
|
||||
or (
|
||||
normalized_place_title
|
||||
and normalize_token(entry.doc_name) == normalized_place_title
|
||||
)
|
||||
)
|
||||
]
|
||||
if not candidates:
|
||||
if place_info is None:
|
||||
raise ProcessingError(
|
||||
f"No MDR document found for place '{place}' and chart type '{chart_spec.chart_type}'."
|
||||
if not candidates and place_info:
|
||||
candidates = [
|
||||
entry
|
||||
for entry in entries
|
||||
if normalize_token(entry.discipline) == normalized_discipline
|
||||
and normalize_text(entry.doc_name).startswith(normalized_prefix)
|
||||
and stage_titul_matches(entry, normalized_stage_titul)
|
||||
and (
|
||||
normalize_token(entry.cabinet) == normalized_place_cabinet
|
||||
or normalize_token(entry.title_name) == normalized_place_title
|
||||
or normalize_token(entry.doc_name) == normalized_place_title
|
||||
)
|
||||
]
|
||||
if not candidates:
|
||||
if place_info is None:
|
||||
raise ProcessingError(
|
||||
f"No MDR document found for place '{place}' and chart type '{chart_spec.chart_type}'."
|
||||
)
|
||||
synthetic_doc_number = (
|
||||
f"01/B590.{safe_component(place_info.code or place)}.1.6-"
|
||||
f"{safe_component(chart_spec.discipline or 'СПД')}-"
|
||||
f"{safe_component(chart_spec.chart_type).upper()}"
|
||||
)
|
||||
synthetic_doc_number = (
|
||||
f"01/B590.{safe_component(place_info.code or place)}.1.6-"
|
||||
f"{safe_component(chart_spec.discipline or 'СПД')}-"
|
||||
f"{safe_component(chart_spec.chart_type).upper()}"
|
||||
)
|
||||
return MdrEntry(
|
||||
title_number=normalize_text(place_info.code or place),
|
||||
title_name=place_info.title_name,
|
||||
mark="",
|
||||
doc_order="1",
|
||||
doc_number=synthetic_doc_number,
|
||||
doc_name=f"{chart_spec.document_prefix}{place}",
|
||||
revision="A",
|
||||
discipline=chart_spec.discipline,
|
||||
format_name="A3",
|
||||
cabinet=normalize_text(place_info.cabinet_name).upper(),
|
||||
)
|
||||
candidates.sort(key=lambda entry: (normalize_text(entry.doc_order), normalize_text(entry.doc_number)))
|
||||
return candidates[0]
|
||||
return [
|
||||
MdrEntry(
|
||||
title_number=normalize_text(place_info.code or place),
|
||||
title_name=place_info.title_name,
|
||||
mark="",
|
||||
doc_order="1",
|
||||
doc_number=synthetic_doc_number,
|
||||
doc_name=f"{chart_spec.document_prefix}{place}",
|
||||
revision="A",
|
||||
discipline=chart_spec.discipline,
|
||||
format_name="A3",
|
||||
cabinet=normalize_text(place_info.cabinet_name).upper(),
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
def select_replace_entries(
|
||||
entries: list[MdrEntry],
|
||||
chart_spec: ChartSpec,
|
||||
place_record: TranslationPlace,
|
||||
) -> list[MdrEntry]:
|
||||
document_name = normalize_text(place_record.document_name)
|
||||
if not document_name:
|
||||
raise ProcessingError(
|
||||
f"Replace chart '{chart_spec.chart_type}' requires document_name in drawings for place '{place_record.place}'."
|
||||
)
|
||||
candidates = [
|
||||
entry
|
||||
for entry in entries
|
||||
if normalize_text(entry.doc_name) == document_name
|
||||
]
|
||||
if not candidates:
|
||||
raise ProcessingError(
|
||||
f"No MDR document found with name '{document_name}' for chart type '{chart_spec.chart_type}'."
|
||||
)
|
||||
candidates.sort(
|
||||
key=lambda entry: (
|
||||
normalize_text(entry.title_number),
|
||||
|
|
@ -671,10 +669,13 @@ def apply_title_block_attributes(
|
|||
|
||||
|
||||
def build_translation_replacements(
|
||||
chart_spec: ChartSpec, place_record: TranslationPlace
|
||||
chart_spec: ChartSpec, place_record: TranslationPlace, stage_titul: str | None = None
|
||||
) -> dict[str, str]:
|
||||
values = dict(place_record.values)
|
||||
if stage_titul:
|
||||
values["STAGE_TITUL"] = stage_titul
|
||||
replacements = dict(chart_spec.placeholder_defaults)
|
||||
replacements.update(place_record.values)
|
||||
replacements.update(values)
|
||||
return expand_group_values(replacements, chart_spec.value_groups)
|
||||
|
||||
|
||||
|
|
@ -886,7 +887,7 @@ def run_document(
|
|||
)
|
||||
|
||||
if chart_spec.replace_mode:
|
||||
replacements = build_translation_replacements(chart_spec, place_record)
|
||||
replacements = build_translation_replacements(chart_spec, place_record, entry.title_number)
|
||||
else:
|
||||
rename_replacements = (
|
||||
build_rename_replacements(rename_header, rename_rows, entry.cabinet)
|
||||
|
|
@ -901,7 +902,7 @@ def run_document(
|
|||
vokrch_lookup=vokrch_lookup,
|
||||
entries_by_title=entries_by_title,
|
||||
)
|
||||
replacements.update(build_translation_replacements(chart_spec, place_record))
|
||||
replacements.update(build_translation_replacements(chart_spec, place_record, entry.title_number))
|
||||
|
||||
doc = ezdxf.readfile(template_path)
|
||||
apply_replacements(doc, replacements)
|
||||
|
|
@ -1255,40 +1256,23 @@ def main() -> int:
|
|||
)
|
||||
|
||||
for place_record in place_records:
|
||||
if chart_spec.replace_mode:
|
||||
replace_entries = select_replace_entries(
|
||||
mdr_entries, chart_spec, place_record
|
||||
)
|
||||
for entry in replace_entries:
|
||||
jobs.append(
|
||||
ResolvedJob(
|
||||
discipline=discipline,
|
||||
discipline_output_root=discipline_output_root,
|
||||
chart_spec=chart_spec,
|
||||
entries_by_title=entries_by_title,
|
||||
entry=entry,
|
||||
cabinet_info=CabinetInfo("", ""),
|
||||
place_record=place_record,
|
||||
config_paths=(
|
||||
translation_root / "catalog.toml",
|
||||
chart_translation_path,
|
||||
),
|
||||
)
|
||||
)
|
||||
else:
|
||||
entry = select_entry(
|
||||
mdr_entries, place_record.place, chart_spec, place_record, place_lookup
|
||||
)
|
||||
cabinet_info = cabinet_lookup.get(entry.cabinet)
|
||||
if cabinet_info is None:
|
||||
place_info = place_lookup.get(normalize_token(place_record.place).upper())
|
||||
if place_info is not None:
|
||||
cabinet_info = CabinetInfo(
|
||||
room_name=place_info.room_name,
|
||||
title_name=place_info.title_name,
|
||||
)
|
||||
if cabinet_info is None:
|
||||
raise ProcessingError(f"Cabinet lookup is missing entry for {entry.cabinet}")
|
||||
selected_entries = select_entries(
|
||||
mdr_entries, chart_spec, place_record, place_lookup
|
||||
)
|
||||
for entry in selected_entries:
|
||||
if chart_spec.replace_mode:
|
||||
cabinet_info = CabinetInfo("", "")
|
||||
else:
|
||||
cabinet_info = cabinet_lookup.get(entry.cabinet)
|
||||
if cabinet_info is None:
|
||||
place_info = place_lookup.get(normalize_token(place_record.place).upper())
|
||||
if place_info is not None:
|
||||
cabinet_info = CabinetInfo(
|
||||
room_name=place_info.room_name,
|
||||
title_name=place_info.title_name,
|
||||
)
|
||||
if cabinet_info is None:
|
||||
raise ProcessingError(f"Cabinet lookup is missing entry for {entry.cabinet}")
|
||||
jobs.append(
|
||||
ResolvedJob(
|
||||
discipline=discipline,
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -407,34 +407,7 @@ LOCAL_CROSS_6 = "NKD4-RTP3-ODF"
|
|||
LOCAL_CROSS_7 = "SIS-RTP3-ODF"
|
||||
LOCAL_ROOM_1 = "Помещение связи и телемеханики (бн)"
|
||||
LOCAL_TITUL_1 = "РТП-3 (60)"
|
||||
STAGE_TITUL = "110900"
|
||||
DRAW_TITUL = "60"
|
||||
CONNECT_RACK = "-"
|
||||
CONNECT_QF = "-"
|
||||
PRIM_2_1 = "Примечание 2"
|
||||
PRIM_2_2 = ""
|
||||
PRIM_D = "СПД"
|
||||
PRIM_D_C = "СПД."
|
||||
PRIM_3 = ""
|
||||
PRIM_4 = ""
|
||||
|
||||
[[drawings]]
|
||||
place = "RTP3"
|
||||
template = "Шаблон Схема электропитания и заземления шкафа - РТП3 r18.dxf"
|
||||
[drawings.values]
|
||||
PLACE = "RTP3"
|
||||
DISC_NAME = "DISC_NAME"
|
||||
LOCAL_RACK = "ШСС"
|
||||
LOCAL_CROSS_1 = "MFC-RTP3-ODF1"
|
||||
LOCAL_CROSS_2 = "MFC-RTP3-ODF2"
|
||||
LOCAL_CROSS_3 = "NKD1-RTP3-ODF"
|
||||
LOCAL_CROSS_4 = "NKD21-RTP3-ODF"
|
||||
LOCAL_CROSS_5 = "NKD3-RTP3-ODF"
|
||||
LOCAL_CROSS_6 = "NKD4-RTP3-ODF"
|
||||
LOCAL_CROSS_7 = "SIS-RTP3-ODF"
|
||||
LOCAL_ROOM_1 = "Помещение связи и телемеханики (бн)"
|
||||
LOCAL_TITUL_1 = "РТП-3 (60)"
|
||||
STAGE_TITUL = "121500"
|
||||
STAGE_TITUL = "*"
|
||||
DRAW_TITUL = "60"
|
||||
CONNECT_RACK = "-"
|
||||
CONNECT_QF = "-"
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ template = "Шаблон Схема соединений принципиаль
|
|||
LOCAL_RACK = "ШСС"
|
||||
LOCAL_ROOM_1 = "Помещение связи и телемеханики (бн)"
|
||||
LOCAL_TITUL_1 = "РТП-3 (60)"
|
||||
STAGE_TITUL = "110900"
|
||||
STAGE_TITUL = "*"
|
||||
DRAW_TITUL = "60"
|
||||
SWITCH_1 = "RTP3-S-DSW1"
|
||||
SWITCH_2 = "RTP3-S-DSW2"
|
||||
|
|
@ -377,20 +377,3 @@ remote_titles = ["МФЦ \"Лунная поляна\" (1704.70)", "МФЦ \"Л
|
|||
remote_crosses = ["RTP3-MFC-ODF1", "RTP3-MFC-ODF2", "RTP3-NKD1-ODF", "RTP3-NKD21-ODF", "RTP3-SIS-ODF", "RTP3-NKD3-ODF", "RTP3-NKD4-ODF" ]
|
||||
num_fibers = [48, 48, 32, 32, 32, 32, 32]
|
||||
optical_lines = ["RTP3-MFC-OL1", "RTP3-MFC-OL2", "RTP3-NKD1-OL", "RTP3-NKD21-OL", "RTP3-SIS-OL", "RTP3-NKD3-OL", "RTP3-NKD4-OL"]
|
||||
|
||||
[[drawings]]
|
||||
place = "RTP3"
|
||||
template = "Шаблон Схема соединений принципиальная КСБ РТП-3 r20.dxf"
|
||||
[drawings.values]
|
||||
LOCAL_RACK = "ШСС"
|
||||
LOCAL_ROOM_1 = "Помещение связи и телемеханики (бн)"
|
||||
LOCAL_TITUL_1 = "РТП-3 (60)"
|
||||
STAGE_TITUL = "121500"
|
||||
DRAW_TITUL = "60"
|
||||
SWITCH_1 = "RTP3-S-DSW1"
|
||||
SWITCH_2 = "RTP3-S-DSW2"
|
||||
local_crosses = ["MFC-RTP3-ODF1", "MFC-RTP3-ODF2", "NKD1-RTP3-ODF", "NKD21-RTP3-ODF", "SIS-RTP3-ODF", "NKD3-RTP3-ODF", "NKD4-RTP3-ODF"]
|
||||
remote_titles = ["МФЦ \"Лунная поляна\" (1704.70)", "МФЦ \"Лунная поляна\" (1704.70)", "Операторская нижней канатной дороги 1 (120104)", "Операторская нижней канатной дороги 2.1 (120204)", "Центр управления СИС (120609)", "Операторская нижняя канатной дороги 3 (120304)", "Операторская нижняя канатной дороги 4 (110104)" ]
|
||||
remote_crosses = ["RTP3-MFC-ODF1", "RTP3-MFC-ODF2", "RTP3-NKD1-ODF", "RTP3-NKD21-ODF", "RTP3-SIS-ODF", "RTP3-NKD3-ODF", "RTP3-NKD4-ODF" ]
|
||||
num_fibers = [48, 48, 32, 32, 32, 32, 32]
|
||||
optical_lines = ["RTP3-MFC-OL1", "RTP3-MFC-OL2", "RTP3-NKD1-OL", "RTP3-NKD21-OL", "RTP3-SIS-OL", "RTP3-NKD3-OL", "RTP3-NKD4-OL"]
|
||||
|
|
@ -6,4 +6,6 @@ title_block = { STR2 = "Сеть передачи данных КСБ", ST = "Р
|
|||
[[drawings]]
|
||||
place = "powerin"
|
||||
document_name = "Схема компоновки устройства ввода электропитания"
|
||||
template = "Шаблон Схема компоновки устройства ввода электропитания СПД r13.dxf"
|
||||
template = "Шаблон Схема компоновки устройства ввода электропитания СПД r13.dxf"
|
||||
[drawings.values]
|
||||
STAGE_TITUL = "*"
|
||||
|
|
|
|||
|
|
@ -407,34 +407,7 @@ LOCAL_CROSS_6 = "NKD4-RTP3-ODF"
|
|||
LOCAL_CROSS_7 = "SIS-RTP3-ODF"
|
||||
LOCAL_ROOM_1 = "Помещение связи и телемеханики (бн)"
|
||||
LOCAL_TITUL_1 = "РТП-3 (60)"
|
||||
STAGE_TITUL = "110900"
|
||||
DRAW_TITUL = "60"
|
||||
CONNECT_RACK = "-"
|
||||
CONNECT_QF = "-"
|
||||
PRIM_2_1 = ""
|
||||
PRIM_2_2 = "Примечание 2"
|
||||
PRIM_D = "СПД КСБ"
|
||||
PRIM_D_C = "КСБ;"
|
||||
PRIM_3 = "3. Номиналы автоматических выключателей и предохранителей определяются производителем ИБП в соответствии с указанными мощностями нагрузки;"
|
||||
PRIM_4 = "4. Емкость АКБ определяется производителем ИБП в соответствии с указанными мощностями нагрузки и обеспечивает автономную работу оборудования в течение 60 минут."
|
||||
|
||||
[[drawings]]
|
||||
place = "RTP3"
|
||||
template = "Шаблон Схема электропитания и заземления шкафа - РТП3 r18.dxf"
|
||||
[drawings.values]
|
||||
PLACE = "RTP3"
|
||||
DISC_NAME = "DISC_NAME"
|
||||
LOCAL_RACK = "ШСС"
|
||||
LOCAL_CROSS_1 = "MFC-RTP3-ODF1"
|
||||
LOCAL_CROSS_2 = "MFC-RTP3-ODF2"
|
||||
LOCAL_CROSS_3 = "NKD1-RTP3-ODF"
|
||||
LOCAL_CROSS_4 = "NKD21-RTP3-ODF"
|
||||
LOCAL_CROSS_5 = "NKD3-RTP3-ODF"
|
||||
LOCAL_CROSS_6 = "NKD4-RTP3-ODF"
|
||||
LOCAL_CROSS_7 = "SIS-RTP3-ODF"
|
||||
LOCAL_ROOM_1 = "Помещение связи и телемеханики (бн)"
|
||||
LOCAL_TITUL_1 = "РТП-3 (60)"
|
||||
STAGE_TITUL = "121500"
|
||||
STAGE_TITUL = "*"
|
||||
DRAW_TITUL = "60"
|
||||
CONNECT_RACK = "-"
|
||||
CONNECT_QF = "-"
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ template = "Шаблон Схема соединений принципиаль
|
|||
LOCAL_RACK = "ШСС"
|
||||
LOCAL_ROOM_1 = "Помещение связи и телемеханики (бн)"
|
||||
LOCAL_TITUL_1 = "РТП-3 (60)"
|
||||
STAGE_TITUL = "110900"
|
||||
STAGE_TITUL = "*"
|
||||
DRAW_TITUL = "60"
|
||||
SWITCH_1 = "RTP3-T-DSW1"
|
||||
SWITCH_2 = "RTP3-T-DSW2"
|
||||
|
|
@ -377,20 +377,3 @@ remote_titles = ["МФЦ \"Лунная поляна\" (1704.70)", "МФЦ \"Л
|
|||
remote_crosses = ["RTP3-MFC-ODF1", "RTP3-MFC-ODF2", "RTP3-NKD1-ODF", "RTP3-NKD21-ODF", "RTP3-SIS-ODF", "RTP3-NKD3-ODF", "RTP3-NKD4-ODF" ]
|
||||
num_fibers = [48, 48, 32, 32, 32, 32, 32]
|
||||
optical_lines = ["RTP3-MFC-OL1", "RTP3-MFC-OL2", "RTP3-NKD1-OL", "RTP3-NKD21-OL", "RTP3-SIS-OL", "RTP3-NKD3-OL", "RTP3-NKD4-OL"]
|
||||
|
||||
[[drawings]]
|
||||
place = "RTP3"
|
||||
template = "Шаблон Схема соединений принципиальная СПД РТП-3 r20.dxf"
|
||||
[drawings.values]
|
||||
LOCAL_RACK = "ШСС"
|
||||
LOCAL_ROOM_1 = "Помещение связи и телемеханики (бн)"
|
||||
LOCAL_TITUL_1 = "РТП-3 (60)"
|
||||
STAGE_TITUL = "121500"
|
||||
DRAW_TITUL = "60"
|
||||
SWITCH_1 = "RTP3-T-DSW1"
|
||||
SWITCH_2 = "RTP3-T-DSW2"
|
||||
local_crosses = ["MFC-RTP3-ODF1", "MFC-RTP3-ODF2", "NKD1-RTP3-ODF", "NKD21-RTP3-ODF", "SIS-RTP3-ODF", "NKD3-RTP3-ODF", "NKD4-RTP3-ODF"]
|
||||
remote_titles = ["МФЦ \"Лунная поляна\" (1704.70)", "МФЦ \"Лунная поляна\" (1704.70)", "Операторская нижней канатной дороги 1 (120104)", "Операторская нижней канатной дороги 2.1 (120204)", "Центр управления СИС (120609)", "Операторская нижняя канатной дороги 3 (120304)", "Операторская нижняя канатной дороги 4 (110104)" ]
|
||||
remote_crosses = ["RTP3-MFC-ODF1", "RTP3-MFC-ODF2", "RTP3-NKD1-ODF", "RTP3-NKD21-ODF", "RTP3-SIS-ODF", "RTP3-NKD3-ODF", "RTP3-NKD4-ODF" ]
|
||||
num_fibers = [48, 48, 32, 32, 32, 32, 32]
|
||||
optical_lines = ["RTP3-MFC-OL1", "RTP3-MFC-OL2", "RTP3-NKD1-OL", "RTP3-NKD21-OL", "RTP3-SIS-OL", "RTP3-NKD3-OL", "RTP3-NKD4-OL"]
|
||||
|
|
@ -6,4 +6,6 @@ title_block = { STR2 = "Сеть передачи данных", ST = "Р", SH =
|
|||
[[drawings]]
|
||||
place = "powerin"
|
||||
document_name = "Схема компоновки устройства ввода электропитания"
|
||||
template = "Шаблон Схема компоновки устройства ввода электропитания СПД r13.dxf"
|
||||
template = "Шаблон Схема компоновки устройства ввода электропитания СПД r13.dxf"
|
||||
[drawings.values]
|
||||
STAGE_TITUL = "*"
|
||||
|
|
|
|||
Loading…
Reference in New Issue