Error IDBHOOK-34C, unable to close project

Discussion of MicroSurvey CAD related issues and questions.

Moderators: Brian Sloman, Jason Poitras, James Johnston

Error IDBHOOK-34C, unable to close project

Postby Hydromel » Wed Aug 02, 2006 3:01 am

Hi,

I'm currently working on a script that import dxf and saves them in .DWG + .MSD file format in mscad.. For most the script, it's working fine ... tho from times to times, I get an error prompt with msg : "Error IDBHOOK-34C, unable to close project".

my script is :
Filedia off
open C:\LIMEANALYSIS\6\6-930-001.DXF
saveas A2K z:\xref\6\6-930-001.DWG
close
open C:\LIMEANALYSIS\6\6-930-005.DXF
saveas A2K z:\xref\6\6-930-005.DWG
close
...
Up to 300 files are converted.

I'm currently using MSCad2005 sp1.1
but i would like to know if 1.3 would fix the problem before updating.. because we have no problems here with 1.1 exept that IDBHOOK-34 when saving some files. It does that for about 1 per 50 files saved.

Thanks
Hydromel
 
Posts: 15
Joined: Thu Jun 22, 2006 3:39 am

Postby Hydromel » Wed Aug 02, 2006 4:05 am

* update *
Tried with Mscad2005 Sp1.2 ... I still have the IDBHOOK-34C error
Tried with Mscad2005 SP1.3 ... Still have the same problem...
Hydromel
 
Posts: 15
Joined: Thu Jun 22, 2006 3:39 am

Postby Jason Poitras » Wed Aug 02, 2006 5:59 am

I assume you are able to tell which drawing generates the error. What happens when you manually save the drawing manually as a DWG file? Do you get the same error?
Jason Poitras
General Manager
[email protected]
User avatar
Jason Poitras
Site Admin
 
Posts: 443
Joined: Tue Oct 29, 2002 5:17 pm
Location: Kelowna, BC, Canada

Postby Hydromel » Wed Aug 02, 2006 6:42 am

At first test seems like it is ok if I save it manually one of those file who give me that error.

I will test with more file and give news in next hour.
Hydromel
 
Posts: 15
Joined: Thu Jun 22, 2006 3:39 am

Postby Hydromel » Wed Aug 02, 2006 7:08 am

after trying with filedia on and off

I loaded those file that were giving me that error. When I save them manually, there's no problem at all... but if do that by script... they just give me that error when it's saving... after pressing the OK button, the file is saved and the script continues.
Hydromel
 
Posts: 15
Joined: Thu Jun 22, 2006 3:39 am

Postby Jason Poitras » Wed Aug 02, 2006 8:46 am

The error message is indicating that the database (MSD) can't be closed. We are assuming that because you are running a script there might be some kind of timing issue, ex. the cad engine is trying to open the next drawing while the database from the previous drawing is being closed.

One thing you could try is to unload our program files by entering the following at the command line: (xunload "mscad.dll"). *** To reload it, simply restart MSCAD or type (xload "mscad.dll") at the command line.

Once you do this, try running your script. Only thing that will not happen is that the MSD file will not get created. This is probably not an issue, because when you open the dwg file, the msd will get created automatically anyways.
Jason Poitras
General Manager
[email protected]
User avatar
Jason Poitras
Site Admin
 
Posts: 443
Joined: Tue Oct 29, 2002 5:17 pm
Location: Kelowna, BC, Canada

Postby Hydromel » Wed Aug 02, 2006 10:37 am

Ok, I will try this, I managed to program a VB app that would press the OK prompt by pressing space bar repeatedly for 5 min...(that's about the time of conversion) It works but surely not the best solution.

Thanks
Hydromel
 
Posts: 15
Joined: Thu Jun 22, 2006 3:39 am

Postby Hydromel » Mon Aug 14, 2006 7:46 am

Finally, I tried the (xunload) command, works very well and it accelerate the process a lot.

Thanks :D
Hydromel
 
Posts: 15
Joined: Thu Jun 22, 2006 3:39 am


Return to MicroSurvey CAD

Who is online

Users browsing this forum: No registered users and 1 guest