Message 1 of 3
SendKeys

Not applicable
11-26-2008
11:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a small bit of code that I have been using to give me quick access to the iProperties.
I have moved to IV 2009 and it still works with my 32 bit machine but will not work with my 64 bit machine.
Has there been some changes in the 64 bit code that cause this not to function.
Public Sub iProperties()
'Check to see if there is a active file open
If ThisApplication.Documents.Count < 1 Then
MsgBox "There must be a active Inventor file open", vbCritical
Exit Sub
End If
'Check to see if in model or presentation mode
If ThisApplication.ActiveDocumentType = kPartDocumentObject Or _
ThisApplication.ActiveDocumentType = kPresentationDocumentObject Then
SendKeys "%f", False
SendKeys "i", True
'Check to see if in drawing, assembly or weldment mode
ElseIf ThisApplication.ActiveDocumentType = kDrawingDocumentObject Or _
ThisApplication.ActiveDocumentType = kAssemblyDocumentObject Then
SendKeys "%f", False
SendKeys "t", True
End If
End Sub
This is the machine specs that it is not working on.
Dell T7400
Intell processor X5482 @ 3.20GHz
8 gig of ram
NVIDIA Quadro FX 4600
Window XP64 Pro SP2
Thanks
Ken
I have moved to IV 2009 and it still works with my 32 bit machine but will not work with my 64 bit machine.
Has there been some changes in the 64 bit code that cause this not to function.
Public Sub iProperties()
'Check to see if there is a active file open
If ThisApplication.Documents.Count < 1 Then
MsgBox "There must be a active Inventor file open", vbCritical
Exit Sub
End If
'Check to see if in model or presentation mode
If ThisApplication.ActiveDocumentType = kPartDocumentObject Or _
ThisApplication.ActiveDocumentType = kPresentationDocumentObject Then
SendKeys "%f", False
SendKeys "i", True
'Check to see if in drawing, assembly or weldment mode
ElseIf ThisApplication.ActiveDocumentType = kDrawingDocumentObject Or _
ThisApplication.ActiveDocumentType = kAssemblyDocumentObject Then
SendKeys "%f", False
SendKeys "t", True
End If
End Sub
This is the machine specs that it is not working on.
Dell T7400
Intell processor X5482 @ 3.20GHz
8 gig of ram
NVIDIA Quadro FX 4600
Window XP64 Pro SP2
Thanks
Ken