Autodesk ObjectARX
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Performing INSERT blockname= path
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
85 Views, 2 Replies
09-25-2012 06:07 AM
Hello
How can I do this programatically w/o using Command...?
Thanks
alex
Re: Performing INSERT blockname= path
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-25-2012 06:49 AM 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. ![]()
Re: Performing INSERT blockname= path
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-26-2012 08:15 AM in reply to:
Alexander.Rivilis
Thank you, Alexander
alex




