Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep 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
Jan 8, 2014
55
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]
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor