×
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 Question
2

Macro Question

Macro Question

(OP)
Can anyone tell me why this macro will run when i press play inside the macro editor, but it i try and do it from SW or a custom macro button i get nothing? I copied from the API help, and made a button just messing around. thanks!

RE: Macro Question

If the macro works fine in SW, then it's probably the way you set up the button.

cheers

RE: Macro Question

2
SW can only start code that resides in a Module.  All your code resides in the form "PDMWorks".  There is a single sub inside the module "Macro11" that does nothing.  This is what gets run when you try to run it from SolidWorks.  To show the form, you need to add the line

PDMWorks.Show

to the currently empty Sub main() in module Macro11.

-handleman, CSWP (The new, easy test)

RE: Macro Question

(OP)
Wow that was easy, i never would have guessed it. Thanks Handleman!

Tony

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