Ament Posted December 20, 2019 Posted December 20, 2019 Hello together it's me with a new question again. I am trying to create a lisp which helps me to change the color of all content of the referenced drawings. Just immagine the following workflow: I have a first product drawing in which several detail drawings are assembled via XREF into one overview drawing. In this the original colors are needed. Now I create a very similar product where I create a copy of the overview drawing, and run a lisp to rename it, copy the detailed drawings to the new project folder, detach the "old" xrefs and attach the ones just copied into the new path. (Everything is working nice till here.) Now I'd like to go into each xref and change the color of the elements inside. "refedit" Unfortunately they are mostly in one single block (name of block is known and could be used if needed) inside the xref and as soon as I try to do a "bedit" but it seems that this is not that simple during refedit. This is where I would be happy if some of you have had the same issue and could point me to the correct direction to go. I tried to explode the block, recolor and create a new block, but it is not allowed to create a block during refedit. Something I was not aware first, but there is a different behaviour when doubleclicking the block in the xref in model space I'm directly able to modify it, Thats where I started and found out soon that it is possible to access a block when using refedit interactively. By selecting the nested block in the user interface you end up beeing able to modify the blocks elements. I'd like to reach that level through my macro, select all elements of the block and change their color. Someone who has a good idea? Quote
marko_ribar Posted December 20, 2019 Posted December 20, 2019 Everything you described is normal workflow... Refedit allows you to change colors of entities when in that mode active... You just make sure you after finish click "Save changes" - or choose that option if asked at command prompt... To me it seems you don't need any automation... If I am wrong describe, what would you like lisp should do to make your workflow faster... Then I suppose before and after sample DWG with further explanation will be handy for someone willing to help you... Regards, M.R. Quote
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.