Posts: 3
Registered: ‎07-18-2005
Message 1 of 1 (52 Views)

Error adding blocks to drawing

52 Views, 0 Replies
11-03-2005 05:37 PM

I'm trying to add a block to a drawing with C#, but it crashes at the following lines:

if (bt.Has("Sensing Unit"))
idBTR = bt["Sensing Unit"];
idBTR = doc.Database.Insert("Sensing Unit",db,false);

The fatal error says "eWrongDatabase." Is there any reason why this line would cause that error? How can I check if I have the "right" database before running the check?

Thanks so much for any help!


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community