Examples and References > Text Version of a Basic .3d Document File
  
Text Version of a Basic .3d Document File
The code extract shown below is the text version of a Demo.3d file found in an PTC ALD application (note that the actual text content has been cut down for the purposes of brevity). This list of macros will apply tags and content, layout and formatting information when the document is opened.
Note how the file format macros (prefixed "fd") are supplemented by other macros, PIs and keywords to give the properties required for each task:
fdb 9.0.215/W

fdpref
$compstyle 1,99999999,0,0,0<>
$xmlparser 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0<>

fdt "body",1,"",0,""
$<?th=14pt><?tlb=1.2*h><?thye="mine"><?thye2="mine"><?0,1,2.5,0,
2.5,1,0,0,1.23$03,0,5>\

fdt "subpara1",1,"",0,""
$<?th=14pt><?tlb=1.2*h><?0,0,5,0,5,1,0,1.2303,1.2303,0,5>\

fdt "subpara2",1,"",0,""
$<?th=14pt><?tlb=1.2*h><?0,0,10,0,10,1,0,1.2303,1.2303,0,5>\

fdt "pagehead",1,"",0,""
$<?tlb=1.2*h><?th=24pt><?0,0,0,0,0,1,0,0,1.2303,0,5>\

fdt "parahead",1,"",0,""
$<?tlb=1.2*h><?th=6.327><?0,0,0,0,0,1,0,2.4605,4,0,5>\

fdt "drop",1,"",0,""
$<?th=14pt><?tlb=1.2*h><?4,2,10,0,0,1,0,0,4,0,5>\

fdt "bodyrule",1,"",0,""
$<?th=14pt><tlb=1.2*h><?1,1,0,20,0,1,0,0,4,0,5;2r15,0,0,0,1,
"black",5,"none">$\

fdt "indent",1,"",0,""
$<?th=14pt><?tlb=1.2*h><?0,1,0,20,0,1,0,0,4,0,5>\

fdt "outdent",1,"",0,""
$<?th=14pt><?tlb=1.2*h><?1,1,0,20,0,1,0,0,4,0,5>\

fdt "box",7,"",0,""
$<?up><?tf="Pi3"><£#38>;<?down>\

fdt "bullet_box",1,"",0,""
$<?th=14pt><?tlb=1.2*h><?6,1,2.5,10,2.5,1,0,0,1.2303,0,5;
s"box">\

