Freezing layers in ViewPorts

Freezing layers in ViewPorts

Anonymous
Not applicable
195 Views
3 Replies
Message 1 of 4

Freezing layers in ViewPorts

Anonymous
Not applicable
I need a better way to freeze layers in viewports. Now I am reading the xdata from the viewport to get the information then adding the layer information into the array and writing it back to the viewport. This works 99% of the time but when it does not work the viewport won't let you freeze or thaw layers no way no how and most of the time throws you out of AutoCad. Is there anybody that has had succes doing this other ways.

Wayne
0 Likes
196 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Have a look at vbXtender.arx (in the Downloads section of my site). The
ViewportEx object offers methods for freezing ang thawing layers in a viewport.
vbXtender is free and open source.

--
http://www.acadx.com
Win a free autographed copy of
"AutoCAD 2000 VBA Programmer's Reference"

"wlefferd" wrote in message
news:f030b5f.-1@WebX.maYIadrTaRb...
> I need a better way to freeze layers in viewports. Now I am reading the xdata
from the viewport to get the information then adding the layer information into
the array and writing it back to the viewport. This works 99% of the time but
when it does not work the viewport won't let you freeze or thaw layers no way no
how and most of the time throws you out of AutoCad. Is there anybody that has
had succes doing this other ways.
> Wayne
>
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
I looked at your ViewportEX and found several functions that look useful. Can you give me a hint on how to use them. The ones I am interested in are vpThawall and the XrefStatus. How do you pass the VP or xref to the function.

Wayne
0 Likes
Message 4 of 4

Anonymous
Not applicable
Have you taken a look at the help file that came with the program? You'll find
syntactical examples for every method and property. But here's a primer anyway.

For any extender object (they all end in 'Ex'):

Dim vx As ViewPortEx

Set vx = AcadApplication.GetInterfaceObject("vbXtender.ViewportEx")
Set vx.Viewport = myViewportObject

Each extender object has a property with the same name as the AutoCAD object it
wraps: BlockEx = AcadBlock, ViewportEx = AcadPViewPort, GroupEx = AcadGroup,
etc.

--
http://www.acadx.com
Win a free autographed copy of
"AutoCAD 2000 VBA Programmer's Reference"

"wlefferd" wrote in message
news:f030b5f.1@WebX.maYIadrTaRb...
> I looked at your ViewportEX and found several functions that look useful. Can
you give me a hint on how to use them. The ones I am interested in are vpThawall
and the XrefStatus. How do you pass the VP or xref to the function.
> Wayne
>
>
0 Likes