×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

[API] How to select a face of a sub-part in an assembly?

[API] How to select a face of a sub-part in an assembly?

[API] How to select a face of a sub-part in an assembly?

(OP)
Hello,

I have an assembly with one sub-component (which is a part).

Using IModelDocExtension.SelectByID2(), I want to select a face of
this sub-part, in the context of the assembly.
I only know the name of the face (for instance "E115")

I tried something like the following but this does not work:

modelDocExtenion.SelectByID2
( "E115@part_body@assembly_component-1@assembly", "FACE", 0, 0, 0,
false, 1, null, swSelectOptionDefault )

I can select the part body, but not one of its faces:

modelDocExtenion.SelectByID2
( "part_body@assembly_component-1@assembly", "SOLIDBODY", 0, 0, 0,
false, 1, null, swSelectOptionDefault )

I also tried to select the face in the context of the part document,
but, of course, in the context of the assembly, the selection list is
empty...

Thanks in advance.

Olivier.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources