Hole tool properties in ILogic

Hole tool properties in ILogic

ZacRocket
Contributor Contributor
441 Views
2 Replies
Message 1 of 3

Hole tool properties in ILogic

ZacRocket
Contributor
Contributor

This may be impossible but I have to ask. Is there way for iLogic to know when the Hole Tool has been clicked?

 

I am trying to create an external rule that gets standard dimensions for tapped countersinks from an excel spreadsheet. There isn't a column in thread.xls so I need to write my own program. I would like the program to fill in the countersink angle and diameter in the hole tool dialog box based on the size of the hole when the countersink option is clicked. 

 

I found the command for opening the Hole tool:

ThisApplication.CommandManager.ControlDefinition.item("PartDMHoleCmd").Execute

Is there a property to know if this command is running? 

0 Likes
442 Views
2 Replies
Replies (2)
Message 2 of 3

A.Acheson
Mentor
Mentor

I don't think there is much use in going the command route as you will have difficulty navigating the dialogues and or checking what data is there. You can check for the active command sourced from here 

CommandManager.ActiveCommand() As String

after the rule is launched but if you want it active always you will need some kind of an event watcher and likely it to be an addin. No expierience on this end so I can't offer more advise. 

 

What you can do after that may be limited and require key strokes and may not be stable. 

 

 

You might have better luck working with the holefeature properties directly. It would be nice if you could leverage the hole presets but I don't believe that is open to the API. 

Sample here 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 3

ZacRocket
Contributor
Contributor

Thanks for the info. I will look into it but you are probably right and I am currently exploring the alternatives of editing the hole features directly.

0 Likes