Variables in Configuration

turan_aydin
turan_aydin Member Posts: 17 ✭✭
Hello,
Is there any "trick" to assign Variables to the values in Configuration table or this is not implemented yet? 
 

Comments

  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,128 image
    What are you trying to do?
    Senior Director, Technical Services, EMEA
  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,279 image
    Configuring variable values should work -- configure them like you would any other feature (e.g., edit the variable, right click on the field where you would enter the variable value and click "Configure").
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • 3dcad
    3dcad Member, OS Professional, Mentor Posts: 2,483 PRO
    @ilya_baran
    I think @turan_aydin wanted to use variable in configuration table as value.
    //rami
  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,128 image
    In that case, yes. Just put # before the variable name in a cell. 
    Senior Director, Technical Services, EMEA
  • jerome_goyet
    jerome_goyet Member Posts: 16 ✭✭
    Hello, 

    About configuration variables, I'm currently facing the follwing issue :

    With reference to this document (part studio 1 _ version B2_janv2018) : https://cad.onshape.com/documents/9181221e67016abc6e611600/w/1177aed0fb69afc9f9fdb1bf/e/5d9c264a121f1f416843aa28

    in the linear pattern 2 feature, the instance account is set with the '#nbr_ventaux' variable; this variable is defined in the configuration variables.
    Graphically, this linear pattern works correctly when the variable is set to less than 5; then, when it is greater than 4, only 4 instances are displayed.

    I cannot figure out if it is an issue related to the variable or a video generation issue ?

    Would you have any hints about that kind of issue ?

    Many thanks
  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,128 image
    @jerome_goyet the issue is with your transform feature. As more instances are added, the transform feature does not know about them. You can change the variable to the maximum value it will ever be and add the extra instances to your transform feature. This should have been modelled in meters from the start.

    Senior Director, Technical Services, EMEA
  • jerome_goyet
    jerome_goyet Member Posts: 16 ✭✭
    Got it!! Many thanks for your prompt response!
  • turan_aydin
    turan_aydin Member Posts: 17 ✭✭
    yes @3dcad, I want to set variables in configuration table , but @NeilCooke I'm not getting how to do it. Example , I have prism  L100 x H50 x D25.
    And I want to define it as L = 100 , H=L/2 , D=H/2
  • kevin_o_toole_1
    kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565 image
    @turan_aydin
    If the variables H and D only depend on length, they do not need to be configured.

    Here's an example accomplishing what I think you're saying:
    https://cad.onshape.com/documents/d8bfc777e7f46fc2f1a4be67/w/da2603b8d1603199cf48b5cd/e/de8b269801e1f03af5b61a39


  • 3dcad
    3dcad Member, OS Professional, Mentor Posts: 2,483 PRO
    But what if you wan't to chance the way how they depend on each other according to configuration?
    //rami
  • NeilCooke
    NeilCooke Moderator, Onshape Employees Posts: 6,128 image
    In that case you would configure Height and Width variables and enter #Length/2 etc, into the table cells?
    Senior Director, Technical Services, EMEA
  • owen_sparks
    owen_sparks Member, Developers Posts: 2,660 PRO
    Nice example in the demo video whereby a shaft diameter is set with a logic driven expression.  So if shaft length over a certain value make it thicker.  Even has a chap with a proper accent narrating it o:)

    O.S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • bruce_williams
    bruce_williams Member, Developers Posts: 842 EDU
    @3dcad

    Something like this?  and as @owen_sparks points out, the video shows a nice conditional formula.  




    www.accuratepattern.com
  • 3dcad
    3dcad Member, OS Professional, Mentor Posts: 2,483 PRO
    @bruce_williams
    Probably so, for some reason OP had difficulties on performing that..
    //rami
  • turan_aydin
    turan_aydin Member Posts: 17 ✭✭
    @bruce_williams Thanks,. exactly !!!