Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Rectangular pattern and Variables
Ogurezzz
Member Posts: 3 ✭
Hello. I trying to make custom frame with different number of cells.
I set #Rows and #Lines as numeric variables.
I use them to make rectangle of desired size in my frame (It will be cell later), then I use variables to create linear pattern of my rectangle. When I just creating it I can use variables, but after saving of sketch all counted values becomes constants and I can't change them to variable dependet...
As result - rectangles change their size according to #Lines and #Rows, but linear pattern stay same.
0
Answers
What I usually do is create a part pattern with the Linear pattern feature. This will accept variables. Pattern the parts as templates, then use Boolean Subtract to subtract the parts from your frame.
You will need to create a variable that calculates how large the frame is because you wont be able to reference the new patterned parts.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