Author Topic: Zoom extents and Zoom Windows  (Read 6925 times)

0 Members and 1 Guest are viewing this topic.

FELIX

  • Bull Frog
  • Posts: 241
Zoom extents and Zoom Windows
« on: September 03, 2012, 10:04:58 PM »

Give the zoom Extents and Zoom windows in VB.net?
OK.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Zoom extents and Zoom Windows
« Reply #1 on: September 03, 2012, 10:19:42 PM »
See what you can make from this :
Code - C#: [Select]
  1.         public static void ZoomExtents()
  2.         {            
  3.                 // cast as  Autodesk.AutoCAD.Interop.AcadApplication
  4.                 ((AcadApplication)Application.AcadApplication).ZoomExtents();            
  5.         }

Code - C#: [Select]
  1.  
  2.    public static void ZoomWindow(Point3d lowerleft, Point3d upperRight)
  3.    {
  4.        ((AcadApplication)Application.AcadApplication).ZoomWindow(
  5.            lowerleft.ToArray(), upperRight.ToArray());
  6.    }
  7.  
« Last Edit: September 03, 2012, 10:38:05 PM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: Zoom extents and Zoom Windows
« Reply #2 on: September 04, 2012, 02:11:49 AM »
Hi,

You can have a look at the AutoCAD .NET Developper's Guide, There're examples without using COM :
http://exchange.autodesk.com/autocad/enu/online-help/WS1a9193826455f5ff2566ffd511ff6f8c7ca-4369.htm
Speaking English as a French Frog

franciscocsilva

  • Mosquito
  • Posts: 13
Re: Zoom extents and Zoom Windows
« Reply #3 on: September 28, 2012, 12:09:23 PM »
Já conseguiste este código?

FELIX

  • Bull Frog
  • Posts: 241
Re: Zoom extents and Zoom Windows
« Reply #4 on: October 05, 2012, 09:35:29 PM »
em VB.NET ainda não consegui executar.
OK.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Zoom extents and Zoom Windows
« Reply #5 on: October 05, 2012, 10:29:54 PM »
em VB.NET ainda não consegui executar.

[bing translation] in VB.NET still couldn't run.


Felix, what code did you try ??
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.