I think that a problem is in the following part.
Component.AddBatchAttributes("1 1 My_Attribute=" &My_Value )
Please correct as follows.
Component.AddBatchAttributes("1 1 My_Attribute=" & My_Value )
A sample code is attached.
Sample_AddBatchAttributes.zip 750 bytes
thanks for trying to help.
Your code correction is needed. AddBatchAttributes works fine before too.
My focus is on the BlockModified event.
The AddBatchAttribute command does not fire the BlockModified event, and I do not know why.
Deleting the added attribute afterwards does fire the event.
I would like to know, how to add attributes to a component AND fire the event BlockModified.
You should do BatchAttributesAdded Eventw use, in order to acquire the event of AddBatchAttribute.
Event BatchAttributesAdded(comp As Component, AttributeListString As String)
thank you very much.
We found the Application event
in the .Net and it works fine.