Skip to main content
1-Visitor
April 11, 2019
Solved

Family Table instances in working directory

  • April 11, 2019
  • 2 replies
  • 6277 views

Hii! I am trying to generate a list of all instances in a text file so that i can batch process all the instances to .stp format. Only the generic part is shown in the working directory. What can be done to get all the instances in the same folder??

Best answer by BenLoosli

I was assuming that you were using Windchill, but from the screen shot, it appears that you are not.

 

You will need to open every instance in the family table and then do a save-as to 'export' the instance to its individual state. Save as Step, IGES or part file as needed. You could write a mapkey that does the Save-As of the current file.

 

There are some automation tools, Autolit and toolkit, but those may require programming skills.

 

2 replies

1-Visitor
April 11, 2019

If you dont want to go with toolkit customization, search for xpr and xas file types. These are types of file available for part and assembly instances. Those files might not be present into directory as those are secondary files. Toolkit API are there to identify the same. Are you looking for API?

1-Visitor
April 11, 2019

Just manually open generic file, go to family table, open instance file and save it. It would generate instancename.xpr or .xas based on part and assembly.

23-Emerald III
April 11, 2019

A family table is a single part file that regenerates the instances from the generic when used. If you export a family table to disk, you will only have a single file.

To get all of the instances into the workspace, you need to do something that forces Creo to do that, The easiest method is to edit the generic which will cause all instances to be checked out to the workspace.

You can also do things with the family table editor if you only want a list of the file names. Cut the column from Excel and past that into a text file, for example.

 

1-Visitor
April 12, 2019

Thank you for your response!!

For getting all the instances into the folder/working directory(if that is what you mean by workspace), you said that the easiest way was to edit the generic. What did you mean by that?

 

I have already tried putting into the text file using excel. But i was not able to use it for batch conversion to step format.

23-Emerald III
April 12, 2019

Since the family table is a single file, you only get the generic into the workspace by default. In order to export all instances, you will need to force the system to put all of them in your workspace. The easiest way is to open the family table  - Tools-Family Table and then use the Edit button. This will ask you to check out all instances to your workspace.