×
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

Can't open SWAPI samples
2

Can't open SWAPI samples

Can't open SWAPI samples

(OP)
I am trying to learn this macro and API stuff by looking at samples, but when I downloaded the sample, I can't open the files. I downloaded a SpotLightonAPI file that contained 6 files:

BeamSectMod.frm
BeamSectMod.vbp
BeamSectMod.vbw
Rectangle.sldprt
SWW02Spotlight on API.ppt
Tee.sldasm

The file contains tips on creating drawings via a macro, so I wanted to look at the code. But, it won't let me (I can open the ppt and SW files, but not the macro files). Do I need to download a VB editor to do this?

Thanks!
Joe

RE: Can't open SWAPI samples

Short (and less accurate) answer: yes.  you need a VB editor.

Longer answer: Maybe not.  I don't know a whole lot about it, but you may be able to view the code by opening the .frm file in a text editor.  I think it depends on the version of VB used to create the files.

RE: Can't open SWAPI samples

This is a full VB (VB6?) project, not a VBA (SW macro) project.

There may still be hope.  You can import the form "BeamSectMod.frm into a new macro and see the form and its related code.  It should be as simple as drag-and-dropping the file into the "modules" folder in your VBA macro editor.

RE: Can't open SWAPI samples

(OP)
Holy crap thats a lot of code! 11 pages of code! Thats little more than my SaveAs Macro! LOL

Back to the point, I was able to open it in the text editor, thanks! I will start looking through it and maybe just try little segments of it at a time.

Thanks again guys!

Joe

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