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.

Options

"Lookup Table" Style configurations

imants_smidchensimants_smidchens Member Posts: 62 EDU
Hi! I'm working on creating a library of configurable robotics parts - shafting of various lengths and profiles from vendors being one example of its contents. 
I'd like to create one configurable part for all the different shaft types, where the end user selects a profile, then length. The tricky part is that different profiles of shaft have different valid lengths. Ideally, the configurations would end up looking like the standard content insert menu, where depending on profile selections, different drop downs/options become available to the user. I could set up a FS with the right options, but for assembly work the same issue remains present.

I can spoof this, kind of, by using multiple suppressed "delete part" operations for invalid configurations, but the issue is that the insert menu with configurations then must list every length for all shafting, with most being invalid for a given profile. 

Is this something I can do with configurations/variables, do I need to use the API/write an extension (which I know basically nothing about lol) or is this currently not possible?

TL;DR: can I make a custom standard content library?
 
Cheers!
Imants

Comments

  • Options
    MichaelPascoeMichaelPascoe Member Posts: 1,713 PRO
    edited June 2022
    So the reason it doesn't work now is that the "Length" drop down list is the same for all profiles and you need it to change depending on the selected profile? I'm not sure of a way to do this easily as configurations can't be configured by other configurations.

    You could duplicate the part studio and have a different part studio per profile. Then have those in one document with the name of your part "Shaft". The workflow could look like this: Select the "part" document shaft > select the profile (which is actually a part studio) > Then select the length from the drop down configuration (Each part studio will be configured for different lengths). 

    It might be possible with API. I'm not the right guy for that. Perhaps someone else can provide more info.

    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   cadsharp.com/featurescripts 💎
  • Options
    MichaelPascoeMichaelPascoe Member Posts: 1,713 PRO
    Here is an improvement request for Conditional Configurations.

    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   cadsharp.com/featurescripts 💎
  • Options
    imants_smidchensimants_smidchens Member Posts: 62 EDU
    So the reason it doesn't work now is that the "Length" drop down list is the same for all profiles and you need it to change depending on the selected profile? I'm not sure of a way to do this easily as configurations can't be configured by other configurations.

    You could duplicate the part studio and have a different part studio per profile. Then have those in one document with the name of your part "Shaft". The workflow could look like this: Select the "part" document shaft > select the profile (which is actually a part studio) > Then select the length from the drop down configuration (Each part studio will be configured for different lengths). 

    It might be possible with API. I'm not the right guy for that. Perhaps someone can provide more info.
    I thought about this, and it's what I was leaning towards implementing if I couldn't get a more versatile single part studio solution working. Seems like an overall reasonable approach :)
    Thanks!

  • Options
    MichaelPascoeMichaelPascoe Member Posts: 1,713 PRO
    edited June 2022
    Np!

    If you didn't already have this workflow: you could derive a single part studio with infinite lengths to multiple part studios within that document, then have different length configurations per each derived part studio. This way you only need one part studio modeled.

    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   cadsharp.com/featurescripts 💎
  • Options
    Evan_ReeseEvan_Reese Member Posts: 2,064 PRO
    I've wanted to be able to do this with configs for a while. It would be really powerful.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
Sign In or Register to comment.