Author Topic: How likes the VBA cut file Windows?  (Read 1615 times)

0 Members and 1 Guest are viewing this topic.

hunterxyz

  • Guest
How likes the VBA cut file Windows?
« on: June 25, 2008, 07:08:14 PM »
When general operation,
may use the ctrl+tab cut file,
but utility program operation,
in VBA method like under code,
how but should compile in LISP?

I have compiled under the procedure,
But not good use,
requests fellow masters help to explain  Thanks!


Code: [Select]
Sub Example_ActivateMethod()   
  Dim drawing As AcadDocument
  For Each drawing In ThisDrawing.Application.Documents
      drawing.Activate
      MsgBox "Drawing " & drawing.Name & " is active."
      ZoomExtents     
  Next drawing 
End Sub

Code: [Select]
(setq $acad (vlax-get-acad-object))
(setq adtt (vla-get-activedocument $acad))
(setq docs (vla-get-documents $acad))

(vlax-for X docs
(VLA-ACTIVATE X)
(vla-ZoomExtents X)
(setq FName (vla-get-Name X))
(print FName)
)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: How likes the VBA cut file Windows?
« Reply #1 on: June 25, 2008, 11:17:38 PM »
I think it is next to impossible using lisp.

See this thread:
http://www.theswamp.org/index.php?topic=14881.msg181239#msg181239
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

VovKa

  • Water Moccasin
  • Posts: 1632
  • Ukraine
Re: How likes the VBA cut file Windows?
« Reply #2 on: June 26, 2008, 01:07:05 PM »
not a good way but it will work
Code: [Select]
(vlax-for X docs (vla-SendCommand X "._ZOOM _E "))
then press and hold Ctrl+Tab for a second :)