- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
What do I do if I see <xyz> error?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-13-2009 02:02 PM
Recently, I've had a few customers run into errors that anyone could get hung up on. Both of these errors have to do with the IOP samples, but the first is a lot more common.
So you get the AcisImport built and running, and you want to import a V5 file. You run something like AcisImport.exe -i block.CATPart -o block.sat and you see the following error:
Error: CATDocumentServices did not open block.CATPart
Most likely you don't have your CATIA environment set up correctly. See: http://doc.spatial.com/index.php/InterOp:Connect/C
More specifically, you probably don't have the environment variable CATDeaultEnvironment set correctly. It needs to be set to the exact same thing as you used for the -e option when you called setcatenv.exe.
Now on to a more obscure problem. You are running Windows (xp/vista) x64 so you download the x64 packages and install everything without a problem. Now you want to build the connect/simple_vc9x64 project. When you call devenv, you get the following error message:
The project consists entirely of configurations that require support for platforms which are not installed on this machine. The project cannot be loaded.
The problem here is you are trying to load a x64 project with a x86 compiler and Visual Studio doesn't like it at all. More than likely, you are not using the compiler you intended to because the x86 compiler is in the path before the compiler you think you are using. It is also likely, that you accidentally installed the 32 bit compiler when you meant to install the 64 bit version.
Got a better hang up to share? Please do :)
Robert Tadlock
Technical Account Manager
Re: What do I do if I see <xyz> error?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-14-2009 10:25 AM
One of the most common issues I see when working with IOP and/or the IOP Samples, is not setting up your CATIA environment correctly. All that you need to know is covered in this doc: http://doc.spatial.com/index.php/InterOp:Connect/C
That being said, I find it convenient to keep a batch file around so that when I need to build/run the samples, I don't have to set variables by hand or remember the usage for running setcat. Once you get this batch file set up, you just open a command window, and run it before you want to build/run any of the samples, and you're good to go. I also add any other setup variables and or commands to this file that may be needed for you application. For example, I'll put my Xerces dlls in the path if my application is going to parse out XML-EBOM ( see here for an XML-EBOM example).
To use the attached batch file, download it to your machine and edit the variables to match your configuration. Also, I'd love to hear about any of the tricks you use to make your life easier.
Robert Tadlock
Technical Account Manager

