MartinSomerville 10 Posted December 4, 2009 hey all...just wanting to know how to change the flag in the block dialog box "allow exploding". has it a sys variable? I know how to make all blocks in the drawing explodable. I just want to know how to change that flag for all future made blocks. Unless I create a dummy block and check that "allow exploding" box and save I don't know how to change all future made blocks so they are explodable. (i don't create blocks with the dialog box all the time) thanks martin Quote Share this post Link to post Share on other sites
CarlB 0 Posted December 4, 2009 "dimassoc" is the system variable ..ok must be late, that is for dimensions... Quote Share this post Link to post Share on other sites
stevsmith 12 Posted December 4, 2009 The Allow exploding check box remains the same as the last block you create. If you make a block and tick the "allow Exploding" and onpen a new drawing and make another block, the "allow Exploding" box will still be ticked. If you make another block and untick the "allow Exploding" box, the next block you make will be unticked as well. Hope that made sense Quote Share this post Link to post Share on other sites
wizman 12 Posted December 4, 2009 To determine the current value use: ;; allow-explode-p ;; returns 1 or 0 (Yes or No) ;; (defun allow-explode-p () (vl-registry-read (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (vla-get-activeprofile (vla-get-profiles (vla-get-preferences (vlax-get-acad-object)) ) ) "\\Dialogs\\block_definition_dialog" ) "Explode" ) ) ;; ;; ;; wiz_04DEC09 To set it to 'allow exploding' use: ;; allow-explode ;; ;; (defun allow-explode () (vl-registry-write (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (vla-get-activeprofile (vla-get-profiles (vla-get-preferences (vlax-get-acad-object)) ) ) "\\Dialogs\\block_definition_dialog" ) "Explode" 1 ) ) ;; (allow-explode) ;; ;; ;; wiz_04DEC09 Quote Share this post Link to post Share on other sites
MartinSomerville 10 Posted December 4, 2009 thanks lads.. appreciate any response..this site is very friendly and helpful... steve..yeah i got that i use a make all blocks explodable routine but I wanted it to set the "future" blocks flag to allow exploding aswell!!...so I can use a little command line quick block routine I have... without having to run dialog box (i know, I'm lazy ) thanks wizman - that looks quite funky...i havevn't done anything like that before...i'll check it at work on monday!! no wonder I couldn't figure it out.. thanks again all martin Quote Share this post Link to post Share on other sites
MartinSomerville 10 Posted December 4, 2009 ..actually steve..i read your post again..so maybe the template our office uses has don't allow blocks checked!!! I'll check with the customise fellow here to check....maybe he should run dialog, set to allow exploding and then export template again Quote Share this post Link to post Share on other sites
Lee Mac 453 Posted December 4, 2009 Nice Wizman Quote Share this post Link to post Share on other sites
wizman 12 Posted December 4, 2009 thanks lads.. appreciate any response..this site is very friendly and helpful... martin Glad to share MartinSomerville, Cheers Lee..... Quote Share this post Link to post Share on other sites
stevsmith 12 Posted December 4, 2009 ..actually steve..i read your post again..so maybe the template our office uses has don't allow blocks checked!!! I'll check with the customise fellow here to check....maybe he should run dialog, set to allow exploding and then export template again Could be an idea mate. change the setup of the .dwt Quote Share this post Link to post Share on other sites