Viewport Ids not set when accessing Database

GeeHaa
Collaborator

Viewport Ids not set when accessing Database

GeeHaa
Collaborator
Collaborator

Hi

I'm trying to write a lisp routine that opens the DATABASES of  drawings and accesses the viewports in each layout to get the modelspace coordinates of what the viewports are looking at, so I was looking at the groupcode 69 and avoiding the 1 values but all the 69 groupcodes have a value of 0 since I can't set a layout active to initiate the Ids. It seems I can get the Viewport modelspace coordinates alright, but I can't determine which viewport ID would be set to 1 to avoid it. Does anyone know another way around this?

 

Thanks in Advance.

0 Likes
Reply
Accepted solutions (1)
223 Views
3 Replies
Replies (3)

paullimapa
Mentor
Mentor
Accepted solution
0 Likes

GeeHaa
Collaborator
Collaborator

Thanks for the quick reply. After reading the post I've come to the conclusion that the one to discard is the one that when scaled is bigger than the title block. therefore bigger than the viewport I need. Not perfect but it will do for now.

Thanks.

 

0 Likes

paullimapa
Mentor
Mentor

Glad you came up with a workaround…cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes