What is Autodesk Freewheel?
Autodesk Freewheel is an Ajax (Asynchronous JavaScript and XML) based web service/application built to provide CAD model viewing, printing and collaboration, through the dynamic rendering of DWF file data and graphics information. You can think of Freewheel as a set of componentized Web Services and JavaScript frameworks. Together these components make up the Interactive Ajax DWF Viewer.
What can you do with Freewheel?
- Embed it into your website
Display interactive 2D and 3D CAD designs without requiring your visitors to download special viewing software.
-
To allow people to view your DWF file inside your own web page, you first need to make your DWF file available publicly on the internet (it must have a public URL so that the Autodesk server can retrieve the DWF file and render it). Then all you need to do is add the following to your HTML source code in the appropriate location (depending upon where in your web page you want the viewing service to appear):
<iframe scrolling="no" width="800" height="600"
src="http://freewheel.autodesk.com/dwf.aspx?path=http://freewheel.autodesk.com/sample/Hotel5.dwf">
</iframe>
You can edit the red text to specify your desired viewer window size and DWF URL respectively.
More Details:
This is an interactive viewer including a GUI. You can place hyperlinks on objects on your own HTML page and jump to the full-screen viewer from them. Alternatively you can embed this viewer service directly in your own HTML pages using an <IFRAME> or <FRAME> tag (as shown above). This page takes the following parameters:
- &path=<string> An URL path to a DWF to be viewed.
- &sec=<integer> An integer from 1 to "N" for the section number (also known as page number) to view. Default: 1
When viewing 2D sections, the following additional parameters are available:
- &cx=<float> A number from 0.0 to 1.0 for the view's Center in X. Default: 0.5
- &cy=<float> A number from 0.0 to 1.0 for the view's Center in Y. Default: 0.5
- &scale=<float> A number in the range 1.0 to 16384.0 for the view's Scale. Default: 1.0
When viewing 3D sections, the following additional parameters are available:
- &px=<float> A number setting the camera positions X value.
- &py=<float> A number setting the camera positions Y value.
- &pz=<float> A number setting the camera positions Z value.
- &tx=<float> A number setting the camera target positions X value.
- &ty=<float> A number setting the camera target positions Y value.
- &tz=<float> A number setting the camera target positions Z value.
- &ux=<float> A number setting the camera up positions X value.
- &uy=<float> A number setting the camera up positions Y value.
- &uz=<float> A number setting the camera up positions Z value.
- &fy=<float> A number setting the camera focus X value.
- &fz=<float> A number setting the camera focus Y value.
- &proj=<string> A string setting the camera's projection value (proj or orth).
- &q=<string> A string setting the image quality, valid parameters are "low" or "high".
If the above values are not specified when requesting a image, the default camera position within the 3D section will be used.
- Leverage the CAD model graphics rendering Service
Quickly convert DWF files to images. Use the "Render-this-link" bookmarklet to convert all DWF files on your web page to thumbnail preview images (rendered on the fly).
-
This is web service which renders DWF file graphics sections as raster images dynamically on the fly. This service is used for displaying and printing the graphical sections of a DWF file. This is a raw rendering service that provides no GUI. The service accepts an URL to a DWF, view parameters, and returns a rendered image file. You can build your own interactive or multi-platform viewer from this service. The "dwf.aspx" service above uses this service internally to produce the various views.
The DWF-to-image rendering service takes the same parameters as the interactive service, along with the following additions:
- &width=<integer> The horizontal size of the image to produce (in pixels).
- &height=<integer> The vertical size of the image to produce (in pixels).
The width and height parameters must be evenly divisible by 2.
- Utilize the CAD model meta-data rendering service
Render certain types of meta data within the DWF file to XML. Use methods on the service to determine the number of pages in a DWF, the page names, and other information.
-
The DWFRender.asmx web service (via SOAP protocol) returns information about a specified DWF, rendering certain types of meta data within the DWF file to XML. You can use methods on the service to determine the number of pages in a DWF, the page names, and other information. The following URL provides additional SOAP interface and WSDL documentation: http://freewheel.autodesk.com/dwfRender.asmx
There you will find the following SOAP methods:
defaultCamera - Gets the Default Camera for 3D DWF files
load - Displays DWF section information and metadata
pdkVersion - Gets the current PDK Toolkit version used by the DWFRender.asmx web service
sectionCount - Returns the entire number of sections within the DWF file
Examples are provided as part of the documentation: http://freewheel.autodesk.com/dwfRender.asmx
- Sample Code: Add thumbnail images to DWF links
Instead of using plain text to link to DWF files, use this javascript code snippet to automatically generate thumbnail images (which, when clicked, will open the design in the Freewheel viewer). Just add this code to your catalog pages and you'll immediately get rendered images. Learn more.
-
This simple Autodesk Freewheel javascript code snippet automatically renders thumbnail images of DWF designs on your web page.
<!-- COPY & PASTE THE CODE BELOW AT THE END OF YOUR HTML BODY, JUST ABOVE THE END