I'm trying to create a toolbar in Catia. This toolbar (based on a VBA form) will have buttons which should start Catia Commands (among other things). One of the commands I'm trying to start is the "Constraint" command (which should allow you to place dimension to sketch elements in the Sketcher Workbench).
I looked in the command list (view->commands list...) and found "Constraint" for the dimensioning tool and "Constraint..." for the "Constraint box" (which opens a box where you can set geometrical constraints, which is not what I want). I tried with this (the simplest case):
Sub CATMain()
CATIA.StartCommand ("Constraint")
End Sub
and I also tried writing "c:Constraint" in Catia's command field at the bottom of the window.
None of these attempts give me the Constraint command I'm looking for. Instead I get "Unavailable Command" but if I select the sketch element I want to constrain I get the "Constraint box".
How do I start the "Constraint" command (used for dimensions) from VBA instead of the "Constraint Box"?
Regards, Christian
EDIT: Fixed some minor spelling mistakes