#usage "Export an HTML partlist\n" "

" "Generates an HTML file of a board's partlist for publishing on an intranet." "

" "Author: Sean D. Alcorn (SYD)
Extended by support@cadsoft.de
" // THIS PROGRAM IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED if (board) board(B) { string fileName = dlgFileSave("Save File", filesetext(B.name, ".htm"), "*.htm"); if (fileName == "") exit(0); output(fileName) { printf("\n\n"); printf("\n"); printf("\n"); printf("\n"); printf("Parts Listing for %s\n", B.name); printf("\n\n"); printf("\n\n"); printf("

Parts List for

\n\n"); printf("

%s

\n", B.name); printf("
\n\n"); printf("
\n"); printf("

Parts Listing

\n"); printf("
\n"); printf("
\n\n"); printf("\n"); printf(" \n"); printf(" \n"); printf(" \n"); printf(" \n"); printf(" \n"); printf(" \n"); B.elements(E) { printf(" \n"); printf("\n", E.name); printf("\n", E.value); printf("\n", E.package.name); printf("\n", E.package.library); printf(" \n"); } printf("
PartValuePackageLibrary
%s%s%s%s
\n"); printf("
\n\n"); printf("

\n\n"); printf("
\n"); printf("

Generated by PART2HTM v0.4 by Sean D. Alcorn
\n"); printf(" © 1997
Avion\n"); printf(" International Co. Ltd.
\n"); printf(" Bangkok • Sydney • Taipei

\n"); printf("
\n"); printf("\n"); printf(""); } }