Author Topic: Replace entity in block  (Read 1922 times)

0 Members and 1 Guest are viewing this topic.

NirantarVidyarthee

  • Guest
Replace entity in block
« on: July 18, 2011, 01:36:47 AM »
Is there any way to replace an entity (say a line) with another entity (say a circle) in a block definition using AutoLISP?

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2159
  • class keyThumper<T>:ILazy<T>
Re: Replace entity in block
« Reply #1 on: July 18, 2011, 02:09:33 AM »
Yes.

It can also be done manually.

We'd need to know the rules related to the replacement before writing suitable code.


Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

NirantarVidyarthee

  • Guest
Re: Replace entity in block
« Reply #2 on: July 18, 2011, 07:51:38 AM »
Can you elaborate more on the 'rules'? I am unable to guess what type of rules will be required?
Can you suggest the mechanism? I would be able to start if you give me few hints and then come back if I have specific problems.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2159
  • class keyThumper<T>:ILazy<T>
Re: Replace entity in block
« Reply #3 on: July 18, 2011, 06:05:03 PM »
Rules ..

What size and location is the circle in relation to which line in the block.

Is the determination dynamic or static.
If static you may be better served just inserting a replacement block.
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.