Humm you must have a lot of Tabs.
I would use bread crumbs.
Save xdata pointer to the tab number or name.
sometimes it is 20-30 layout. maybe not too much but dwg is heavy with a lot of xrefs. skipping between layout is a pain.
xdata will work but we need additional tool for that. what if someone move viewport to another layout ?
i think the only option is:
- read all vports
- create outlines for every vports
- then user select point (in model) and program will check if point is inside at any border (layout)
kruuger