×
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 to put parts onto unique layers.

Macro to put parts onto unique layers.

Macro to put parts onto unique layers.

(OP)
I have written a macro to put all the geometry from a layer into a part. This allows me to export my SWX BOMs into my current database. The schlepp is that I have to put all my swx parts on to their own layer manually. Does anyone know how to do it automatically?

RE: Macro to put parts onto unique layers.

Durr, more information please. I didn't really follow what you're trying to do.

RE: Macro to put parts onto unique layers.

I believe CMcF wants an automated way to put each part in an assembly on a separate layer in the drawing file.

RE: Macro to put parts onto unique layers.

(OP)
KenBolen,
  Thanks, that is exactly what I meant. I only mentioned the ME10 macro, on the off chance that it could be useful to someone else.

RE: Macro to put parts onto unique layers.

check out the ChangeComponentLayer API call.

There is also some sample code on the SW website.

RE: Macro to put parts onto unique layers.

(OP)
rocheey,
Thanks a lot. I shall let you kow how it works.

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