Message 1 of 17
InsertBlock method
Not applicable
03-19-2004
08:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have researched this newsgroup and have seen a number of threads discussing the problems with the InsertBlock method but none have conclusively provided a solution. It looks like the InsertBlock method works only under some set of ideal conditions while in others, it fails with different error messages. The attached DVB file creates a new block definition and attempts to insert it in the current document model space. The error I am getting is "Invalid argument bStrName..." In another instance, I was able to run the code without problems and the InsertBlock method seemed to work, but I did not see the block insert object despite a regen, .update, .visible etc. Any pointers on what code is needed for a smooth run without crashes. Regards Rakesh -- AutoCAD customization for Engineering/Mapping/GIS Get GeoTools @ http://www.4d-technologies.com/geotools Build MyGeoTools @ http://www.4d-technologies.com/geotools/my_geotools.htm FREE downloads : http://www.4d-technologies.com/techcenterAttachment not added (content type not allowed): "bm.dvb"