Quantcast
Channel: PTC Community : Unanswered Discussions - Modeling
Viewing all articles
Browse latest Browse all 2891

Regenerate Read File - which parameters get loaded from .txt file?

$
0
0

I have a Creo3 part which has an Input section with logic to prompt the user for certain parameters using the Regenerate Enter functionality.  Depending on the parameters selected, logic around the features in ProProgram will turn features on and off.  Each of the features require different parameters to drive the geometry.

 

I can also use the Regenerate Read File functionality and select a .txt file with all of the parameter names and values to generate the same geometry.  Here is where I am running into problems.  It seems that the order of the parameters in the .txt file matters and also not all of the parameters are populated from the values in the .txt file.

1) Does anyone know exactly how the Regenerate Read File functionality works?

2) Does Creo3 simply read in the parameter values in the order that they appear in the .txt file?

3) Why are some of the parameters ignored?

4) Does the logic around the parameters in the Input section affect this?

5) Does the logic around the part features and/or the relations on the features affect which parameters are populated?

 

Some additional details on my part...

The part file has an Input section that will prompt the user to enter "ctrlparam" which, depending on the value entered will turn on or off different features.  Let's say that a "ctrlparam" == "01" turns on "feat1" and "feat1" requires parameter "A1" to drive the geometry.  A value of "ctrlparam" == "02" turns on "feat2" and "feat2" requires parameter "A2" to drive the geometry.

 

Example1

If my "order.txt" file contents look like this:

ctrlparam = "01"

A1 = 10.00

A2 = 20.00

 

Regenerate Read File "order.txt" will not update the A2 parameter value.  This doesn't cause a failure in the part because A2 is not needed, but how(and when) does Creo3 decide which parameters to populate?

 

 

Example2

If my "out_of_order.txt" file contents look like this:

A1 = 10.00

ctrlparam = "01"

A2 = 20.00

 

Regenerate Read File "out_of_order.txt" will not update the A1 or A2  parameter values.  This may cause a failure as A1 is needed to control "feat1".

 

 

Anyone know what is going on 'under the hood' of Regenerate Read File functionality?


Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>