以下是AutoCAD的一些操作方法。它与excel、access、word、whathaveya几乎完全相同。
- Sub test()
- Dim objOL As New Outlook.Application
- Dim objMail As MailItem
- Set objOL = New Outlook.Application
- Set objMail = objOL.CreateItem(olMailItem)
- With objMail
- .To = "EstimatorPerson@KheilmannsHizzouse.com"
- .Subject = "You're falling down on your end, dude!"
- .Body = "Hey Loserboy, The awesomeness that is AutoCAD noticed that you STILL " & _
- "haven't done the estimating based on the Drawing: " & _
- ThisDrawing.GetVariable("dwgname") & ". Don't make me come down " & _
- "there and slap you around again." & vbCrLf & vbCrLf & _
- "By the way, say hi to your wife and my kids."
- .Display
- .Send
- End With
- Set objMail = Nothing
- Set objOL = Nothing
- End Sub
|