Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Attribute question NX6

Status
Not open for further replies.

jackley

Automotive
Sep 2, 2004
263
I have a question regarding attributes and automation.

In the attached jpeg, there are holes in 9 holes in line with each other and 8 columns.

I have attributes set up for # of rows and columns, distance from the edges of the pocket to the center of the first circle, pocket height and width. My end goal is to change the # of rows and columns and they adjust accordingly inside the pocket. I need them equally spaced between each other vertically. I need the columns equally spaced between the 1st and 2nd and 3rd and 4th, every other.

I am having trouble getting the holes equally spaced between one another from one column to the next. Only if I have perfect numbers can I achieve it.

Anyone have any guidance for me? Thank you.

Justin
Designer
 
Replies continue below

Recommended for you

you should be able to use your expressions to determine the spacing.

For instance when I have a bolt circle I always associate two expressions so that I only have to change the number of holes and the spacing will adjust . . . if p29=10 and p30=36 (p29 is the number of holes, and p30 is the angular spacing between the holes) I then set p30=360/p29.

You can do something similar with your linear spacing ... set the spacing between the holes as a factor of the length and number of holes.

 
Well I have been trying to use the expressions to get this. But if I do not have the perfect number, they are not equally spaced. I want to be able to have them always equally spaced between each other (in the Y vector).

I thought perhaps if someone had a few minutes they could do this and attach an example file so I could see where my mistakes are. I have spent a fair amount of time on this with a colleague. I think we are close, just something isn't tracking.

Justin
Designer
 
Basic math.
spaces = #_holes -1
spacing = distance_between_hole1_and HoleN/spaces

Just write the instance array spacing expression as a formula.

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
A positive integer that is the sum of its proper positive divisors?

Best Regards

Hudson

www.jamb.com.au

Nil Desperandum illegitimi non carborundum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor