DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

How regenerate all and fit to windows in vb6

Started by casf2012, October 15, 2014, 02:31:25 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

casf2012

Hi... :D

Can anyone help me, i need to know if there is a way to regenerate all draw using vb6 and the same to fit to window

thanks in advance
best regards

prl

#1
If you don't have it, the latest OLE Programmer's reference is OLDEDC17.HLP.  Follow the Class Hierarchy to the Views Class.  The Views Class has two methods (or procedures, whatever you call them in VB) for this:

DcDoc.RegenerateAll
DcDoc.FitToAllWindows

Here is the link for the hlp file.
http://www.fyrissia.com/drolltroll/dcdevkit/oledc17.zip  (reference: http://forum.designcad.com/index.php?topic=1537.0)


To view *.hlp files in Windows version Vista and higher:  http://forum.designcad.com/index.php?topic=5508.0


Juergen

Try this:

   DcView.Regenerate()
        DcView.Refresh()
   ' use both !
      ----------------------------
      
   DcViews = DcDoc.Views
        DcView = DcViews.Item(1) ' get the first view in the document
        DcView.ZoomWindow()
      
You may consider to use Visual Studio Express 2013. It's free in case you register as MS developer.
I suggest to go with your questions to http://forum.designcad.com/index.php?board=9.0 .

Kind regards,

Juergen

casf2012

thanks for the help

best regards,
Carlos Ferreira