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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Behavior of Creo if files do not exist in batch mode

eclaassen
7-Bedrock

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

0 REPLIES 0
Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags