edit/update hole without the dialog box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there really no way to edit or update a hole without the dialog box opening? I don't need to change any values at all, i just want the hole to update to the 2019 version of holes where all holes have a sketch under it. I tried using the SilentOperation but that didn't work. See code below:
Dim pdoc As PartDocument
Set pdoc = ThisApplication.ActiveDocument
Dim hFeat As HoleFeature
Set hFeat = pdoc.ComponentDefinition.Features.HoleFeatures.Item(1)
pdoc.SelectSet.Select hFeat
Dim oCntrlDefs As ControlDefinitions
Set oCntrlDefs = ThisApplication.CommandManager.ControlDefinitions
Dim oControlDef As ControlDefinition
Set oControlDef = oCntrlDefs.Item("PartNGxHoleEditCtxCmd")
ThisApplication.SilentOperation = True
oControlDef.Execute
ThisApplication.SilentOperation = False