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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Translate the entire conversation x

Updating Drawing Parameters in ModelCheck batch mode?

AJo
4-Participant
4-Participant

Updating Drawing Parameters in ModelCheck batch mode?

I have configured ModelCheck in Creo 11 to update part, assembly, and drawing parameters.

When I run the ModelCheck in batch mode, only part and assembly files get their parameters updated and designated as per start file. Drawing parameters only update if I manually start ModelCheck Interactive. I've gone through the check file multiple times, and the settings (YNEW) are set identically for both Interactive and Batch mode in all checks so I would think they should work the same way whether I run Interactive or Batch.

Again, the updates work for all files in Interactive, and for parts and assemblies in batch. What am I missing here? 

5 REPLIES 5
dnordin
16-Pearl
(To:AJo)

AJ,

Does the trail file offer any clues as to why the drawings are not being updated?

You mentioned designating the parameters, so I assume you're using PDMLink. Is batch mode being run against a workspace, or outside of PDMLink & you import into a WS afterward? Have you tried both options?  If you're working within a WS, I'd assume all of the files are checked out. In the Creo Distributed Batch GUI, what does the Task Status show for the drawing models? Unsubmitted, Working, Complete, or Failed?

 

Regards,

 

Dan N.

AJo
4-Participant
4-Participant
(To:dnordin)

I am running ModelCheck straight from the Modelcheck bat and locally on the hard drive with a list of the objects to check in Batch mode. The objects are to be imported into Windchill after the Modelcheck fixes the parameters.

 

The mc_err.log states that "ERROR: UPDATE - Error adding parameter to model" and for the Parameter that is to be designated, claims it's been designated successfully. I just checked all versions of the drawings that were created during the check and none of them have the param designated (or the other one added). The parameter I'm trying to designate is the PTC_WM_REVISION and it sometimes acts weird after save operations even when I'm not connected to Windchill. All servers have been removed from the server management, so Creo shouldn't have any ties to Windchill. I do have the allow_create_pdm_param on and everything works fine in Interactive. 

 

Guess I'll look into the Distributed Batch next. 

 

It's almost as if ModelCheck doesn't save the drawings after the parameter designation...

AJo
4-Participant
4-Participant
(To:AJo)

As an update, I set up the Distributed Batch and tried various recorded mapkeys to run ModelCheck interactive for the drawings to try and designate the parameters. Dist. Batch says Completed and the files are saved aaaaand.... the parameter is still undesignated when I open the files. Funny thing is that the mapkeys work like a charm in a regular Creo session! 

dnordin
16-Pearl
(To:AJo)

AJo,

Are you sure your config.pro file is being read in correctly in batch mode? Perhaps the "allow_create_pdm_param" is not being set in batch mode and is the cause of the other parameter not being created in batch mode, but works in interactive mode.

 

All of the PTC_WM_* parameters are Windchill based parameters, are locked by Windchill, and do not need to be designated as they are normally created by and managed by Windchill.  You should not need to designate it for Windchill to recognize it once you import the files into Windchill.  Are you trying to pre-set the revision of the model before importing it into Windchill?

 

Regards,

Dan N.

AJo
4-Participant
4-Participant
(To:dnordin)

Hi Dan,

Thanks for your replies!

 

Yeah the main goal at this point is to get the revision automatically set during import to workspace. I can figure out the rest of the edits later. I have the Windchill preferences for Allow Override on Create New CAD Document also Insert and Revise on, and the only way I've managed to have Windchill read the Revision info in, has been by designating the parameter prior to import. It much does not matter which parameter it is, I could just as well add another parameter and have Windchill read that, but it's not much help if I can't designate it automatically. Currently the drawings also have a new parameter addition fail, so the batch or distributed batch aren't doing much regarding that either...

 

I would think the batch mode reads the config.pro because as stated before, it works for everything else except drawings, also when running all the data at once.

 

If you have any other ideas how to push the revision data in during import, I'd love to hear that as well.

Announcements

NEW Creo+ Topics: PTC Control Center and Creo+ Portal

Top Tags