Insert block error
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Insert block error

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
srinivasan
Guest





Posted: Tue Jan 04, 2005 12:52 pm    Post subject: Insert block error Reply with quote

Hello all

When i try to insert any block i am getting an error
"!dbinsert.cpp@581:eHadmultipleReaders" and autocad closes.

This happens only when i insert the block for the second time
and is working perfect for the first time.

Thanks in advance.

Back to top
Paul Richardson
Guest





Posted: Wed Jan 05, 2005 2:12 pm    Post subject: Re: Insert block error Reply with quote

Quick suggestion...Show you code so people
don't have to guess at what your doing.. You'll
get a quicker answer that way...

The first time you insert the dwg file it, probably
*does not* exist as a block definition in
ThisDrawing... Once you've inserted the block
from another dwg file it now is a Block Reference
and a Block Definition in ThisDrawing...

If you try to go get in from the other source and
it lives in ThisDrawing as a block with the same
name as the dwg your source dwg....Bad...

I will guess and say handling this will
solve your problem. Check to see if
it already lives in ThisDrawing..If so
grab it there or delete it and all References
to it first...Then insert the dwg...

gl
Paul

"srinivasan" <nospam@address.withheld> wrote in message
news:28554312.1104825185238.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
Hello all

When i try to insert any block i am getting an error
"!dbinsert.cpp@581:eHadmultipleReaders" and autocad closes.

This happens only when i insert the block for the second time
and is working perfect for the first time.

Thanks in advance.
Back to top
srinivasan
Guest





Posted: Wed Jan 05, 2005 2:12 pm    Post subject: Re: Insert block error Reply with quote

This happens only when i insert a dwg file from some other locations.

Sri

Back to top
Nathan Taylor
Guest





Posted: Thu Jan 06, 2005 3:00 am    Post subject: Re: Insert block error Reply with quote

There shouldn't be a problem with inserting a drawing with an existing block definition of the drawing. All our blocks are inserted with a VBA routine that inserts the block from the drawing regardless if a definition already exists.
Regards - Nathan
Back to top
Paul Richardson
Guest





Posted: Thu Jan 06, 2005 5:11 am    Post subject: Re: Insert block error Reply with quote

Command line habbit..;-)
"Nathan Taylor" <nospam@address.withheld> wrote in message
news:13187679.1104962463402.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
There shouldn't be a problem with inserting a drawing with an existing
block definition of the drawing. All our blocks are inserted with a VBA
routine that inserts the block from the drawing regardless if a definition
already exists.
Regards - Nathan
Back to top
srinivasan
Guest





Posted: Thu Jan 06, 2005 9:32 am    Post subject: Re: Insert block error Reply with quote

Thanks all for you suggestions.

Actually i am purging my drawing before insrting the
block, so as paul said there is no chance of the block
definition inside the drawing as Nathan said there is no problem even if the block exists in the drawing.Only when i delete the existing block from the dwg and try to insert the dwg i am finding this error.

Regards
Sri
Back to top
Paul Richardson
Guest





Posted: Thu Jan 06, 2005 3:00 pm    Post subject: Re: Insert block error Reply with quote

Sri, You should run for Politics...:-) Glad you got
it working...

Paul
"srinivasan" <nospam@address.withheld> wrote in message
news:12768648.1104985965540.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
Thanks all for you suggestions.

Actually i am purging my drawing before insrting the
block, so as paul said there is no chance of the block
definition inside the drawing as Nathan said there is no problem even if
the block exists in the drawing.Only when i delete the existing block from
the dwg and try to insert the dwg i am finding this error.

Regards
Sri
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB