Skip to main content
1-Visitor
July 10, 2015
Question

Replace start part in legacy models

  • July 10, 2015
  • 3 replies
  • 5123 views

Hi all,

I updated our start part about a year ago and had been manually updating old models as I came across them using a mapkey, so that the additional parameters that appear in the new start part are populated in the older models. We need the parameters to populate the new drawing format automatically from the models. Is there an easy way to update all models with the new start part to save a lot of time? I tried to share the mapkey that I created with other team members, by sending them my config.pro file, but it doesn't seem to work on their PC's and I am not sure why, so thought I would try a different approach to the issue if possible? I thought there is perhaps a way to do this by running a script, but this is not something I have done before, so wouldn't know how. Any advice or suggestions greatly appreciated. Thanks.

3 replies

1-Visitor
July 10, 2015

Hi,

If a mapkey cannot do it then maybe a trail file or a script can. It all depends on what exactly you are trying to do.

lmckee1-VisitorAuthor
1-Visitor
July 10, 2015

Hi,

The mapkey works for me, but other users report it doesn't work for them. All I need is for the part or assembly to have around 30 new parameters added. The values for the parameters are supplied from a relation in the new start part, so I need the old part or assembly to use the new start part instead of the original (as it contains the parameters and the relation), or if this is not possible, then I need to create the parameters in the legacy part or assembly and paste in the relevant relation for it to use when generating a drawing from the format. The goal is to automatically populate the tables in the drawing from the format, but the problem was that some parameters the format uses did not exist in legacy models, hence the required update.

How do I go about creating an update from a trail file or a script? Essentially i need to add a relation and a bunch of parameters to hundreds of parts and assemblies that were created before we had the new start part.

Thanks again.

1-Visitor
July 10, 2015

Interesting,

Sooner or later I'll be facing the same problem.

Have you got all the parts and assemblies in the same folder or bunch of folders at the same location and would you like this update to be all automated process?

Like find all files, open first file, add params, save, close, open second file, etc. Or are you just going to open each file by yourself and apply the mapkey you have to each manually?

EDIT: See this video on how to run trail file from a mapkey: 2014 PTC LiveGlobal Mapkeys TrailFiles Presentation Video - YouTube

21-Topaz II
July 10, 2015

Here's an easy way to add the parameters:

  1. Open your start part.
  2. File > Save As > Save A Copy > and pick Neutral (*.neu) as the file type.
  3. In the part you need to add parameters to, go to Model Tab > Get Data > import and pick the neutral file.
  4. Once imported, all the parameters in the start part will be present in your existing part.
  5. The import feature can be deleted, the parameters remain.

Limitations:

  • Only works on parts, not assemblies
  • Does not import relations.

However, this is easily automated with a mapkey, as long as your neutral file is in a common location, accessibly by everyone.

The relations are going to be harder. You can import relations from a file, but it replaces all existing relations with the file, not likely acceptable.  I'm not a Model Check user, but perhaps there's a solution there?

lmckee1-VisitorAuthor
1-Visitor
July 16, 2015

Thank you, I have never used (*.neu) before so it is good to know, I will try it out - it might be a good way of sharing the functionality of the first half of my mapkey. My mapkey replaces the parameters and adds in the relation, I can't currently automate the process for it to apply the mapkey to all .prt and .asm files, or share it with other users. Getting this to work would be the first step, thanks!

1-Visitor
July 10, 2015

I deal with this on a daily basis and we simply use Model Check. My advice is to explore and set up model check to do the job.

lmckee1-VisitorAuthor
1-Visitor
July 16, 2015

Hi Joe, thank you! I downloaded a model check handbook, but couldn't find how to configure my machine to use it. Do I need a special licence? When I go to file and prepare I have only 4 modelcheck options, all of which didn't seem to open any relevant menus, one gives me the error message "RC_MODEL_TYPE must be set to process rule" and as this is not a config.pro setting, I wasn't sure where to set this. Can you recommend where to find out more information on model check, it sounds ideal, but I cannot currently use it.

Thanks again.

23-Emerald III
July 16, 2015

There is a config.pro option that enables ModelCheck and then you need ModelCheck settings enabled for it to actually run the checks.

It can be run in a batch mode, which we did at a prior company to populate all models with the new Windchill parameters from the ones we had in Intralink.