mayrou
Electrical
- Jan 8, 2014
- 55
Bonjour!!
I have a problem with reference of selection!!
the red one are wrongs!!
how can I get the reference
th u
I have a problem with reference of selection!!
Code:
MsgBox "select a hole"
Dim InputObjectType(0), Status1
InputObjectType(0)="Hole"
Status1=selection1.SelectElement2(InputObjectType,"Select a hole",false)
If Status1 = "Cancel" Then selection1.Clear: Exit Sub
Dim reference1 As Reference
Set oHole = selection1.Item(1).value
[COLOR=#EF2929]Set reference1 = selection1.Item(1).Reference
Set reference1 = selection1.Item(1).Value.Reference[/color]
the red one are wrongs!!
how can I get the reference
th u