Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Mates

Status
Not open for further replies.

mdrummond

Industrial
Feb 21, 2008
37
I am trying to select two cylindrical surfaces to axial mate. These surfaces have know names and I want to select these faces by their name. I try "swmodel.Extension.SelectByID2("A", "FACE", 0, 0, 0, True, 0, Nothing, 0)", but it selects some random face. Any help would be great. I am a beginner!
 
Replies continue below

Recommended for you

Face IDs can change if they are edited. You might want to consider creating an axis in each part and mate to those instead.
 
i edit the names of the faces to a name for use later, i'd like to use the new face name if possible
 
Don't use SelectByID2 at all if possible. Rather, at some point you've gotten a pointer to the Face2 object in order to set its name. Rather than setting the name and then trying to select it later by that name, keep the pointer to the Face2 object and select it directly using Select4.

-handleman, CSWP (The new, easy test)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor