
Ps. Чето как то совсем все плохо
Dim SchCompFunc 'As PspFunctional
'Set SchCompFunc = objPspWorkbench.GetInterface("CATIAPspFunctional", Prd.ReferenceProduct)
Set SchCompFunc = objPspWorkbench.GetInterface("CATIAPspFunctional", Prd)
-не работает
- Код: Выделить всё
Sub CATMain()
Dim productDocument1 As ProductDocument
Set productDocument1 = CATIA.ActiveDocument
Dim selection1 As Selection
Set selection1 = productDocument1.Selection
selection1.Search "Type=*,all"
On Error Resume Next
For i = 1 To selection1.Count
Set rr = selection1.Item(i).Value.GetItem("CATIAPspFunctional") 'CATIPspFunctional CATPspFunctional PspFunctional - ничего
If Err.Number <> 0 Then Err.Clear Else MsgBox "Good"
Next
End Sub
- по нулям



r16sp9.......