Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

SNAP (Simple NX Apllication Programing) Measuring all the sizes

Status
Not open for further replies.

designnewz

Automotive
Jan 11, 2014
52
I have a multipart assembly that consists of all different sizes of rectancular tubes. My goal is to make a program using SNAP. This program would collect all the rectangular tubes of a specific part number 2063124 in the assembly and add up all the sizes. My attribute for this tube is CROSS for the Length . Once the sizes are ALL added up I need to have that number divided by the purchased stock length which is 24 ft. I do need that number equated rounded up.

The next step would be allowing this program to add whats above to the Expressions Menue as Name: Rectangular_Tubes_to_Be_Purchased, and lets say for now the Formula would be 10 because the end result of the total number of feet in the assembly is 235 for that specific rectangular tube part number 2063124 in the assembly.

I am new to this programing idea of SNAP and hopefully Someone can help me with the bits and pieces of this program to put together to make this happen. This would be a Big Time Saver.

Thanks For Reading.
 
Replies continue below

Recommended for you

I assume you've already worked through the tutorialin the SNAP manual. If not, do that first.

You have to cycle through the components in your assembly, looking at the part numbers. There is a chapter in the "Getting Started with SNAP" guide that explains assembly concepts and shows several examples of programs that cycle through assembles doing various things.

For reading attributes, there's nothing much in the "Getting Started with SNAP" guide, but there are numerous examples in the SNAP Reference guide (the CHM thing). Look at the GetXxxAttribute functions in the Snap.NX.NXObject class.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor