kyosmith Posted March 31, 2010 Share Posted March 31, 2010 How to refer a dynamic block visility state with VBA? in some cases i need to insert a block with a diferent visibilty state. and i dont want to create diferent blocks for each visibility state. is it possible to do that? thanks all! Quote Link to comment Share on other sites More sharing options...
dbroada Posted March 31, 2010 Share Posted March 31, 2010 It is possible although I only investigated doing it rather than using it. However, your profile says you are using LT - you won't have access to VBA or LISP. Is your profile wrong? Quote Link to comment Share on other sites More sharing options...
kyosmith Posted March 31, 2010 Author Share Posted March 31, 2010 yeah its wrong! now im using AutoCad 2007 Quote Link to comment Share on other sites More sharing options...
dbroada Posted April 1, 2010 Share Posted April 1, 2010 Maybe you should change your profile Its taken me a little while to find what I did but here is a code extract. Public Sub SelSetTest1() Dim BlockRefObj As AcadBlockReference Dim PropList As Variant Set BlockRefObj = mySelectionSet.Item(0) PropList = BlockRefObj.GetDynamicBlockProperties I was using a selectionset to get my object but you can use whatever works for you. Once you have the properties list you can read the visibility sate or set the visibility state. Quote Link to comment Share on other sites More sharing options...
kyosmith Posted April 1, 2010 Author Share Posted April 1, 2010 i did it man! thanks so much 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.