0 Members and 1 Guest are viewing this topic.
Not really sure how to do this for existing Dimensions.
Remove the ACAD_DIMASSOC record from the dimension's Extension Dictionary.Code - Auto/Visual Lisp: [Select](Defun C:RemoveAssoc() (VL-Load-Com ) (SetQ eDim (Car (EntSel)) ) (SetQ oDictionary (VLA-GetExtensionDictionary (VLAX-Ename->VLA-Object eDim)) ) (SetQ entAssocDict (DictSearch (VLAX-VLA-Object->Ename oDictionary) "ACAD_DIMASSOC") ) (EntDel (Cdr (Assoc -1 entAssocDict))) (DictRemove (VLAX-VLA-Object->Ename oDictionary) "ACAD_DIMASSOC" ) ) (WARNING: I have not written Lisp in a few years! That may not be the right way to do it!)
Thank you for the thorough error-handling, RenderMan. I just threw that together quickly for testing purposes, I never intended anyone to use it in production.
Succinct as always, Lee.Cheers, mate! :beer:
Be careful with yours, as although it deletes and removes the DIMASSOC Dictionary (though, I think only dictremove is needed here), it will not remove the XDictionary & associated Reactors and hence truly disassociate the dimension until the user modifies the dimension in some way.
... Not really sure how to do this for existing Dimensions.