CadFrank Posted July 27, 2011 Author Share Posted July 27, 2011 Hi i would have another interresting question regarding the insertion on a block in a box .. it it possible to put in a dynamic block according a visibility name Quote Link to comment Share on other sites More sharing options...
paulmcz Posted July 27, 2011 Share Posted July 27, 2011 I am out of this as I have no idea what is involved when it comes to dynamic blocks. Never had a chance to work with them. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 27, 2011 Share Posted July 27, 2011 Hi i would have another interresting question regarding the insertion on a block in a box .. it it possible to put in a dynamic block according a visibility name Yes, if you're adept at Visual LISP. Look into applying this: (vlax-put-property [color=red]<VisibilityPropertyObject>[/color] 'vlaue [color=red]<VisibilityStateName>[/color]) ... on the resulting DynamicBlockProperties Object when using the GetDynamicBlockProperties Method on the Block Object ( Edit: The value being applied to the must be included in the AllowedValues Property for the same Object. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 27, 2011 Share Posted July 27, 2011 You may need to use: (vla-put-value [color=red]<DynamicBlockProperty>[/color] (vlax-make-variant [color=red]<VisibilityStateName>[/color] (vlax-variant-type (vla-get-value [color=red]<DynamicBlockProperty>[color=black]))) ) See here for a set of Dynamic Block Functions. [/color][/color] Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 27, 2011 Share Posted July 27, 2011 You may need to use: Perhaps I've misremembered (and misrepresented) supplying a String in lieu of a Variant for the value... It has been a while since I wrote the only routine I used for Dynamic Blocks??? If I have, then I apologize. I'm trying to teach myself too much, purging information I've already learned (or so I thought!). LoL Cheers! Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 27, 2011 Share Posted July 27, 2011 I've always used the method shown without problem - no need to apologise Renderman. Quote Link to comment Share on other sites More sharing options...
CadFrank Posted July 28, 2011 Author Share Posted July 28, 2011 Hey well i started to read my book but i don't think is fully adapted to autolisp. I can't see what the description of "vla" anywhere. I'm still trying to understand alot of thing for autolisp can't see to understand how to put all the script together. but i guess ill eventually figure it out. But any how! should i intergrate the routine up there with the routine you gave me this morning? So ill leave you on this and try to read up somemore to understand everything. Quote Link to comment Share on other sites More sharing options...
irneb Posted July 28, 2011 Share Posted July 28, 2011 I can't see what the description of "vla" anywhere.Perhaps look at this: http://docs.autodesk.com/ACD/2011/ENU/filesALG/WS73099cc142f4875516d84be10ebc87a53f-7c00.htm Unfortunately AutoDesk (in their infinite wisdom) has decided to omit the ActiveX/COM references from the online help. The only place I can still get at it is using my 2008's acadauto.chm file. 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.