handasa Posted October 19, 2021 Posted October 19, 2021 Hello everyone i used a lisp to change a dynamic block subentities color.but the changes will not reflect to the drawing unless i used the bedit command and save and close the block editor here is screen shot showing the difference between the block in the model and the preview in Bedit command. the Regen Command and (vla-Regen doc acAllViewports) methods doesn't work also to refresh the drawing to reflect changes to the block. is there anyway to update/refresh the block to reflect changes made on it? attached a drawing with a copy of the block. thank you regen problem.dwg Quote
mhupp Posted October 19, 2021 Posted October 19, 2021 (edited) After you change the color maybe the function redraw could work. (redraw entity 1) -Edit- Regen should work with blocks maybe it being a dynamic block. why its not updating. (vla-regen (vla-get-activedocument (vlax-get-acad-object)) acactiveviewport) Edited October 19, 2021 by mhupp Quote
handasa Posted October 19, 2021 Author Posted October 19, 2021 (edited) 31 minutes ago, mhupp said: After you change the color maybe the function redraw could work. (redraw entity 1) -Edit- Regen should work with blocks maybe it being a dynamic block. why its not updating. (vla-regen (vla-get-activedocument (vlax-get-acad-object)) acactiveviewport) this didn't work for the block i attached.thank you anyway Edit: Worked after using the code posted in the forum you shared.thank you Edited October 19, 2021 by handasa 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.