Nadal robię nieco większy postęp w analizie części za pomocą menedżera dokumentów solidworks (API) i nie wiem, czy możliwe jest odzyskanie informacji o gwintowaniu, wierceniu, frezowaniu?
Jeśli ktoś korzysta z tej funkcji, to interesuje mnie jakiś utwór lub fragment kodu :)
Witam, rzeczywiście, ta funkcja działa dobrze, używam jej nawet od początku, ale chciałbym nie musieć otwierać części, aby sprawdzić ten parametr i zrobić to z poziomu "Menedżera dokumentów SolidWorks"
FYI
Function Controle_Parametre_Fraisurage(swApp As SldWorks.SldWorks, swModel As SldWorks.ModelDoc2, i As Long) As String
Dim swSelMgr As SldWorks.SelectionMgr
Dim swFeat As SldWorks.Feature
Dim swWizHole As SldWorks.WizardHoleFeatureData2
Set swSelMgr = swModel.SelectionManager
Set swFeat = swModel.FirstFeature
Do While Not swFeat Is Nothing And Controle_Parametre_Fraisurage = ""
Select Case swFeat.GetTypeName
Case "HoleWzd"
Set swWizHole = swFeat.GetDefinition
If swWizHole.FastenerType2 = 141 Or swWizHole.FastenerType2 = 142 Then Controle_Parametre_Fraisurage = "Type de fraisurage incorrect détecté"
End Select
Set swFeat = swFeat.GetNextFeature
Loop
End Function