Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK 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
Jun 12, 2008
5
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)
------------------------------------------------------

 
Replies continue below

Recommended for you

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