Jump to content

Regen Dynamic Block after changing its subentities color


Recommended Posts

Posted

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

 

image.png.590a88ee24d611d7aaf4c307e374cf8b.png 

regen problem.dwg

Posted (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 by mhupp
Posted (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 by handasa

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...