Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drawing convertion 1

Status
Not open for further replies.

Striker

Computer
May 23, 2001
143
I have installed the migration assistant for A2k and applied all of the patches I can find, but I still get an error that file Convert.tlb is missing. If anyone could please tell me where this file might be found, either downloaded, e-mailed or installed I would certainly be appreciative.
 
Replies continue below

Recommended for you

I was able to find a convert.txt file in my AutoCAD folders - it talks about the file you are looking for. I don't know if it will help or not but it seems to be associated with the bonus tools. Here is the contents of that text file:

***********************
' AutoCAD 2000
'
' ActiveX Automation and VBA Samples.
'
' Convert Program Read Me File.
'
' Copyright (C) 1999 by Autodesk, Inc.
'
' Permission to use, copy, modify, and distribute this software
' for any purpose and without fee is hereby granted, provided
' that the above copyright notice appears in all copies and
' that both that copyright notice and the limited warranty and
' restricted rights notice below appear in all supporting
' documentation.
'
' AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
' AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
' MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
' DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
' UNINTERRUPTED OR ERROR FREE.
'
' Use, duplication, or disclosure by the U.S. Government is subject to
' restrictions set forth in FAR 52.227-19 (Commercial Computer
' Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
' (Rights in Technical Data and Computer Software), as applicable.
'

1) Program Notes:

The application name is Convert.

The object model is one class/one interface, which has exposed the following 5 functions:

Open(), SaveAsr12(), Quit(), Visible(), Name().

The type library name is: Convert.TLB

The registry file is: Convert.REG

2) Installation Procedure

This application is only installed by the AutoCAD Migration Assistance Setup. It has to be installed
on a system that also has AutoCAD 2000 installed, otherwise it will not work correctly because of
missing drivers or system files.

3) Typical VBA /ActiveX usage:

Sub Save14to12()
Dim ac As Object
Set ac = CreateObject("convert.application")
ac.Open ("d:\Projects\d14.dwg")
ac.saveasr12 ("d:\Projects\d16.dwg")
ac.Open ("d:\Projects\temp14.dwg")
ac.saveasr12 ("d:\Projects\temp16.dwg")
ac.Open ("d:\Projects\temp14a.dwg")
ac.saveasr12 ("d:\Projects\temp16a.dwg")
ac.Quit
End Sub

Notice that you can Open/Save without quitting each time, this should help with batch processing.

4) Errors:

The function Open() returns error code if:

a) You tried to open a non existing file.
b) If the AutoCAD Open() failed for some reason.

The function Saveasr12() returns error code if:

a) You tried to save to an existing file.
b) If the ads_queueexpr() ads function failed.

In some extreme measures, an undetermined error situation could arise in AutoCAD, and still not reported
via Automation, because the saveasr12 operation depends on the asynchronous ads function ads_queueexpr().

The expression could fail and the Automation server will not know.

5) Limitations:

a) It will not overwrite an existing file (including the current drawing file).

b) The user will need to be prepared to work with AutoCAD UI.
Some drawings after being saved as r12, display a message box if you try to quit the drawing, notifying whether you want to save the changes.
It is important to note that any batch proceesing of files will halt until the user presses the "No"
button on the warning dialog.
c) Convert must be able to find ALL the R14 SHX files referenced in a drawing file, or unexpected program operation may occur, and the program may appear to hang. If this becomes a problem the user should copy the *.SHX files from the AutoCAD 2000 Font, and Support directories into the Convert\Support directory.
 
I have the text file, but I cannot find the type library.
 
I don't have that file either. I don't know exactly what it does but I don't get the error message that you were talking about. I'll check a few other computers and see if I can find anything.
 
Are you refering to the ability to convert stb to ctb and vise versa if everyone helps everybody the world will be a better place
 
No, To convert to pre 2000 release formats you must either use "saveas" and select the drawing format, or you can use the migration assistant to batch convert many drawings at once. Here is my dilemna. When using the batch converter, I get an error that the type library needed for the program to run "convert.tlb" is not installed or cannot be found. I have searched endlessly for this file and found out that it was supposed to be installed with the migration assistant from the A2k CD, however it is not. I downloaded the most recent version of migration assistant from Autodesk, but it does not install it either. The problem is that it tells me that I must have A2k installed and I am using ADT 3.3 built on the 2002 engine. What I would like to do is find someone who has the convert.tlb and convert.reg files as required (see previous post concerning the contents of Convert.txt). This is costing me some serious time having to do each drawing manually, since we still have users on older versions and must make the drawings accessable to all. I am trying to get it set up to automatically save the drawings in the previous version while we are in the process of upgrading all of our computers,O/S, and software.
 
Shadow
Remember the batch convert macro (VBA) I once sent to you?
Was it any good? Do you think it might be usefult to Striker? Why dont you send him a copy?
 
I can help you out with this as a temp fix until you find the files you need. I have an exe file that writes a script that purges every drawing in a folder. I can send this file to you and you can set your preferences to auto save in an older version. When you run the purge script you won't have to touch every drawing - it will purge and convert them for you. If you think this may be helpful let me know.

I can send the file to you and some instuctions on how to use it.
 
Send ahead and I will give it a once over to see if it will do what I need. Thanks....
 
hey striker whats your email address and ill send you a copy of this Vba file tigrek did and worked great for me some bugs to work out but it does work for ver 10-2002 i know for sure if everyone helps everybody the world will be a better place
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor