Are there any code samples available?
Yes. The DWF Technical Evangelist Team has some samples that are provided on
an as-is basis. These samples sometimes take advantage of undocumented API
calls that may change in future versions.
Create Your Own Application
a..
https://projectpoint.buzzsaw.com/constructionmanagement/public/VectorEditor.zip?public This C++ sample is an MFC application that allows a user to sketch simple
primitives and then save a DWF file.
Embed DWF Files into Applications
a..
http://projectpoint.buzzsaw.com/constructionmanagement/public/3D_API.zip?public This JavaScript sample shows how a walk-through can be accomplished for a
3D model. The 3D API is not officially supported, because the API will
change in an upcoming release.
b..
http://projectpoint.buzzsaw.com/constructionmanagement/public/fullview.html?public This JavaScript sample shows how to load a DWF in full view mode with an
URL.
c..
https://projectpoint.buzzsaw.com/constructionmanagement/public/JavaScriptTransformPoint.zip?public This JavaScript sample shows how to transform points from screen to
drawing coordinates.
d..
http://projectpoint.buzzsaw.com/constructionmanagement/public/Object%20Highlight%20Sample.zip?public This JavaScript sample shows how multiple objects can be selected and
highlighted.
e..
http://projectpoint.buzzsaw.com/constructionmanagement/public/Viewer_API_test.zip?public This VBscript and JavaScript sample shows some of the basic functions of
working with the viewer API.
f..
http://projectpoint.buzzsaw.com/constructionmanagement/public/zoomtofit.html?public This JavaScript sample shows how to load a DWF in an HTML file with an
automatic zoom to fit
Integrate Our ActiveX Controls
VB
a..
https://projectpoint.buzzsaw.com/constructionmanagement/BatchPrinter/DWF%20Batch%20Printer%201.8.zip?public This sample includes the Visual Basic source code for a batch printing
application.
b..
https://projectpoint.buzzsaw.com/constructionmanagement/public/PrintUtil.zip?public This DLL facilitates the printing process from a VB application.
c..
http://projectpoint.buzzsaw.com/constructionmanagement/public/VB6%20SimplePrint%20PrintEX%20example.zip?public This Visual Basic sample shows how to interface to the Print function of
the Autodesk DWF Viewer.
d..
http://projectpoint.buzzsaw.com/constructionmanagement/public/TransformPoint.zip?public This Visual Basic application shows how to transform points from screen to
drawing coordinates.
C++
a..
http://projectpoint.buzzsaw.com/client/constructionmanagement/public/DetectDWFViewer.zip?public This C++ sample code shows how to detect the presence of Autodesk DWF
Viewer or Autodesk DWF Composer.
wrote in message news:5012040@discussion.autodesk.com...
Hi isotech,
is it possible to have a list of all the implemented commands? For example
does exist a command to open the "Navigator" by code?