×
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

API - User Preferences

API - User Preferences

API - User Preferences

(OP)
I'm looking for someone who is able to translate the help files on this one, into English  <grin>

Have several calls which read/set/reset various preferences, but Im hoping there is a preference, either SW, User, or ModelDoc, which will allow me to temporarily disable the dialog which asks me whether I want to save a ModelDoc, when all instances of it end up being suppressed in my assembly.

Anyone?

RE: API - User Preferences

One idea...

Go through the following steps to suppress the component:
1.) Have SW open the component document
2.) Go back to assembly and suppress the component
3.) Go to open component and close using SldWorks.QuitDoc

Having the component open will prevent the "Do you wanna save" message from appearing when you suppress the component, because the suppression is not closing the file.  QuitDoc closes the component file without any messages.

There's no double-lock defense; there's no chain on my door.
And I'm available for consultation,
but remember your way in is also my way out

RE: API - User Preferences

(OP)
Great idea. Whenever possible. I try to do things 'by the book' <g>

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