Jump to content

Recommended Posts

Posted

Dear All, I have a little issue with layouts.

I have a drawing with several layouts, and I would like to have an item reference as per they are displayed on drawing, after final drawing of all layouts fixed, that of course will have effect on TabOrder property.

I'm searching for a VBA CODE, for example below code shown the situation of layouts taborder on attached drawing layouts sequence viewed.

Thank you

N_LT = ThisDrawing.Layouts.Count
ReDim VETTORE(N_LT, 2)
For N = 0 To N_LT - 1
    VETTORE(N, 1) = ThisDrawing.Layouts(N).TabOrder
    VETTORE(N, 2) = ThisDrawing.Layouts(N).Name
    Debug.Print N, VETTORE(N, 1), VETTORE(N, 2)
Next
Code result:

N        TabOrder   Layout Name

 0             8            A0
 1             13           A0-Verticale
 2             9            A0x1.5
 3             7            A1
 4             12           A1-Verticale
 5             6            A2
 6             11           A2-Verticale
 7             5            A3
 8             2            A3 (Legenda N.1)
 9             3            A3 (Legenda N.2)
 10            10           A3-Verticale
 11            4            A4
 12            1            A4 (Copertina)
 13            0            Model

Cattura.JPG

Posted

I have moved your thread to the .NET, ObjectARX & VBA Forum.

Posted

On iPad at moment but two ways to Get at layouts, tab order or actual order search here for goto.lsp should give answer. Or look at lee-Mac.com has both methods. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...