Save File Example
List of: Discussion Topic
Subjects: SAT Save and Restore
Contents: Kernel


The following simple example shows a SAT file with topology and geometry. The first three lines are the header, followed by the entity records, and finally the end marker. Optional sequence numbers were included.


Record lines "-0" and "-1" are explained in more detail following the full example to show exactly what each item is and where to locate that information in this manual.




Figure 9-2. Save File Example


400 0 1 0

11 Scheme AIDE 11 ACIS 4.0 NT 24 Mon Apr 12 13:59:03 1998

25.4 1e-06 1e-10

-0 body $1 $2 $-1 $3 #

-1 display_attribute-st-attrib $-1 $4 $-1 $0 1 #

-2 lump $-1 $-1 $5 $0 #

-3 transform $-1 1 0 0 0 0 -1 0 1 0 0 10 0 1 rotate no_reflect


no_shear #

-4 rgb_color-st-attrib $-1 $6 $1 $0 0 1 0 #

-5 shell $-1 $-1 $-1 $7 $-1 $2 #

-6 id_attribute-st-attrib $-1 $-1 $4 $0 1 #

-7 face $-1 $8 $9 $5 $-1 $10 forward single #

-8 face $-1 $11 $12 $5 $-1 $13 forward single #

-9 loop $-1 $14 $15 $7 #

-10 cone-surface $-1 0 0 0 0 0 1 10 0 0 1 I I 0 1 forward I I I I #

-11 face $-1 $-1 $16 $5 $-1 $17 forward single #

-12 loop $-1 $-1 $18 $8 #

-13 plane-surface $-1 0 0 -10 0 0 -1 -1 0 0 forward_v I I I I #

-14 loop $-1 $-1 $19 $7 #

-15 coedge $-1 $15 $15 $18 $20 1 $9 $-1 #

-16 loop $-1 $-1 $21 $11 #

-17 plane-surface $-1 0 0 10 0 0 1 1 0 0 forward_v I I I I #

-18 coedge $-1 $18 $18 $15 $20 0 $12 $-1 #

-19 coedge $-1 $19 $19 $21 $22 1 $14 $-1 #

-20 edge $-1 $23 $23 $18 $24 forward #


-21 coedge $-1 $21 $21 $19 $22 0 $16 $-1 #

-22 edge $-1 $25 $25 $21 $26 forward #

-23 vertex $-1 $20 $27 #

-24 ellipse-curve $-1 0 0 -10 0 0 -1 10 0 0 1 I I #

-25 vertex $-1 $22 $28 #

-26 ellipse-curve $-1 0 0 10 0 0 1 10 0 0 1 I I #

-27 point $-1 10 0 -10 #

-28 point $-1 10 0 10 #

End-of-ACIS-data


The first three lines of the file are the header. The fourth line, shown below, describes a body entity.


-0 body $1 $2 $-1 $3 #




Figure 9-3. Body Entity

Code Output Class Description
-0
Sequence number 0; first data record of file.
body BODY ident - (BODY derived from ENTITY)
$1 ENTITY ENTITY data - Pointer to its attribute
$2 BODY BODY data - Pointer to body's lump
$-1 BODY BODY data - Pointer to body's wire
$3 BODY BODY data - Pointer to body's transform
#
Terminator



The fifth line of the file, shown below, describes a display attribute entity.


-1 display_attribute-st-attrib $-1 $4 $-1 $0 1 #




Figure 9-4. Display Attribute Entity

Code Output Class Description
-1 ENTITY (implied) Sequence number 1; address for attribute pointer called out in sequence number 0. The double quotation marks (") are meant to signify that ENTITY is implied.
display_attribute- DISPLAY_ATTRIB save identifier for the DISPLAY_ATTRIB
st- ATTRIB_ST save identifier for the ATTRIB_ST class
attrib ATTRIBUTE save identifier for the ATTRIBUTE class
$-1 ENTITY ENTITY data - Attribute $rec_num
$4 ATTRIBUTE Pointer to the next attribute
$-1 ATTRIBUTE Pointer to the previous attribute
$0 ATTRIBUTE Pointer to owner
1 DISPLAY_ATTRIB Display revision
#
Terminator

PDF/KERN/09SAT.PDF
HTM/DATA/KERN/KERN/09SAT/0023.HTM