Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't open SWAPI samples 2

Status
Not open for further replies.

JoeMoss

Mechanical
Mar 8, 2006
37
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
 
Replies continue below

Recommended for you

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.
 
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.
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor