Sub THMYL_CreateHolePattern() Dim CATIA As Object Set CATIA = GetObject(, "CATIA.Application") Dim partDoc As PartDocument Set partDoc = CATIA.ActiveDocument Dim part As Part Set part = partDoc.Part ' Select a planar face Dim sel As Selection Set sel = partDoc.Selection sel.Clear() MsgBox "Select a planar face, then press OK" sel.SelectElement2(, "Planar face", True)
MsgBox "THMYL Hole created successfully" End Sub THMYL sometimes includes Knowledgeware (.CATRule) files that enforce design standards. Example:
Dim hole As HybridShapeHole Set hole = factory2D.AddNewHole(faceRef, 10#, 0#, 20#, 0#, 0#, 0#) hb.AppendHybridShape hole part.Update
Sub THMYL_CreateHolePattern() Dim CATIA As Object Set CATIA = GetObject(, "CATIA.Application") Dim partDoc As PartDocument Set partDoc = CATIA.ActiveDocument Dim part As Part Set part = partDoc.Part ' Select a planar face Dim sel As Selection Set sel = partDoc.Selection sel.Clear() MsgBox "Select a planar face, then press OK" sel.SelectElement2(, "Planar face", True)
MsgBox "THMYL Hole created successfully" End Sub THMYL sometimes includes Knowledgeware (.CATRule) files that enforce design standards. Example: thmyl-catia-v5
Dim hole As HybridShapeHole Set hole = factory2D.AddNewHole(faceRef, 10#, 0#, 20#, 0#, 0#, 0#) hb.AppendHybridShape hole part.Update Sub THMYL_CreateHolePattern() Dim CATIA As Object Set CATIA