×
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

DWG Properties Problem

DWG Properties Problem

DWG Properties Problem

(OP)
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
 

RE: DWG Properties Problem

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

 

RE: DWG Properties Problem

(OP)
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

RE: DWG Properties Problem

Drop Downs and current values not working with drawings.

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