Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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

OgurezzzOgurezzz 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.

Answers

  • MichaelPascoeMichaelPascoe Member Posts: 2,012 PRO
    Last time I checked, Onshape doesn't let you use variables for the sketch patterns. 

    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 🔴
  • OgurezzzOgurezzz Member Posts: 3
    Last time I checked, Onshape doesn't let you use variables for the sketch patterns. 

    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.



    Thanks. I will try... It's very strange that some items use variables, but some not...
Sign In or Register to comment.