I am trying to send an email with the results from a macro.
The macro just gets the length,width and heoght of the part (bounding box).
Can it then send that as an email to a person ?
SolidworksApi macros
I am trying to send an email with the results from a macro.
The macro just gets the length,width and heoght of the part (bounding box).
Can it then send that as an email to a person ?
SolidworksApi macros
SolidWorks API hasn’t any e-mail sending functions. However you can easily operate the VBA/Win API functions. Here is the sample:
http://www.cpearson.com/excel/Email.aspx
__________________________
Regards,
Artem Taturevych
Application Engineer at Intercad
http://intercad.com.au/
Tel: +61 2 9454 4444
Here is one I did. Modify as per your need.
Send Email via SolidWorks : Macro to send email with assembly name in subject.
Hi Deepak..
I appreciate your input on this....It would be awesome if the macro sent the email. I am trying to automate this feature in the EPDM workflow.
So basically this is what I am trying to do,
When a part gets through a transition in EPDM the "overall size" macro will run and send an email with the dimensions in the body of the email.
Maybe there is an easier way to do this ?
Thanks for the input Artem.
Please take a look at this.....
My software automatically creates and sends the email to one or more people by using a macro.
http://www.slideshare.net/isocam/mechtools-for-autodesk-inventor
At present it works in Inventor however I am planning to release it for Solidworks.
Please let me know what you think, and will it be of any use to you???
Regards
Darren
here is a DLL just add it and then call
sendmail.mail.Emails(ToEmail).SendMail(SmtpMailLocation, fromEmail, EmailBody, Subject, MailPriority.Normal)