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

Top Level Assembly Parameter controling Parameter value in Lower Level Assemblies

Newbie

Top Level Assembly Parameter controling Parameter value in Lower Level Assemblies

I have an assembly with two subassemblies assembled into it. Each of my subassemblies have a progam in them with a parameter string to control the state of the assembly, example position 1 or position 2. Is there a way to have a program in the main assembly that will control the parameter value of the two subassemblies? Example, if the main assembly has the string parameter set to position 1, then both subassemlies will have their parameters set to position 1...if main assembly is set to position 2, subassemblies will be set to 2 as well.

Is this possible, and if so, howwould I set up the program?

Thanks!

Ted

3 REPLIES 3

Top Level Assembly Parameter controling Parameter value in Lower Level Assemblies

The simplest way is this: suppose you have top level assembly top.asm, with
sub1.asm and sub2.asm.



In top.asm, go to the Relations dialog box (Tools > Relations). Pick Show >
Session Id> Assembly > Pick. Click on sub1.asm & note the session id (it
shows up in the message window). Do the same for sub2. Hit done/return out
of the menu box & return to the Relations window.

Add the following relations:

<the parameter=" name=">:<the session=" id=" for=" sub1="> = <the parameter=" name=">

<the parameter=" name=">:<the session=" id=" for=" sub2="> = <the parameter=" name=">



--



Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
<">mailto:-> -
<">http://www.mgsincorporated.com>

Top Level Assembly Parameter controling Parameter value in Lower Level Assemblies

Another is to use a layout. Put the parameters in the layout and declare the layout to each subassy and the assy.

Timothy

Top Level Assembly Parameter controling Parameter value in Lower Level Assemblies

Yet another method is to use the Pro/PROGRAM Execute statement.

Bob Monat
Jerand Technical Services, Inc.
bob@jerand.com
www.jerand.com
1-317-875-6087