Freeze layer in a viewport...

Freeze layer in a viewport...

Anonymous
Not applicable
719 Views
9 Replies
Message 1 of 10

Freeze layer in a viewport...

Anonymous
Not applicable
So I am in a a paperspace viewport. How do I freeze layers just in this viewport?
0 Likes
720 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
You can't do it using VBA up to Autocad 2002. Don't
know about 2004. But, asdkunsupp2000.arx provides this function, and several
others that were inexplicably omitted from standard VBA. You should be able to
get it off the AutoCad website.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
So
I am in a a paperspace viewport. How do I freeze layers just in this
viewport?
0 Likes
Message 3 of 10

Anonymous
Not applicable
Well doesn't that just figure. Thanks for the reply.
0 Likes
Message 4 of 10

Anonymous
Not applicable
Yes you can but it's a long drawn-out process.

Joe
--
0 Likes
Message 5 of 10

Anonymous
Not applicable
Well don't tease me like that...watcha got to do?
0 Likes
Message 6 of 10

Anonymous
Not applicable
Oh -

 

You can also do it by using "Sendcommand" to run
"vplayer," but that takes all the fun out of it.

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
So
I am in a a paperspace viewport. How do I freeze layers just in this
viewport?
0 Likes
Message 7 of 10

Anonymous
Not applicable
The AcadX ActiveX Extensions (www.caddzone.com/acadx) have
methods that allow you to freeze/thaw layers in viewports.

See the AcadXPViewport class

--
AcadXTabs: Document Tabs for AutoCAD
http://www.acadxtabs.com


"tsigwing" wrote in message news:f18cf4b.3@WebX.maYIadrTaRb...
> Well don't tease me like that...watcha got to do?
0 Likes
Message 8 of 10

Anonymous
Not applicable
Question (and slap me if I'm off base here):

Seems to me that the last time I looked at ActiveX for this function, you
had to feed it one layer at a time (as opposed to feeding an array of layers
to the asdkunsupp function). Since each layer set off a regen, you could sit
around for a long time freezing 50 or so layers.

Is this still the case, or was I mistaken in the first place?


"Tony Tanzillo" wrote in message
news:E129328E0B3CD20395150A992A51AFD4@in.WebX.maYIadrTaRb...
> The AcadX ActiveX Extensions (www.caddzone.com/acadx) have
> methods that allow you to freeze/thaw layers in viewports.
>
> See the AcadXPViewport class
>
> --
> AcadXTabs: Document Tabs for AutoCAD
> http://www.acadxtabs.com
>
>
> "tsigwing" wrote in message
news:f18cf4b.3@WebX.maYIadrTaRb...
> > Well don't tease me like that...watcha got to do?
>
>
0 Likes
Message 9 of 10

Anonymous
Not applicable
The LayerFrozen() pseudo-property deals with one layer
at a time.

The FrozenLayers() property (takes/returns a variant
containing an Array of AcadLayer objects) allows you
to specify all frozen layers (exclusively):

Dim Layers(0 to 2) As Variant
Set Layers(0) = ThisDrawing.Layers("walls")
Set Layers(1) = ThisDrawing.Layers("doors")
Set Layers(2) = ThisDrawing.Layers("windows")

Dim VPort As AcadXPViewport
Set VPort = new AcadXPViewport
VPort.Viewport = ThisDrawing.ActivePViewport
VPort.FrozenLayers = Layers

If you want to freeze/thaw multiple layers in addition
to those that are already frozen/thawed (inclusively),
then the AcadXApplication object has methods that take
an array of AcadLayers:

GetFrozenViewportLayers(Viewport As Object) As Variant
FreezeLayersInViewport(Viewport As Object, Layers As Variant)
ThawLayersInViewport(Viewport As Object, Layers As Variant)


--
AcadXTabs: Document Tabs for AutoCAD
http://www.acadxtabs.com


"Tony Burba" wrote in message news:8312F64AA74A8DA66371A533B91B307E@in.WebX.maYIadrTaRb...
> Question (and slap me if I'm off base here):
>
> Seems to me that the last time I looked at ActiveX for this function, you
> had to feed it one layer at a time (as opposed to feeding an array of layers
> to the asdkunsupp function). Since each layer set off a regen, you could sit
> around for a long time freezing 50 or so layers.
>
> Is this still the case, or was I mistaken in the first place?
>
>
> "Tony Tanzillo" wrote in message
> news:E129328E0B3CD20395150A992A51AFD4@in.WebX.maYIadrTaRb...
> > The AcadX ActiveX Extensions (www.caddzone.com/acadx) have
> > methods that allow you to freeze/thaw layers in viewports.
> >
> > See the AcadXPViewport class
> >
> > --
> > AcadXTabs: Document Tabs for AutoCAD
> > http://www.acadxtabs.com
> >
> >
> > "tsigwing" wrote in message
> news:f18cf4b.3@WebX.maYIadrTaRb...
> > > Well don't tease me like that...watcha got to do?
> >
> >
>
>
0 Likes
Message 10 of 10

Anonymous
Not applicable
I always forget about the sendcommand. That makes it too easy.

Thanks
0 Likes