cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Behavior of Creo if files do not exist in batch mode

Highlighted
Regular Member

Behavior of Creo if files do not exist in batch mode

Hello,

 

I'm doing some validations of assemly/drawing models in batch mode.

There is a strange behavior of Creo 3:

If some prt or asm file is absent, after the call of GetLeaf(), many asm files are created (asm0001.asm.1, asm0002.asm.1, ...).

wfcWComponentPath_ptr path = ...
try
{
	pfcSolid_ptr solid = path->GetLeaf();
}
xcatchbegin
	xcatchcip (Ex)
	cout << "Exception:  " << Ex << endl;
xcatchend

I retrieved the paths from the root product per wfcWAssembly::ListComponentsByAssemblyRule.

 

Another question is, how can I get the file name, which is absent in the directory? In Creo, I can see it (in red) in the tree on the left side. If a drawing file is opened and its reference part is not in the directory, a message box is shown and says XXX.PRT is not in the directory. How can I get the info (XXX.PRT)?

 

Thank you!

Xinyu

Announcements