Autodesk created a routine that creates a html page using a program language
called Lisp. Lisp is a programming extension to Autocad. This routine
saves your drawing as a dwf and then saves it as a dwf and then creates
a html file using the drawing filename just saved.
Lisp
Examples
Example of Lisp Html Page (Saveall3.lsp)
Download
the routine form the downloads page
or elsewhere on this site or from Autodesks site.
Load the routine as you would normally, usually via the Appload dialogue
box or via the command line. Enter "Saveall3" at the command
prompe to run the routine.
You are prompted for the Directory to save the DWG, DWF and HTML to.
The following section of the Lisp routine is the Lisp equivalient to the
HTML page above.
The only variable
used is the "filename". This code is editable if you are careful.
each line of HTML code is surrounded by the fllowing code (highlighted
in red)...
(write-line" <html code here>
" File)
The only variation
is when the Lisp routine is combining variables with HTML code (Text),
in this case you get ..
(write-line (strcat " <html "
My-variable "code here> ")
File)
So bearing this in mind you can edit this routine to generate a HTML
code page with you own customisation. View the HTML
code options page for details about the actual Whip tags.
See also Other
Lisp Routines for generating a directory of drawing into dwf
drawings and html pages.
|