Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program inputs in assembly for part features

Status
Not open for further replies.

chams21

New member
Jun 5, 2014
6
Hi all,
I'm working on an assembly and am utilizing the program tool to allow for inputs of certain dimensions. I'm also using program at the part level to effect features in some of my parts. Upon regeneration, a dialog box appears with options to change the inputs. The problem is that a dialog box appears for every part, and part features aren't accessible in the assembly program. Its not a huge issue, but eventually I'll have to click through 5 or 6 dialog boxes. Is there any way to consolidate these inputs? thanks
 
Replies continue below

Recommended for you

I think I could solve my problem by being able to change part parameters in the assembly
 
Here's the answer from the help file.

Transferring Input Values from the Upper-level Assembly

The input variables are used to transfer input data from the upper-level assembly to the appropriate parts and subassemblies to drive the creation of the model.
For example, for the part block_base, the listing looks like this:
INPUT
key_size
ansi_thread
...
END INPUT
RELATIONS
d5 = key_size
d3 = depth * 1.25
END RELATIONS
....Then the design listing for the assembly looks like this:
INPUT
hole_diameter NUMBER
thread_type STRING
depth
...
END INPUT
RELATIONS
END RELATIONS
EXECUTE PART block_base
key_size = hole_diameter/2 + 0.025
ansi_thread = thread_type
depth = DEPTH
...
END EXECUTE

And the design for the part block_base looks like this:

INPUT
ADD FEATURE.....Note

The parameter key_size appears in the EXECUTE statement for the assembly and the INPUT statement for the part. This is necessary for the parameter value to be passed down from the assembly to the part. If the parameter does not appear in both places, or no EXECUTE statement is in the assembly design for the part, then those values that are currently in memory are used for the part.
The parameter thread_type is set equal to ansi_thread in the EXECUTE statement, which is then passed to the part through the INPUT statement.
The parameter depth is set equal to DEPTH in the EXECUTE statement and passed to the part using the same name in the INPUT statement. This technique is often preferable to step 2 because it is easier to keep track of the parameters.
The relation d5 = key_size is not necessary. The parameter symbol d5 can instead be renamed key_size using the Symbol command in the DIM COSMETIC menu.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor