Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with reference

Status
Not open for further replies.

mayrou

Electrical
Joined
Jan 8, 2014
Messages
55
Location
TN
Bonjour!! [ponytails2]

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 [soapbox]
 
solution is in online doc (with many other good stuff worthy to read)
sorry but ...RTFM

Installe la doc et prend 15 minutes a regarder ce qu il y a dedans a propos de reference... Il y a des methodes pour creer des references

Eric N.
indocti discant et ament meminisse periti
 
je l'ai utilisé avec la selection des point et c a bien marché!!!!
mais dans ce cas c'est bizarre!
sorry et ... METC
 
check this

Eric N.
indocti discant et ament meminisse periti
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top