Hi Arthur. I had not noticed that before, because I pretty much never use that specific type of dimension, but I do see it this morning. This is certainly very odd, and seems like it might be a bug. I have tried most of the filter settings within the SelectionFilterEnum, including the original "kSketchDimConstraintFilter", which does lets me select other sketch dimension types, but not that type, for some reason. Also tried the most generic of them all "kAllEntitiesFilter", which still will not allow me to select it. I am still using Inventor Pro 2024.3.3 at the moment, but I am not sure if this is a 'version' specific issue or not. This should likely be brought to the attention of someone at Autodesk, like maybe @MjDeck. If anyone can confirm, deny, or explain this situation, it is likely him. And if not, he will most likely be able to inform the rest of the team at Autodesk about this situation, so that it can get it fixed.
The first thing that came to mind though, when I first read your question, was the line of code at around Line 39, and the other line where that is being used (Line 68)...the ValueUnitsTypeEnum, which threw me off at first, because I am used to working with either of the other two very similar sounding ones (ValueTypeEnum & UnitsTypeEnum). I did not get the chance to figure out a reliable way to determine the proper value of that Enum from the selected DimensionConstraint or its Parameter, so that I could dynamically set the proper value for it in Line 68 (where it is creating the 'MiniToolbarValueEditor' control). But it would not be logical for that one setting within the Class block of code to cause the 'Pick' function outside of that area to not work properly. In the short term, we may have to use a custom 'Picker' type Class (using the InteractionEvents, SelectEvents, & OnSelect Event), instead of the simple Pick function, and instead of relying on the SelectionFilterEnum, we can use the ObjectTypeEnum, or TypeOf operator or TypeName function in a custom block of code within the OnSelect event handler, to do the selection filtering for you. If that would be possible, or worth while in this situation.
Mike may even know of a better way to achieve what you are trying to do here than us. I've got some other stuff to catch up on at work this morning, but will undoubtedly be thinking about this interesting challenge while doing so.
Edit: Posting Link to other related forum topic: CommandManager Pick not selecting ArcDimensionalContraint
Wesley Crihfield

(Not an Autodesk Employee)