Attribute question NX6
Attribute question NX6
(OP)
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.
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





RE: Attribute question NX6
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.
RE: Attribute question NX6
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
RE: Attribute question NX6
Thank you
Justin
Designer
RE: Attribute question NX6
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
RE: Attribute question NX6
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Attribute question NX6
Best Regards
Hudson
www.jamb.com.au
Nil Desperandum illegitimi non carborundum