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.

Drive Variable Studio from Part Geometry

fred_burttfred_burtt Member Posts: 11 PRO
Hi,

I have what will be a recurring project that tiles a wall of various sizes with formed sheetmetal parts, and may or may not have differing windows and doors.

I am creating the "tile" layout on a sketch of the wall using lines extended from the window and door edges, then subdividing the remaining spaces. 

As such, the resulting sizes vary quite a bit, and my plan is to use the dimensions of the resultant columns and rows as variables to drive the sizes of the "tiles" to match.

Is there any way to use sketch/part dimensions to drive a variable studio table?

Comments

  • EvanReeseEvanReese Member, Mentor Posts: 2,136 ✭✭✭✭✭
    Measure Value custom feature.
    Evan Reese
  • SethFSethF Member Posts: 130 PRO
    edited July 2022
    @Evan is that able to write variables in a variable studio? If so a) I'll be super hype about it, and b) I wasn't able to figure it out how to use it for that. 

    @fred_burtt the feature Evan linked to can be used to drive variables in part studios, and there are other features out there that import variables from other part studios. I don't think there's a way to drive variable studios from a part studio like that, but you can achieve similar (even if more clunky) functionality.
  • RyanWiebeRyanWiebe Member Posts: 8 ✭✭
    A “driven” Global Variable would be sweet to have!
  • EvanReeseEvanReese Member, Mentor Posts: 2,136 ✭✭✭✭✭
    Ah, I read too quickly. I don't think you can add variables to a variable studio from a part studio.
    Evan Reese
  • fred_burttfred_burtt Member Posts: 11 PRO
    @Evan_Reese:  I am using Measure Value to extract the dimensions I need to variables, but they are confined to that part studio.

    I need to export them to a Variable Studio so that they can be applied globally.

    @SethF:  It sounds like the features to import variables might be the ticket for me, which have you used?

    A clean solution to this would be very useful, since it would allow the use of a varying master sketch to drive any number of part studios.
  • S1monS1mon Member Posts: 2,986 PRO
    Keep in mind that you can derive a sketch or part into other part studios. This can be a good way to drive top-down design.
  • fred_burttfred_burtt Member Posts: 11 PRO
    @S1mon:  I haven't used the Derive feature much, thanks for the heads up, I'll be putting that to work.

    The std derive doesn't handle variables, but SuperDerive did the trick, is exactly what I needed.

    Thanks to all of you, problem solved and I understand OnShape much better. 
  • john_mcclaryjohn_mcclary Member, Developers Posts: 3,936 PRO
    @Evan_Reese:  I am using Measure Value to extract the dimensions I need to variables, but they are confined to that part studio.

    I need to export them to a Variable Studio so that they can be applied globally.

    @SethF:  It sounds like the features to import variables might be the ticket for me, which have you used?

    A clean solution to this would be very useful, since it would allow the use of a varying master sketch to drive any number of part studios.
    There is no way to write to a variable studio by any other means than hand typing it.

    I've requested this feature to be added as soon as it was released. Only time will tell if it happens
  • SethFSethF Member Posts: 130 PRO
    edited July 2022
    @fred_burtt
    Here's a relevant forum post. It references the function you can use to get all the variables from a given context. The linked FS is probably a bit overkill for what you need, but pretty fly.
Sign In or Register to comment.