Difference between pages "IsUpdatable" and "IsUpdatableInPart"
From scripting
(Difference between pages)
(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...") |
(Created page with " Function IsUpdatableInPart(InputObj As Variant, CurPart As Part) As Boolean On Error GoTo blast CurPart.UpdateObject InputObj IsUpdatableInPart= True Exit Function blast...") |
||
Line 1: | Line 1: | ||
− | Function | + | Function IsUpdatableInPart(InputObj As Variant, CurPart As Part) As Boolean |
− | On Error GoTo | + | On Error GoTo blast |
− | + | CurPart.UpdateObject InputObj | |
− | + | IsUpdatableInPart= True | |
Exit Function | Exit Function | ||
− | + | blast: | |
− | + | IsUpdatableInPart= False | |
End Function | End Function | ||
[[Category:CATIA DP VB]] | [[Category:CATIA DP VB]] |
Latest revision as of 07:04, 22 April 2017
Function IsUpdatableInPart(InputObj As Variant, CurPart As Part) As Boolean On Error GoTo blast CurPart.UpdateObject InputObj IsUpdatableInPart= True Exit Function blast: IsUpdatableInPart= False End Function