is there a way to know in FS if the tolerant dimension is active?
I've started implementing the UIHint_CAN_BE_TOLERANT in my relevant custom features.
one of them is the makeRadius FS wich can set a cylinder or conical surface at a certain radius.
if it is a conical surface, my edit logic will add a required query for an edge to measure and set the radius at.
I believe only cylindrical faces are applicable for now.
Is there a way of knowing whether the user has activated the tolerant dimension functionality in the feature dialogue for a particular dimension annotation?
then i won't have to bother them with a reportFeatureInfo for functionality that they're not using.
else
can i make only the UIHint for a particular annotation dependent on another annotation? The editLogic sets definition.measureByEdge so the info is available.
or should I make a duplicate of the whole annotation in an if/else block with/without this UIHint (not very sofisticated i.m.o.)…
kind regards
Jelte
Answers
-
on second thougth:
Does the tolerance-button in the UI actually activate the functionality? or is it only for tuning the options and it's always active?0 -
@jelte_steur_info I believe you want the "getTolerantParameterIds" call, which will return the list of parameters that have their tolerance enabled.
With the button not pressed the quantity is like any other quantity that doesn't have a button, with it pressed it gets tolerances.
Paul Chastell
TVP, Onshape Labs0

