Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inserting a dwf into web page

1 REPLY 1
Reply
Message 1 of 2
Anonymous
341 Views, 1 Reply

Inserting a dwf into web page

I was wondering how you can put your dwf into a page and have it turn out like this:

http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=3534407

Thanks!
TPS
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

From the Express Viewer Help:

 


Embedding Autodesk Express Viewer in an HTML File


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




  1. Create an HTML file as you normally would.



  2. 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...






    style="DISPLAY: none; POSITION: relative">

    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">



href="javascript:kadovTextPopup(this)" x-tmp-setup="1"
x-use-popup="#POPUP189943639" x-popup-type=...




style="DISPLAY: none; POSITION: relative">

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.



href="javascript:kadovTextPopup(this)" x-tmp-setup="1"
x-use-popup="#POPUP99722925" x-popup-type="...




style="DISPLAY: none; POSITION: relative">

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...
.




  1. 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.

For
documentation on the Autodesk Express Viewer API, go to
href="http://www.autodesk.com/viewers">www.autodesk.com/viewers
, click
Download and then click Express Viewer Developer Resources at the bottom of the
page.

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">
I
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services