![]() |
【转帖】redefine block
redefine block
redefine block what is the correct procedure to redefine an existing block ? do i have to iterate that specific block record and make all entities to erase mode and then append my new set of entities? it's also possible to erase existing blocktablerecord and add to block table a new one with the same name but your method is more safe. if insertions of this block exist in drawing using your method they will stay valid and reference the redefined block. else they will reference erased one. newly created block will have different id. another way is using handoverto() function: pexistingblock->handoverto(pnewblock); this is safe too. redefined block will have the same id. sergey slezkin thanks for clarifying permanently erase a record quote: originally posted by sergey slezkin it's also possible to erase existing blocktablerecord and add to block table a new one with the same name hi sergey, i am trying to do following simple steps: 1. erase a blocktablerecord (with name = "block1"). 2. rename an existing blocktablerecord to "block1". but the "erased" record is still in database memory and hence it throws "duplicate record name" exception. is there any way to permanently erase a record (other than opening/closing database or clearing my undo stack). thx. |
所有的时间均为北京时间。 现在的时间是 10:02 AM. |