Skip to main content
Chris3
21-Topaz I
April 11, 2022
Solved

Using Pro/Program to copy features

It appears that this may not be possible, but has anyone successfully copied a feature out of one part by editing the pro/program, copying the feature, and then pasting it into a new part?

 

When I try and do this it complains saying that there is no internal feature ID that matches the one that I copied and pasted from another part.

 

I understand that there are more convenient ways to copy and past features, but for my own reasons if possible I would like to do it using Pro/Program. I know that Pro/Program can read in a design "from file" which made me think that this might have been possible. Maybe it can only change existing features though and not add new ones.

tbraxton
tbraxtonAnswer
22-Sapphire II
April 18, 2022

In theory you should be able to step through the model using the model player for all features of interest. You can record this as a trail file. Trail files are not easy to debug but if you use these config options then it is workable IME.

 

CONTINUE_FROM_OOS   TRUE

set_trail_single_step   yes

9 replies

Chris3
Chris321-Topaz IAuthor
21-Topaz I
April 11, 2022

To explain a little bit further: ultimately what I would like is the ability to create a Creo part using a text file.

Translate
Chris3
Chris321-Topaz IAuthor
21-Topaz I
April 18, 2022

I am going to assume from the responses that the only way to re-create a part from using a plain text file would be to use one of the toolkits.

Translate
tbraxton
22-Sapphire II
April 18, 2022

It is possible to generate a trail file (text) and then run that to create a part. In practice it is a bit tricky and a pain to debug but it is possible.

Translate
tbraxton
22-Sapphire II
April 11, 2022

The internal feature ID within a part is unique, so if you are trying to get a feature from another part that is why you are getting that error. Check to see if you can access the session ID within Pro/Program. The session ID is tracked internally for all in session items and this will allow you to identify a feature from another part. The session ID is not persistent (saved with file) and is only valid for in session objects so writing a text file with a session ID will not work unless you can determine session ID on the fly and modify the text file.

Translate
24-Ruby III
April 12, 2022

Hi,

I am almost sure that Pro/Program can only work with existing features and it is not able to add new ones.

Translate