neophyte Posted July 1, 2009 Share 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 Link to comment Share on other sites More sharing options...
SEANT Posted July 2, 2009 Share 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 Link to comment Share on other sites More sharing options...
neophyte Posted July 6, 2009 Author Share Posted July 6, 2009 To bad, I'm going to find a another way to solve my problem Thanks any way Quote Link to comment Share on other sites More sharing options...
Patrick_35 Posted July 7, 2009 Share Posted July 7, 2009 Hi I do that @+ Gef.zip Quote Link to comment Share on other sites More sharing options...
SEANT Posted July 7, 2009 Share Posted July 7, 2009 Not exactly a “Layer VPFreeze off – VBA” method, but potentially useful to the neophyte nonetheless. Quote Link to comment Share on other sites More sharing options...
Patrick_35 Posted July 7, 2009 Share 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 Link to comment Share on other sites More sharing options...
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.