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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

can Pro/PROGRAM change which instance is assembled?

lylebeidler
1-Newbie

can Pro/PROGRAM change which instance is assembled?

We don't have AAX, so I can't test out Pro/PROGRAM, but we are considering
buying it. Before we do, I need to know this:

If I assemble the a generic part into my assembly, can the assembly level
Pro/PROGRAM force it to substitute in instances based on conditional
statements? (ie, rather than assembling all 4 instances, and then
suppressing the 3 unneeded ones, I want to have Pro/PROGRAM mimic the
Replace command).

Thanks.





--



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


There is a function called "lookup_inst" that does exactly this - from Pro/Help:

To Replace Family Table-Driven Components

You can automatically replace family table-driven components according to design criteria by using the lookup_inst function. With this function, you can search a component family table to find an instance that fits the values of the search parameters. If the lookup function does not find a match, it returns the name of the generic.

The format for lookup_inst is:

lookup_inst ("generic_name", match_mode, Òparam_name_1Ó, match_value_1, Òparam_name_2Ó, match_value_2,...)

where

* generic name-Name of the generic model with a .prt or .asm extension

* match_mode-One of the following values:

o -1 (find closest instance with param values less than or equal to supplied values)

o 0 (find instance with param values that match supplied values exactly)

o 1 (find closest instance with param values greater than or equal to supplied values)

* param_name_1-Family table parameter name

* match_value_1-Value to match against

See Also

About Replacing Components in Assembly Designs<file: c:\ptc\wildfire4\html\usascii\proe\program\about_replacing_components_in_assembly_designs.htm=">

Example: Replacing Family Table-Driven Components<file: c:\ptc\wildfire4\html\usascii\proe\program\example_replacing_family_table_driven_components.htm=">








Best regards,






Kevin Alexander

Senior Application Engineer - TriStar, Inc.
TEL: 800-800-1714 x3118

CEL: 270-779-9935

www.tristar.com<">http://www.tristar.com>

[cid:image001.gif@01CA0540.C05AEA70]


"Excellence is an art won by training and habituation. We are what we repeatedly do. Excellence, then, is not an act but a habit." - Aristotle


View our Recorded Webinars!<">http://www.tristar.com/software/community.asp>
Sign up for upcoming TriStar Webinars!<">http://www.tristar.com/news/events.asp>
Subscribe to our monthly email newsletter!<">http://www.tristar.com/publications/newsletter.asp>


EADS Selects PTC To Become The Single Provider For Its "PHENIX" Enterprise Product Lifecycle Management Solution<">http://ptc.com/appserver/wcms/standards/textsub.jsp?&im_dbkey=74955&icg_dbkey=21>
PTC Lands EADS Deal for Enterprise PLM<">http://www.designnews.com/article/47482-PTC_Lands_EADS_Deal_for_Enterprise_PLM.php>
PTC Resource Center<">http://www.ptc.com/community/index.htm>
PTC Tech Support<">http://www.ptc.com/support/index.htm>
FREE PTC Webcasts
dgallup
4-Participant
(To:lylebeidler)

You can accomplish this with family table functionality without using Pro/Program. Just add the generic component to the family table then you can replace the generic part with the part instance in each row of the table.

In Reply to Lyle Beidler:
We don't have AAX, so I can't test out Pro/PROGRAM, but we are considering
buying it. Before we do, I need to know this:

If I assemble the a generic part into my assembly, can the assembly level
Pro/PROGRAM force it to substitute in instances based on conditional
statements? (ie, rather than assembling all 4 instances, and then
suppressing the 3 unneeded ones, I want to have Pro/PROGRAM mimic the
Replace command).

Thanks.





--



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



Top Tags