Jump to content

Layer VPFreeze off - VBA


neophyte

Recommended Posts

Hi

 

I want to know what is the code for have all my layer VPFreeze "on"

 

I know for lock , on, freeze, but I'm stuck:x with the VP freeze

 

Dim objLayer As AcadLayer
On Error Resume Next
   For Each objLayer In ThisDrawing.Layers
       objLayer.LayerOn = True
       objLayer.Freeze = True
       objLayer.????? = True      
   Next
   ThisDrawing.Regen (acActiveViewport)

Link to comment
Share on other sites

A layers VP frozen state is actually determined by XData associated with a particular Viewport. While it is possible for a VBA routine to “VPfreeze” a layer, I don’t believe a way to “VPthaw” a layer had ever been demonstrated.

Link to comment
Share on other sites

Not exactly a “Layer VPFreeze off – VBA” method, but potentially useful to the neophyte nonetheless. :)

Yes, but you can't with vba, lisp and vlisp (write xdata in viewport)

Only with arx, dll or vplayer's command.

 

@+

Link to comment
Share on other sites

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...