Page 1 of 1
Monitor dimensions from two sketches with sensor?
Posted: Thu Oct 14, 2021 2:48 pm
by Hansjoerg
Hello to all,
is there a way to monitor two sketch dimensions from different components with one sensor?
As soon as the dimension from component 2 is larger than the dimension from component 1, the alarm should be triggered.
I have only found the possibility to monitor one dimension against a statically given value.
Regards
Re: Monitor dimensions from two sketches with sensor?
Posted: Thu Oct 14, 2021 3:03 pm
by mike miller
You got me thinking! Check out the example below. It's pretty hokey but it works.
In case it's future version for someone:
1) Create a global variable that states =if(dim1>dim2,1,2). This compares the two dimensions against each other and outputs a value in inches.
2) Create a sketch with a dimension linked to the above global variable.
3) Create a sensor that monitors the above dimension. (It can ONLY be 1 or 2, basically true or false.)
Re: Monitor dimensions from two sketches with sensor?
Posted: Thu Oct 14, 2021 3:04 pm
by Glenn Schroeder
I will confess that I've never used sensors (though I should probably learn), so this may be way off base. Now that I've made that admission, can you insert a sketch in the Assembly, with lines driven by the Part sketches, insert driven dimensions on these lines, and attach the sensor to those driven dimensions?
Re: Monitor dimensions from two sketches with sensor?
Posted: Thu Oct 14, 2021 4:45 pm
by Hansjoerg
Hello Mike
great solution, basically so simple, but you have to come up with the idea first.
Thanks for sharing the solution.