Discussion Groups

All Discussion Groups » Autodesk DWF Viewer

Thread: Zoom Window in VB6 App


Permlink Replies: 7 - Last Post: Sep 26, 2009 12:00 PM Last Post By: dlghksgh2013 Threads: [ Previous | Next ]
RickC

Posts: 6
Registered: 06/17/04
Zoom Window in VB6 App
Posted: Jul 12, 2004 3:41 PM
  Click to reply to this thread Reply
I'm trying to add some more functionality to a DWF Viewer I
came up with, written in VB6, and was wondering what code
I'd add to let the user do a Zoom Window. Is this possible?
If anyone could help me that would be great. Thanks in advance!
isotech

Posts: 86
Registered: 12/19/03
Re: Zoom Window in VB6 App
Posted: Jul 13, 2004 2:46 PM   in response to: RickC in response to: RickC
  Click to reply to this thread Reply
Hi,

Try these routines.....

Private Sub Command2_Click()
Call CExpressViewerControl1.ExecuteCommand("Print")
End Sub

Private Sub Command3_Click()
Call CExpressViewerControl1.ExecuteCommand("FitToWindow")
End Sub

Private Sub Command4_Click()
Call CExpressViewerControl1.ExecuteCommand"ZoomRect")
End Sub

Private Sub Command5_Click()
Call CExpressViewerControl1.ExecuteCommand("Zoom")
End Sub

Private Sub Command6_Click()
Call CExpressViewerControl1.ExecuteCommand("Pan")
End Sub

Regards

IsoTech
RickC

Posts: 6
Registered: 06/17/04
Re: Zoom Window in VB6 App
Posted: Jul 13, 2004 2:52 PM   in response to: isotech in response to: isotech
  Click to reply to this thread Reply
Thanks isotech. Worked great!
marchio73

Posts: 11
Registered: 11/14/05
Re: Zoom Window in VB6 App
Posted: Nov 14, 2005 1:01 PM   in response to: isotech in response to: isotech
  Click to reply to this thread Reply
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?
Scott Sheppard ...
Re: Zoom Window in VB6 App
Posted: Nov 14, 2005 2:13 PM   in response to: marchio73 in response to: marchio73
  Click to reply to this thread Reply
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?
marchio73

Posts: 11
Registered: 11/14/05
Re: Zoom Window in VB6 App
Posted: Nov 14, 2005 3:16 PM   in response to: Scott Sheppard ... in response to: Scott Sheppard ...
  Click to reply to this thread Reply
I got it!

Thanxxx
frolbel

Posts: 1
Registered: 06/15/09
Re: Zoom Window in VB6 App
Posted: Jul 13, 2009 8:25 AM   in response to: Scott Sheppard ... in response to: Scott Sheppard ...
  Click to reply to this thread Reply
Hi! It's impossible to look code examples. How to get access on <https://projectpoint.buzzsaw.com>.
dlghksgh2013

Posts: 2
Registered: 09/26/09
Re: Zoom Window in VB6 App
Posted: Sep 26, 2009 12:00 PM   in response to: RickC in response to: RickC
  Click to reply to this thread Reply
hellow motto