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!
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
(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)
)