Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

DWG Properties Problem

Status
Not open for further replies.

RBTEngineer

Mechanical
Joined
Mar 12, 2010
Messages
3
Hey everyone,
I have been struggling for days to find one small bug in my Solidworks API. I am also VERY new to API programming. I've posted this problem on the SolidWorks API forum, but I have only gotten one response to this particular problem. The responder stated that the macro worked fine for him and he did not encounter the problems I listed. He was using Solidworks 2008; I am using Solidworks 2007.

What my API does:
1. If I run the macro when a Part or Assembly is open, it will bring up a window that promps the user to input a set of data (ie, project, finish, vendor, etc.)

2. If I run the macro when a Drawing is open, it will bring up a different window that propmps the user for different data (ie, Checker, Manufacturing Approval, etc.)

The problems:
1. When a Drawing file is open, the user form does not display existing Properties information (like it does when a part or assembly is open).

2. When a Drawing file is open, the drop down menus do not work (again, they work when a part or assembly file is open).

Any help would be greatly appreciated. My API is attached.

Thanks,
Tara
 
Running the macro with SW2010 parts and assys works fine, but with drawings it only works every second try ???

 
That is what's happening in SW 2007. Are the drop down menus working in 2010? And are the userform boxes displaying the current values?

-Tara
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top