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!

InputObjectType(0) -> problem???

Status
Not open for further replies.

aponsardin

Mechanical
Joined
Jun 12, 2008
Messages
5
Location
SM
Hi everybody

Does anyone know why I cannot select a point with the following code. If I replace "Point" by "Face" the code works...

Thank you for your help


This is my code:

--------------------------------------------------------
InputObjectType(0) = "Point"
Status = Selection.SelectElement2(InputObjectType, "Select the Point to draft", True)
If (Status = "cancel") Then Exit Sub
Set PointToDraft = Selection.Item(1).Value
Selection.Clear
Name1 = PointToDraft.Name
MsgBox (Name1)
------------------------------------------------------

 
you could try this magic word as the automation type for selection "ZeroDim"
 
Hi PeterGuy,

Thanks for your help, I'll try...

Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top