Variables in Configuration
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?
Is there any "trick" to assign Variables to the values in Configuration table or this is not implemented yet?
Tagged:
0
Comments
-
What are you trying to do?Senior Director, Technical Services, EMEA0
-
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 Inc0
-
-
In that case, yes. Just put # before the variable name in a cell.Senior Director, Technical Services, EMEA0
-
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 thanks0 -
@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, EMEA0 -
Got it!! Many thanks for your prompt response!0
-
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/20 -
@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
0 -
But what if you wan't to chance the way how they depend on each other according to configuration?//rami0
-
In that case you would configure Height and Width variables and enter #Length/2 etc, into the table cells?Senior Director, Technical Services, EMEA0
-
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.S.
Business Systems and Configuration Controller
HWM-Water Ltd0 -
@3dcad
Something like this? and as @owen_sparks points out, the video shows a nice conditional formula.
www.accuratepattern.com3 -
-
@bruce_williams Thanks,. exactly !!!0
Categories
- All Categories
- 10.2K Community Support
- 4.6K General
- 194 Account and subscriptions
- 353 Data management
- 1.6K Product Feedback
- 215 New in Onshape
- 15 Onshape Labs
- 75 CAM Studio
- 35 PCB Studio
- 107 Simulation
- 209 Onshape Mobile
- 315 App Store & Partners Apps
- 8.2K Using Onshape
- 1.8K Drawings
- 2.3K FeatureScript
- 324 Learning Center
- 254 Education Community







