About an object event, I want you to tell me.
Using AutoCAD.NETAPI, I had same advise the method that handled object event
(Objec tAppended) in our discussion group
and came to be able to pick up an event when I carried out paste1 in the following logics.
Public Sub Paste1() 'object addition event
Dim tdoc As Document = Application.DocumentManager.MdiActiveDocument Dim tdb As
Database = tdoc.Database AddHandler tdb.ObjectAppended, AddressOf ObjectAdd
End Sub
However, trigger of the double of the number of element that I stuck by
this event occurs when I stick the element which I took in _copybase in _pasteclip.
In addition, ObjectId, OwnerId of the element becomes inherent each, too and which is
a real element or, in each trigger, cannot distinguish it.I analyze only a stuck element
I want to handle it, would you advise a method to distinguish?
Thanking you in advance.
Solved! Go to Solution.
Solved by Alexander.Rivilis. Go to Solution.
NKCAUTOCAD01 wrote:
However, trigger of the double of the number of element that I stuck by
this event occurs when I stick the element which I took in _copybase in _pasteclip.
Command _PASTECLIP create temporary block definition with entities copied _COPYBASE command. After specifying insertion point, block will be erased and entities added to current space (Model or Paper). You can check Entity.BlockId equal Database.CurrentSpaceId or no.
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Dear Mr. Alexander.Rivilis
It was saved very much.Yours sincerely,
NKCAUTOCAD01 (M.Tsukamoto)...
Can't find what you're looking for? Ask the community or share your knowledge.