Author Topic: Reset Block retaining custom properties  (Read 1667 times)

0 Members and 1 Guest are viewing this topic.

mbrandt5

  • Newt
  • Posts: 44
Reset Block retaining custom properties
« on: January 28, 2020, 11:14:36 AM »
Hey all

Is anyone aware of a code that retains all custom properties of a dynamic block, resets block and then updates the custom properties to the state of the block prior to the Reset block?

ronjonp

  • Needs a day job
  • Posts: 7526
Re: Reset Block retaining custom properties
« Reply #1 on: January 28, 2020, 12:00:01 PM »
Maybe I'm not understanding the question but resetting then restoring equals no change?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

mbrandt5

  • Newt
  • Posts: 44
Re: Reset Block retaining custom properties
« Reply #2 on: February 03, 2020, 01:32:39 PM »
Please be advised that the Custom property angle which is 90 prior to the "RESETBLOCK" command is 0 after.  I could be mistaken on what is occurring, though after alterations to a dynamic block are made, I believe those changes are not reflected unless the block is reset.  With the being the case, I am looking for a way to get/store the custom property values then set them after a resetblock command is executed. While I am aware how this code would be written, figured someone may have already wrote it and would be willing to share said code.


HasanCAD

  • Swamp Rat
  • Posts: 1420
Re: Reset Block retaining custom properties
« Reply #3 on: February 04, 2020, 07:07:16 AM »
Right click on selected block the choose Reset Block

mbrandt5

  • Newt
  • Posts: 44
Re: Reset Block retaining custom properties
« Reply #4 on: February 11, 2020, 10:25:55 AM »
What is the difference, not sure I understand your suggestion.