- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, all,
There is a Search function in Inventor browser:
At the same time, Inventor provides a API command "AppBrowserSearchCmd" for that. But how to use this API command? I try to use following, but it doesn't work out.
Public Sub Run_Search_Command()
' Get the CommandManager object.
Dim oCommandMgr As CommandManager
Set oCommandMgr = ThisApplication.CommandManager
'Call oCommandMgr.PostPrivateEvent(kNameEvent, "VALPRD09")
'Call oCommandMgr.PostPrivateEvent(kFileNameEvent, "VALPRD09")
Call oCommandMgr.PostPrivateEvent(kStringEvent, "VALPRD09")
' Get control definition for the line command.
Dim oControlDef As ControlDefinition
Set oControlDef = oCommandMgr.ControlDefinitions.Item("AppBrowserSearchCmd")
' Execute the command.
Call oControlDef.Execute
End Sub
So, How to provide input to the API command? And where to get the search result?
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit
Solved! Go to Solution.