fdt "strm0",0,"",0,""
$<pagehead>Demo File<>
$<body>Welcome to ALD. This file contains a few paragraphs for you \
$to experiment with and some instructions on how to change \
$paragraph styles.<>
<body>In the column that is situated to the left of this \
$<?tpbalmult=1> work area you will see listed 9 paragraph styles \
$ which you can use to$change the style of a paragraph. For \
$example, this paragraph is in the `body' style. As you can see \
$ it is a straight block of text with no indents or margins. <>
$\

fdt "mine",8,"",0,""
$experiment<>
$\

fdt "snr",20,"",0,""
$/paragraph/sentence/tgci<>
$/\10\/\147\/tgci<>
$/?th=14pt/?th=12pt/tgciaqz\

fdt "_s_h_o_w_1_",38,"",0,"";;4
$\

fgo "gr1",3,"","",0
$v,2.00<>
$e<>

ffontmap

ffontuse
$"PI chars 3","Pi3"<>

fdi 0
$stream "strm0"<>
$form 0<>
$psrc 1<>
$ ati_fi 0<>
$ ats_src "strm0",1543<>
$ ati_nums 0 0 0 0 0 0 1;; 1<>
$ ati_cl -1 1464<>
$form 3<>
$ fmn_hyex "mine"<>
$ fmn_hyex2 "mine"<>
$ fmq_hw 14pt,1*h,0,0,1.2*h<>
$ fmq_pm1 0,1.2303,0<>
$ fmq_pm2 2.5,2.5,0,0,3000<>
$psrc 2<>
$ atc_misc 3,0,255,0,0,0<>
$ ati_fi 0,3,3<>
$ ats_src "strm0",4023<>
$ ati_pl 6<>
$ ati_nums 0 0 0 0 0 0 2;; 2<>
$ ati_cl -1 3571<>
$psrc 3<>
$ atc_misc 2,0,255,0,0,0<>
$ ati_fi 0,0<>
$ ats_src "strm0",-1,2147483647<>
$ ati_nums 0 0 0 0 0 0 3;; 3<>
$ ati_cl -1 7319<>
$psrc 4<>
$ atc_misc 2,0,255,0,0,0<>
$ ati_fi 0,0<>
$ ats_src "strm0",-1,2147483647<>
$ ati_nums 0 0 0 0 0 0 4;; 4<>
$ ati_cl -1 7319<>
$psrc 5<>
$ atc_misc 2,0,255,0,0,0<>
$ ati_fi 0,0<>
$ ats_src "strm0",-1,2147483647<>
$ ati_nums 0 0 0 0 0 0 5;; 5<>
$ ati_cl -1 7319<>

fdsr "strm0",1
$stopref_item 0<>
$ atc_misc 0,0,255,0,0,0<>
$ ats_src "strm0",1543<>

fdsr "strm0",2
$stopref_item 0<>
$ atc_misc 0,0,255,0,0,0<>
$ ats_src "strm0",4023<>
$ ati_pl 6<>

fdsr "strm0",3
$stopref_item 0<>
$ atc_misc 0,0,255,0,0,0<>
$ ats_src "strm0",-1,2147483647<>

fdsr "strm0",4
$stopref_item 0<>
$ atc_misc 0,0,255,0,0,0<>
$ ats_src "strm0",-1,2147483647<>

fdsr "strm0",5
$stopref_item 0<>
$ atc_misc 0,0,255,0,0,0<>
$ ats_src "strm0",-1,2147483647<>

fdp "psty1"
$dim 210,297<>
$frame 0,0,210,297<>
$text "strm0",25.4,25.4,25.4,25.4,0,0<>
$column 25.4,184.6<>
$pageclip 0<>
$objects "gr1",0,0,0,0,0,0<>
$ht2 "Black",0, 100,100,100,100, 100,100,100, 0,0<>
$areas 391.9504,0<>

fdp "psty4"
$dim 210,297<>
$frame 0,0,210,297<>
$text "strm0",25.4,25.4,25.4,25.4,0,0<>
$column 25.4,184.6<>
$pageclip 0<>
$ht2 "Black",0, 100,100,100,100, 100,100,100, 0,0<>
$areas 391.9504,391.9504<>

fdp "psty5"
$dim 210,297<>
$frame 0,0,210,297<>
$text "strm0",25.4,25.4,25.4,25.4,0,0<>
$column 25.4,184.6<>
$pageclip 0<>
$ht2 "Black",0, 100,100,100,100, 100,100,100, 0,0<>
$areas 391.9504,301.0472<>

fdd "demo"
$1x "psty1";1,1<>
$1x "psty1";1,2<>
$1x "psty5";1,3<>
$1x "psty4";1,4<>
$1x "psty4";1,5<>

fdpref
$s_level 1599<>
$p_level 7<>
$grid 1,1,1,2<>
$pgxy 1,1,6,0,0<>
$numbers 1,0<>
$units 2,2,5,0<>
$rot_snap 15,0<>
$ruler 0,2,2,0,0<>
$col_snap 1<>
$line_snap 0<>
$tagdbg 1<>
$perl_mode 2<>
$edbar -20,0,1,0,1,3,6500,0,0,1,0<>
$curtrack 0<>
$tlscroll 1<>
$bakfile 1,1,0<>
$longfontnames 0<>
$fontuse_onfmt 0<>
$font_precision 0<>
$embedded_fonts 0<>
$sgml_advsets "C:/Program Files/Arbortext/ALD-D/SGML/entities/
catalog",0,"",1,1,"sgml_output",1,0,0,1,0,0,0,1789<>
$sgml_legsets "","","","",0,0,0,0,0,0,0<>
$sgml_docsets 2,1,0,0,0,0,1,"","","","",3325,0,0<>
$fmtlog 0,"tfmtlog",0,0,1;0,"tfmtfat","tfmtnon","tfmtwarn",
"tfmtinf",0<>
$objdet 0,15,7,3,1,2,4,5,16,9,17,8,10,11,12,14,6,13,18<>
$framedet 0,1,2,3,4,24,13,5,6,23,7,8,9,10,11,12,14,15,16,17,22,
27,28,18,19,20,21,25,26,32,33<>
$textdet 0,1,47,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,
22,23,24,25,26,27,28,29,30,31,32,34,35,36,37,38,39,40<>
$rev_info 0,0,0,0,0,0,0,0,0<>
$colourbars 4,"",1,10000,30000<>
$showmode 1<>
$profile 0,"tproflog",0,0,0<>

fde