How to edit dimensional constrain with the Inventor Dialog showing

bradeneuropeArthur
Mentor
Mentor

How to edit dimensional constrain with the Inventor Dialog showing

bradeneuropeArthur
Mentor
Mentor

How can I edit a dimensional constrain with the Inventor Dialog showing, as in the picture.

bradeneuropeArthur_1-1736514263365.png

 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

0 Likes
Reply
48 Views
2 Replies
Replies (2)

WCrihfield
Mentor
Mentor

Hi Arthur.  This is just an educated guess, but that looks a lot like a 'MiniToolbar', which we can create with the CommandManager.CreateMiniToolbar method.  If you look into the VBA sample the online help page links to, you can see that these can be pretty dynamic, if you want to put that much effort into them.  I have only used them for very basic purposes myself, so far, but plan on utilizing them more in the future, due to how convenient they can be.  The text box control within it could likely show the DimensionConstraint.Parameter.Expression value, for editing that directly.  But I'm not sure it would behave exactly the same, due to how we can actually assign or change the names of the parameters involved through those 'normal' mini dialogs.  How to add that little fly-out control as the right edge of the text box control, I'm not sure about at the moment.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes

WCrihfield
Mentor
Mentor

I was interested in this, so I went ahead and explored into it myself a bit.  I will attach the code I have put together so far, but it is not finished yet.  The resulting dialog does not look exactly like the one expected yet either, but maybe there is still a way to change that.  It may simply not a MiniToolbar, but a custom Windows Form or something similar to that.  It's not working exactly as planned yet either, but not causing any major problem when used right now either.  But the edits do not take immediate effect, or not the expected immediate effect yet.  Needs some update or rebuild type something included at the events.  I did put some exploratory stuff into it also, in an attempt to figure out what is going on.  Seems there are already 6 default controls in it, but two are unknown type.

 

I'm leaving for the day, and weekend right now though.  Have a great weekend, and maybe I'll revisit this on Monday, if I'm not swamped with other stuff. 😉

Wesley Crihfield

EESignature

(Not an Autodesk Employee)