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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Copy Parameters Between Models

fred_renner
1-Newbie

Copy Parameters Between Models

Hello,

How does person copy the parameters from one part into another part? I tried using copy/paste but it only does one at a time.

Thanks,

Fred Renner
-


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
8 REPLIES 8

Fred,

Export the parameters into a text doc if you have many items, other wise
just create a new text doc.

Edit the text doc and remove all unwanted data.

Add these lines so for each parameter it ends up looking like this:



if exists ("description")

else

description = "xxx"

endif



Save the text file.

Now in Pro open the part that you want to add params to, Tools\
Relations\ File\ Import Relations (pick your text file)

Before closing the relation window Verify parameters by clicking on
small green check mark or \Utilities\Verify

Make a mapkey to do this with a few simple key strokes.



Regards

JScott






Fred,



Open both parts in pro/e
go to the part you want to copy the parameters from and open the parameters
dialog box
Pick on the first row in the parameters dialog box
With this row selected scroll down to the last line and pick it while
holding down the shift key
This should select all rows
From the parameters dialog box pick edit and copy then cancel out of the
parameters dialog box
this copies the selected parameters into memory

Now go to the part that you want to copy the parameters to and open the
parameters dialog box

In the parameters dialog box click on edit and then past and confirm if it
asks you to

This should past all parameters into the new part along with their values
and settings



Hope this helps
Don A


I tried Fred's suggestion in WF2, WF3 & WF4 and couldn't get it to work.
WF2 wouldn't let me select more than one parameter, WF3 would and I
could copy but paste was grayed out in the target model and WF4 would
let me select more than one but copy was grayed out. Consistency is NOT
Pro|E's strong point. 😛

The relations idea posted earlier works, but what I do is this:

1.
Open a part with the parameters that you want in it. Preferably
it would be an empty part, but it doesn't need to be.
2.
Export a neutral file (*.neu) of the source part.
3.
Go to you target part and import the neutral file (insert ->
shared data -> from file). The neutral file brings the parameters (and
layers) with it.
4.
After a successful import, you can delete the import feature and
the parameters remain.

It doesn't work n assemblies or sheet metal parts. If you need to add
the same set of parameters frequently, create the neutral file on disk
and create a mapkey to do everything but step 4.


Doug Schaefer
--
Doug Schaefer | Experienced Mechanical Design Engineer
LinkedIn

Model Check will also prompt for missing parameters if it's set up to do so.

This is mainly used for a set of parameters that are required for every model a company might create. I've typically seen it used to automatically fill out title block information on a drawing, reading it from the model parameters.

If it's just some parameters common between a select few models, then the relations method works pretty well. In fact, if they are string relations, you shouldn't need to export the file. Just add the relations like so...

parameter_1 = "x"

parameter_2 = "y"

... and those parameters will be added to the model. Afterward, just delete the relation to unlock the parameter so you can modify it to whatever you'd like.

wfalco
15-Moonstone
(To:fred_renner)

Sweet. Thanks D!

Hi Folks,
Fred's post is entirely applicable to me right now. I posted last year on changing over existing parts to make them have the same parameters and in the same order) as the new template which I was using to drive our new drawing formats.

The neutral file method worked well for parts but I did not appreciate, as Doug mentions, that it does not work for assembly files and I did not know regarding sheetmetal parts either. I also tried copy and paste but also could not get multiple lines to work in WF2 and WF4.

Therefore I am revising my method along the lines suggested by JScott a couple of days ago. His method is to import a relations file with a set of relations that make parameters. There is more to it that this and I am reworking our instructions step by step for our users and am happy to share once done. The big advantage of the imported relations method is that it works for parts and assemblies which is important to us.


Regards, Brent Drysdale
Regards, Brent Drysdale
Mechanical Designer
Tait Electronics Ltd (www.taitworld.com)
New Zealand
Ph. +64 3 358 1093

Fred Renner wroteSmiley Tongue { margin: 0; }Hello,

How does person copy the parameters from one part into another part? I tried using copy/paste but it only does one at a time.

Thanks,

Fred Renner
-


The method for importing parameters DOES work on assemblies and sheet
metal parts too. You need to create an empty assy or use your start
assy to create your neutral file for importing. The basic solid part
neutral files works with sheet metal parts as well. I say this based on
doing it all the time in 2000i. I wouldn't think that changed in WF.

Regards,
Mark A. Peterson
Design Engineer
Ramteq


Hello,

Thanks for posting very interesting information about parameters.

I tried method of using a relations file. I tried to create parameters with
different parameter value_types.

String_Parameter = "123456".
Real_Number_Parameter = 123456
Yes_No_Parameter = YES (/ NO)

Can anybody please suggest how to specify a integer parameter in relations
file.

Thank you,

Regards,

Amar S. Junankar

Imagecom, Inc.
www.aspire3d.com


On Wed, Feb 11, 2009 at 3:12 PM, Brent Drysdale
<->wrote:

> Hi Folks,
> Fred's post is entirely applicable to me right now. I posted last year on
> changing over existing parts to make them have the same parameters and in
> the same order) as the new template which I was using to drive our new
> drawing formats.
>
> The neutral file method worked well for parts but I did not appreciate, as
> Doug mentions, that it does not work for assembly files and I did not know
> regarding sheetmetal parts either. I also tried copy and paste but also
> could not get multiple lines to work in WF2 and WF4.
>
> Therefore I am revising my method along the lines suggested by JScott a
> couple of days ago. His method is to import a relations file with a set of
> relations that make parameters. There is more to it that this and I am
> reworking our instructions step by step for our users and am happy to share
> once done. The big advantage of the imported relations method is that it
> works for parts and assemblies which is important to us.
>
>
> Regards, Brent Drysdale
>
> Mechanical Designer
>
> Tait Electronics Ltd (www.taitworld.com)
>
> New Zealand
>
> Ph. +64 3 358 1093
>
>
> Fred Renner wrote:
>
> Hello,
>
> How does person copy the parameters from one part into another part? I
> tried using copy/paste but it only does one at a time.
>
> Thanks,
>
> Fred Renner
> -
>
>
>
Top Tags