Is it possible to write an event handler for an autocad event/ command like insert new block ? I want the event to trigger the execution of an update routine . something like this post
how do I access the autocad object in autolisp?
I have a DCL window where I let the modeller specify a value type for each attribute of each block in the drawing and I store it in a nested association list . The association list is as follows
((blockName1 attributeAssociationList1) (blockName2 attributeAssociationList2)
where attributeAssnList is another association list like
((attributeTagName1 attributeValueType1) ((attributeTagName2 attributeValueType2)
I have an updateAssociationList function which updates this data structure by comparing it against the state of the current drawing.
I was hoping to call this function when a block/attribute is inserted /deleted /edited.
Thank you ,
if i understand you right? you have some blocks attribute data list that store where? in an external file?
and you got some dwg files that you want to update their attributes value?
i do not think that this should be done with Reactors, all you need is to run your update routine on the blocks
to update their attributes and attributes values as a batch and that it?
I wasn't aware of the concept of reactors..seems to me that is what I was looking for. I think I agree with you though, It might not be worth the overhead. I have to look into reactors a bit more.thank you for pointing me in the right direction.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register