←  Technical Questions

nanoCAD forum

»

VBScript cycling over the open drawing wit...

Flaminio's Photo Flaminio 31 Mar 2023

Hi, i'm not able to make active a different drawing (VBScript runs in Nanocad 5)


n=ThisDrawing.Application.Documents.Count 'this formula works, collect the number of open documents in this moment

U.Prompt "open documents number: " & n

Dim doc

Set doc = Application.Documents.Item (1) 'This make error

Do you know how i can get a specific open document, to make it active or so? Thanks
Quote