AnsweredAssumed Answered

Resize selected holes

Question asked by Ирина Зайцева on Jan 20, 2019

Hello, I need to change the diameters of all the holes on a part via a formula that uses the hole's radius(or diameter).

I was trying early to select all the holes via api and I think I'm getting somewhere with this

 modeldoc.Extension.SelectByID2("", "FACE", 0, 0, 0, false, -1, null, 0);

Then I'm planning to add selected faces to a list and do the same for all the views, but thats probably another question.


For now, lets assume that all the holes(cylindrical faces) are already selected by the user(user selected all the cylindrical faces that are needed to be resized, and the holewizard was not used at all).

How do I get the radius\diameter of each selected face, and how do I change it? Assume that the change is minimal and the part will not break.


I'm also thinking that my approach to this is flawed, but before I can tackle hole selection via api that what I'm stuck with.