neophyte Posted July 1, 2009 Posted July 1, 2009 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) Quote
SEANT Posted July 2, 2009 Posted July 2, 2009 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. Quote
neophyte Posted July 6, 2009 Author Posted July 6, 2009 To bad, I'm going to find a another way to solve my problem Thanks any way Quote
SEANT Posted July 7, 2009 Posted July 7, 2009 Not exactly a “Layer VPFreeze off – VBA” method, but potentially useful to the neophyte nonetheless. Quote
Patrick_35 Posted July 7, 2009 Posted July 7, 2009 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. @+ Quote
Recommended Posts
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.