Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Declare variable

Status
Not open for further replies.

ednagc2002

Mechanical
Dec 3, 2013
14
I´m struggling with declaring variables for quiet some tiem. Someone showed me some months ago how to declare a variable and give a value to it and what I can remeber it has to do with notebook and layout. Unfortunately I can´t remember anything else and can´t figure it out.

What I intend to do is create a name which a value will be given. And this name I can use it in my part in the relations for example "mass=variable*5" And the "variable" should have been created somewhere and somehow with a given value.

I know that when I go to my part I need to go to "declare variable" and then in Notebook select the layout... But how can I create this layout?


Thanks a lott!!


Best regards,
Edna
 
Replies continue below

Recommended for you

What are you trying to do - create a variable in a single part, or create a variable to be used across multiple parts?

If it's in a single part, it is a parameter (under the Tools menu/tab).

If it's across multiple parts, you need the advanced assembly license to create a layout/Notebook.
Then create the parameter in the layout/Notebook (as in the single part).
Save the Notebook, and in the parts/assemblies you want to use the variable, Declare the layout to the part (Under Creo, the route is File - Manage File - Declare - Declare Ntbook).
 
You can also use relations to create and manipulate parameters. If you create a parameter in the relations editor it will show up in the parameter tool but you won't be able to change it there as it's value is controlled by the relation. You can create relations at the section,part or assembly level.



----------------------------------------

The Help for this program was created in Windows Help format, which depends on a feature that isn't included in this version of Windows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor