Counter Hole or counter sunk hole per Icon

Counter Hole or counter sunk hole per Icon

j_weber
Mentor Mentor
406 Views
3 Replies
Message 1 of 4

Counter Hole or counter sunk hole per Icon

j_weber
Mentor
Mentor

Hi everyone, 

 

I'm looking every day to look for easy way to use Inventor. 

So I'm save different hole type in my presets so I can switch to the hole type that I need. 

Now my Idea is, to have some Icons in the ribbon where I can direct chosse the hole type that I want to use. 

Like a little bit how it is in AutoCAD Mechanical. 

Is this possible? 

I'm not a programmer so I aks the experts




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





407 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

Sure sound possible.  Exactly what would you expect to happen when you click the custom button?

Do you still want to see the regular Holes Properties dialog box, that you would normally see if you clicked on the Hole command, or would you want to use a custom Form, or would you want certain value to be automatically filled in a certain way, etc?  Do you want these buttons to be available in multible Environments?  Specific existing (or new custom) Tabs / Panels?

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 4

j_weber
Mentor
Mentor

Hi @WCrihfield 

I have the idea, that when I click on the button, the regular hole dialog opens but with the settings for the hoe type that I want. I think that would help for the first step




Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault





0 Likes
Message 4 of 4

WCrihfield
Mentor
Mentor
I know how create hole features from code, and I know how to launch the manual Hole command from code, but I don't think there is anything in the 2021 API for the Hole feature presets.
Since this is only used for manually interacting with the dialog box, it's probably not high on the pecking order for things to implement either.
We may still be able to create a workaround macro though that uses a series of SendKey type commands, which is basically like virtual keyboard typing, to mimic selecting the preset you want.
I'm using Inventor Pro 2021, so I'm not sure if your UI will react the same as mine, but I tested this theory by manually launching the hole command, had to press the [TAB] key 3 times to get the Presets drop-down in focus, then I can use the arrow keys to navigate the available options within the drop-down.
These sort of codes generally arent as reliable as the alternative, but hey...if it works for now, it could save some time.
Does that sound like something you would be interested in?

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes