×
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

Macro: identifying lines, edges, faces, etc

Macro: identifying lines, edges, faces, etc

Macro: identifying lines, edges, faces, etc

(OP)
When I record a macro that involves me selecting lines, edges, faces, etc the macro includes the "selectbyid2" member. The problem with this member is that it selects based on X Y Z location and not by a name. So if I try to run the macro again with an entity in a slightly different location the macro fails. Is there anyway to select entities using a name rather than location?

Any help would be very appreciated.

RE: Macro: identifying lines, edges, faces, etc

If you want to have a macro that handles selections, you need to learn how to use the "Selection Manager" object.  Recorded macros are exceptionally bad at handling selections in a manner that allows repeated use in other circumstances.

In short, you will need to learn how to program.

RE: Macro: identifying lines, edges, faces, etc

(OP)
TheTick: Please try to appreciate the difference between programming syntax and simply knowing member names. I have a perfectly fine grasp of syntax and conditional logic, what I don't know much about are classes and members of the SW API seeing as I am fairly new to it. If I need to explore the Selection Manager, so be it, but the asinine judgments about my programming abilities are a tad unnecessary...

RE: Macro: identifying lines, edges, faces, etc

Glad to hear you already know how to program.  I wasn't intending to pass judgment on your abilities.  I just wanted to make it clear that this could not be accomplished by macro-recording.

Step 1 complete.  You know how to program.  Now all we need is someone who is willing to help you learn selection management objects in SW API.  I suggest handleman.  I'm done here.

RE: Macro: identifying lines, edges, faces, etc

(OP)
I'm very willing to teach myself. Any online resources you would recommend that explain the inner workings of the selection manager? I was hoping to avoid wading through the API help and object browser.

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