mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
1. A tool to annotate items in the hierarchical product structure was added. The tool is located under fixed label 0:1:9. It operates two basic entities: notes and annotations located under 0:1:9:1 and 0:1:9:2 hives correspondingly. A note is an attribute derived from base class XCAFDoc_Note that is attached to a separate label under the notes hive. An annotated item is represented by XCAFDoc_AssemblyItemRef attribute attached to a separate label under the annotated items hive. Notes are linked to annotated items by means of XCAFDoc_GraphNode attribute, where notes play parent roles and annotated items - child roles. 2. XCAFDoc_AssemblyItemRef defines a weak reference to a label with optional attribute GUID or sub-shape index. 3. A capability to store note/annotation labels in XCAFDoc_ViewTool was added. 4. XDE User guide was updated
22 lines
341 B
Plaintext
22 lines
341 B
Plaintext
|
|
# assembly of 2 boxes
|
|
box b1 1 1 1
|
|
box b2 2 2 2
|
|
btranslate b1 b1 2 2 2
|
|
btranslate b2 b2 -3 -3 -3
|
|
compound b1 b2 c
|
|
|
|
# new document
|
|
NewDocument D
|
|
|
|
# populate D
|
|
XAddShape D c
|
|
|
|
# box extries
|
|
set box_1 "0:1:1:2"
|
|
set box_2 "0:1:1:3"
|
|
|
|
# add int attribute to box_1
|
|
set guid "27927843-72A0-41ef-901D-621FAB01C27A"
|
|
SetInteger D ${box_1} 1965 ${guid}
|