.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About an object event, I want you to tell me.

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
NKCAUTOCAD01
367 Views, 2 Replies

About an object event, I want you to tell me.

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.

2 REPLIES 2
Message 2 of 3


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
Expert Elite Member

Message 3 of 3

Dear Mr. Alexander.Rivilis

Thank you for the Great advice.

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.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost