Author Topic: Block Reactor  (Read 1675 times)

0 Members and 1 Guest are viewing this topic.

SPDCad

  • Bull Frog
  • Posts: 453
Block Reactor
« on: April 22, 2008, 01:02:18 PM »
What is the best way to redefine a block with code?

I am in the process of creating a lisp reactor that monitors blocks and if the block creation/change date attribute has change the block is redefined in the current drawing.
So therefore I want to redefine the block without actually inserting a new block when the reactor is called.
The reason for the lisp reactor is to bring all the power of dynamic block to an Xref, well sorta.  :-D

Any help is appreciated.
Thanks in advance.

P.S. If anyone has some object reactor lisps and is willing to share some code, I woudl be grateful. For this is only my second object reactor, so I am still a rookie with them.

AutoCAD 2010, w/ OpenDCL

visit: http://reachme.at/spd_designs

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Block Reactor
« Reply #1 on: April 22, 2008, 01:12:39 PM »
I think this one over on the Adesk Ng is pretty much what you want to do, and was talked about pretty recently.

[ http://discussion.autodesk.com/thread.jspa?messageID=5858111 ]
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.