mayrou
Electrical
- Jan 8, 2014
- 55
hi!
i want to create a macro that select a hole in a product
i developed this macro
but there is a problem with "Set reference1 = selection1.Item(1).Reference"
i don't know why!
somebody can help me!
thx
i want to create a macro that select a hole in a product
i developed this macro
Code:
MsgBox "selectionnez un trou"
Dim InputObjectType(0), Status1
InputObjectType(0)="Hole"
Status1=selection1.SelectElement2(InputObjectType,"Select un trou",false)
If Status1 = "Cancel" Then selection1.Clear: Exit Sub
Dim reference1 As Reference
Set reference1 = selection1.Item(1).Reference
MsgBox reference1.Name
selection1.Clear
but there is a problem with "Set reference1 = selection1.Item(1).Reference"
i don't know why!
somebody can help me!
thx