1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
snn 714fb6b516 0032954: Tool for applying transformation to OCAF document
New XCAFDoc classes:
- XCAFDoc_AssemblyIterator: iterator in depth along the assembly tree
- XCAFDoc_AssemblyGraph: assembly graph with iterator
- XCAFDoc_AssemblyTool: provides generic methods for traversing assembly tree and graph

A method for re-scaling (sub-)assembly geometry is added to XCAFDoc_Editor.

New DRAW commands:
- XDumpAssemblyTree: iterates through the assembly tree in depth up to the specified level, if any
- XDumpAssemblyGraph: prints assembly graph structure
- XDumpNomenclature: prints number of (sub-)assembly/part instances
- XRescaleGeometry: applies geometrical scale to (sub-)assembly
2022-06-10 18:56:40 +03:00

74 lines
2.1 KiB
Plaintext

ReadStep D_First [locate_data_file "as1-oc-214-mat.stp"]
set TRAVERSE_ASSEMBLY_TREE_ARGS "-names"
set TRAVERSE_ASSEMBLY_TREE_RESULT "as1
as1/rod-assembly_1
as1/rod-assembly_1/nut_1
as1/rod-assembly_1/nut_2
as1/rod-assembly_1/rod_1
as1/l-bracket-assembly_1
as1/l-bracket-assembly_1/nut-bolt-assembly_1
as1/l-bracket-assembly_1/nut-bolt-assembly_1/bolt_1
as1/l-bracket-assembly_1/nut-bolt-assembly_1/nut_3
as1/l-bracket-assembly_1/nut-bolt-assembly_2
as1/l-bracket-assembly_1/nut-bolt-assembly_2/bolt_1
as1/l-bracket-assembly_1/nut-bolt-assembly_2/nut_3
as1/l-bracket-assembly_1/nut-bolt-assembly_3
as1/l-bracket-assembly_1/nut-bolt-assembly_3/bolt_1
as1/l-bracket-assembly_1/nut-bolt-assembly_3/nut_3
as1/l-bracket-assembly_1/l-bracket_1
as1/plate_1
as1/l-bracket-assembly_2
as1/l-bracket-assembly_2/nut-bolt-assembly_1
as1/l-bracket-assembly_2/nut-bolt-assembly_1/bolt_1
as1/l-bracket-assembly_2/nut-bolt-assembly_1/nut_3
as1/l-bracket-assembly_2/nut-bolt-assembly_2
as1/l-bracket-assembly_2/nut-bolt-assembly_2/bolt_1
as1/l-bracket-assembly_2/nut-bolt-assembly_2/nut_3
as1/l-bracket-assembly_2/nut-bolt-assembly_3
as1/l-bracket-assembly_2/nut-bolt-assembly_3/bolt_1
as1/l-bracket-assembly_2/nut-bolt-assembly_3/nut_3
as1/l-bracket-assembly_2/l-bracket_1"
set TRAVERSE_ASSEMBLY_GRAPH_ARGS "-names"
set TRAVERSE_ASSEMBLY_GRAPH_RESULT "1 R 'as1' 2 9 20 22
2 O 'rod-assembly_1' 3
3 A 'rod-assembly' 4 6 7
4 O 'nut_1' 5
5 P 'nut'
6 O 'nut_2' 5
7 O 'rod_1' 8
8 P 'rod'
9 O 'l-bracket-assembly_1' 10
10 A 'l-bracket-assembly' 11 16 17 18
11 O 'nut-bolt-assembly_1' 12
12 A 'nut-bolt-assembly' 13 15
13 O 'bolt_1' 14
14 P 'bolt'
15 O 'nut_3' 5
16 O 'nut-bolt-assembly_2' 12
17 O 'nut-bolt-assembly_3' 12
18 O 'l-bracket_1' 19
19 P 'l-bracket'
20 O 'plate_1' 21
21 P 'plate'
22 O 'l-bracket-assembly_2' 10"
set ASSEMBLY_NOMENCLATURE_ARGS "-names"
set ASSEMBLY_NOMENCLATURE_RESULT "1 R 'as1' 1
3 A 'rod-assembly' 1
5 P 'nut' 8
8 P 'rod' 1
10 A 'l-bracket-assembly' 2
12 A 'nut-bolt-assembly' 6
14 P 'bolt' 6
19 P 'l-bracket' 2
21 P 'plate' 1"
set TypeOfFile ""
set AddToDocument ""
set CompareDocumentsMode "TRAVERSE_ASSEMBLY_TREE TRAVERSE_ASSEMBLY_GRAPH ASSEMBLY_NOMENCLATURE SKIP_CHECKVIEW"