Difference between pages "IsSurfaceAbove" and "IsUpdatable"
From scripting
(Difference between pages)
(Created page with " Function IsSurfaceAbove(BottomObj As Variant, TopObj As Variant) As Boolean If IsUpdatable(BottomObj) = False Or IsUpdatable(TopObj) = False Then IsSurfaceAbove...") |
(Created page with " Function IsUpdatable(InputObj As Variant) As Boolean On Error GoTo Blast2 MyPart.UpdateObject InputObj IsUpdatable = True Exit Function Blast2: IsUpdatable = False End...") |
||
Line 1: | Line 1: | ||
− | Function | + | Function IsUpdatable(InputObj As Variant) As Boolean |
− | + | On Error GoTo Blast2 | |
− | + | MyPart.UpdateObject InputObj | |
− | + | IsUpdatable = True | |
− | + | Exit Function | |
− | + | Blast2: | |
− | + | IsUpdatable = False | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
End Function | End Function | ||
[[Category:CATIA DP VB]] | [[Category:CATIA DP VB]] |
Latest revision as of 07:04, 22 April 2017
Function IsUpdatable(InputObj As Variant) As Boolean On Error GoTo Blast2 MyPart.UpdateObject InputObj IsUpdatable = True Exit Function Blast2: IsUpdatable = False End Function