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

Performing INSERT blockname=path

2 REPLIES 2
Reply
Message 1 of 3
alex_b
250 Views, 2 Replies

Performing INSERT blockname=path

Hello

How can I do this programatically w/o using Command...?

Thanks

alex

2 REPLIES 2
Message 2 of 3
Alexander.Rivilis
in reply to: alex_b

I understand you're going to replace one existing block other block of the file. Then you can:

1) Create AcDbDatabase;

2) Read into this AcDbDatabase from dwg-file (using AcDbDatabase::readDwgFile() method);
3) Use the method AcDbDatabase::insert() to insert the block;
4) AcDbObjectId::swapIdWith () to switch between the new and the old block
5) Old block can be removed.
Something like that. Smiley Happy

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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
alex_b
in reply to: Alexander.Rivilis

Thank you, Alexander

alex

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost