You can use the
style="FONT-FAMILY: 'Courier New', monospace"><object> tag to embed
Autodesk Express Viewer and reference a drawing in an HTML file. This enables
users to view a drawing from the internet or an intranet. Note that Microsoft
Internet Explorer version 5.01 or later is required.
To embed Autodesk Express Viewer in an HTML file
Create an HTML file as you normally would.
Use the
style="FONT-FAMILY: 'Courier New', monospace">classid
parameter of
the <object>
tag to embed Autodesk Express Viewer in the file. The following are three
basic examples of using the
style="FONT-FAMILY: 'Courier New', monospace"><object> tag:
class=dropspot id=a5 href="javascript:kadovTextPopup(this)" x-tmp-setup="1"
x-use-popup="#POPU...
You can reference the Autodesk Express Viewer control from the Autodesk
website using the CODEBASE
parameter. When you use the
style="FONT-FAMILY: 'Courier New', monospace">CODEBASE parameter, the
user will be prompted to download or install the viewer if the viewer is not
already installed on the local machine. Use the
style="FONT-FAMILY: 'Courier New', monospace">"Src" property in the
<param> tag
to specify a drawing file to load:
style="FONT-FAMILY: 'Courier New', monospace">
<object id = "viewer"
classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
CODEBASE="http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab">
<PARAM NAME="Src"
VALUE="http://www.autodesk.com/global/expressviewer/installer/sample.dwf">
If you include a build version number on the
style="FONT-FAMILY: 'Courier New', monospace"><object> tag the user
will be prompted to install a new version of the viewer if the viewer installed
on the local hard drive is not at or above the specified build version
number.
style="FONT-FAMILY: 'Courier New', monospace"><object id = "viewer"
classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
CODEBASE="http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab#version=3,1,0,71">
<PARAM NAME="Src"
VALUE="http://www.autodesk.com/global/expressviewer/installer/sample.dwf">
</object>
In the above
example, if a user has Autodesk Express Viewer 3.1.0.70 or earlier, they will be
prompted to install a newer version. If the user has Autodesk Express Viewer
version 3.1.0.71 or later, they will not be prompted to install a newer
version.
style="FONT-WEIGHT: bold">Note: To find the build version number of the
currently installed Autodesk Express Viewer, choose About from the Help menu.
The build version number is displayed in the upper left corner. The format in
the About box uses decimal points instead of commas, for example, 3.1.0.71.
However, in the HTML tag, you must use commas in place of the decimal points as
shown in the example above.
If Autodesk Express Viewer is already installed on
the local machine, you only need to use the
style="FONT-FAMILY: 'Courier New', monospace">classid parameter. Use the
<param> tag to
specify a drawing file to load:
style="FONT-FAMILY: 'Courier New', monospace">
<object id =
"viewer"
classid =
"clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF">
style="FONT-FAMILY: 'Courier New', monospace">
<param name = "Src"
value="D:\Drawings\Dwfs\New.dwf">
</object>
Note: You must use the
classid
shown in the examples above when referencing Autodesk Express Viewer in an HTML
page. To use a relative path in the "Src" value, see
href="mk:@MSITStore:C:\Program%20Files\Autodesk\Autodesk%20Express%20Viewer\ENU\AdPageView.chm::/Us...
.
You can use the HTML
style="FONT-FAMILY: 'Courier New', monospace"><param>
class=dropspot> tag to set properties that customize the control in
your web page.
You can also include parameters by
appending them to the "Src" path or URL. Separate the path or URL from the
first parameter with a question mark. Separate subsequent parameters with an
ampersand.
style="FONT-WEIGHT: bold">Note: It is recommended
that you use the
style="FONT-FAMILY: 'Courier New', monospace"><param>
class=dropspot> tag to set properties instead of appending them to the URL or
path. There are situations where your browser may remove appended
parameters.
When setting the
height and width parameters in an HTML page, it is recommended that you use
static values instead of percentages. If you use percentages and then resize the
browser window, the file will be distorted when printed.
The Autodesk Express Viewer
Application Programming Interface (API)
The Autodesk Express Viewer Application Programming Interface (API) contains
several properties and methods that you can use in your web page. You can set
properties using the
style="FONT-FAMILY: 'Courier New', monospace"><param> tag or you
can use the API properties and methods with a scripted language such as Visual
Basic Script. You can also create applications with programming languages such
as C++ and Visual Basic using the API.
The following is a code example of an HTML page
using the Autodesk Express Viewer API properties:
style="FONT-WEIGHT: normal"
href="mk:@MSITStore:C:\Program%20Files\Autodesk\Autodesk%20Express%20V...
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"tomslattery" <I
href="mailto:tom@gesafety.com">tom@gesafety.com> wrote in message
href="news:f186d44.-1@WebX.maYIadrTaRb">news:f186d44.-1@WebX.maYIadrTaRb...
was wondering how you can put your dwf into a page and have it turn out like
this:
href="http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=3534407">http://usa.autodesk.com...
Thanks!
TPS