×
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

Monitoring with API

Monitoring with API

Monitoring with API

(OP)
hi all,
I would like to know if there is a way using api or any other way to modify custom properties of a part if i use a specific feature, what i want is when i use hole wizard (tapped ones) the custom property "PROCESS" changes to "HOLE". but i dont want to run a macro after i finished the part, i want Solidworks to monitor the actions i do and if i use holy wizard the property is changed.I know how to use api, i just need the monitoring code or the functions name, i don't want this to make solidworks slow though.
 

RE: Monitoring with API

You would want to make this as an addin.  To "monitor" actions, you need to use object events.  This requires early binding and dimensioning objects using the "Withevents" keyword.  Then you can keep track of features as they are created and deleted and then act accordingly.

An article about early binding:
<http://esoxrepublic.com/blog/2008/07/24/early-binding-speeds-api-programming/>

batHonesty may be the best policy, but insanity is a better defense.bat
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: Monitoring with API

Do you have an up to date method of creating an addin from a macro in vb 2008 express?  I've tried to follow your old one, but VB6 is just not the same.

RE: Monitoring with API

(OP)
i will try that.. thanks.. :D

RE: Monitoring with API

Unless something has changed, you cannot create add-ins with VB Express.

-handleman, CSWP (The new, easy test)

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