Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Forum Highlight: CATIA V6

 

Get Answers to Your V6 Questions
Dassault Systèmes answers user questions about CATIA V6.  Discuss these answers and propose new questions with end users from around the world in the CATIA V6 Forum.

COE DISCUSSION FORUM
Subject: Save or Release a Part from CATIA

You are not authorized to post a reply.   
Page 2 of 2 << < 12
Author Messages
HALE


05 Nov 2007 11:22 AM
Gumpan,

I only way I know to get the UUID (and I understand that it a modified/tweaked UUID at that) was to load the file. I loaded the with a modified file name (I added an X). The bulk load type operation (actually using the stiEngine DLL) ened up with a bunch of NEW filew with no part numbers etc. I was able to find them using the date/time loaded and empty part number, use the file name to identify the part number's I wanted and move the UUID from the new files to the corresponding old files. Then I deleted the new files.

I have looked at some length for a way to get the UUID without loading the files. For security reasons, I don't think we are ever going to get it. This is also why the UUID we get from SmarTeam is tweaked. They are trying to prevent all kinds of bad situations where a new file is substituted for an existing file "behind-the-scenes,"

Regards,
Hale

Badencorp - CATIA/SmarTeam - Installation, Training and Support!
An hour of hard work can often save you 60 seconds on Google.
Gumpan

09 Nov 2007 09:23 AM
Hale,

Thank you for your answer.

I'm not entirely sure how you got the UUID from the new files (sorry if I'm slow)? Did you save the files to smarteam and read the UUID from the db or xml file? Or do you know how to get the UUID using Catia api's?

I've been in contact with SmarTeam, and they suggest I use pretty much the same code you had already posted. What I want to do is quitely import files to SmarTeam with no user interatction, furthermore I want the imported files to be "the next revision" of an existing document.

The problem with the stiEnginge.save is that it will display a profilecard, unless i have "Batch mode save" set to true (which I don't want my users have to do everytime).

But if could just get a hold of the UUID it could manipulate the xml file and all would be good. It's ok if the file has to be opened in Catia.
HALE


11 Nov 2007 02:16 PM
Gumpan,

Sorry if i wasn't clear. I had to load the files into SmarTeam, then I can find the value in the "Componant Name" field. This is the UUID according to SmarTeam.

As far as I know there is no way to get the UUID directly from CATIA. Dassault wants to be sure that people do not fiddle with the UUID behind the scenes.

Regards,
Hale

Badencorp - CATIA/SmarTeam - Installation, Training and Support!
An hour of hard work can often save you 60 seconds on Google.
Gumpan

12 Nov 2007 02:11 AM
Thanks Hale,

My only problem is that I can set the useGraphicalInterface to False, but that will only prevent the "Save to Project"-box to disappear, I still have to fill out the profilecard. Unless I check the "batch mode save" in catia. There is a way to set bulk mode in the stiEngine/Stivb, but there's no way to set the "batch mode save".

Does anyone know how to programatically set Batch Mode Save in the Catia integration?
HALE


19 Nov 2007 01:17 PM
Gumpan,

I've been on the road for the last week or so. I'll see if I can find this for you as soon as my test machine recovers from the trip. I don't remember right off hand, but I think there is a way.

Regards,
Hale

Badencorp - CATIA/SmarTeam - Installation, Training and Support!
An hour of hard work can often save you 60 seconds on Google.
Gumpan

28 Nov 2007 07:22 AM
I just got an answer from SmarTeam, they might consider this a bug. As of right now there's no apparent way of silently saving catia-documents to smarteam v5r17 without enabling batch mode save.... to bad ... They'll probably fix this at the same time pigs can fly .. or something like that.

And they won't let me know how to read the UUID from the catia file .... Though I've heard that this is possible through some seriouse c++ coding.
AMODG

10 Oct 2008 08:29 AM

Hi All,

I just wanted to know in which library "StiVB"  interface available.

I found that "StiEngine" is available in library "CATSmarTeamInteg" but could not find "StiVB". Can anyone please let me know where it is available.

Thanks.

 

 

 

 

You are not authorized to post a reply.
Page 2 of 2 << < 12

Forums > COE Forums > SmarTeam > Save or Release a Part from CATIA



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)