Command "AppLookAtCmd" shows you the selected entity.
So you need to add the reference to the desired face to the empty SelectSet collection just before the execution of the "AppLookAtCmd" command.
The following sample do this operation with the first face in the active part document:
Private Sub LookAtSelectedFace()
Dim oDoc As Inventor.PartDocument
Set oDoc = ThisApplication.ActiveEditDocument
Dim oSSet As SelectSet
Set oSSet = oDoc.SelectSet
Call oSSet.Clear ‘ make SelectSet empty
' Select the 1st face in the 1st surface body
Dim oFace As Face
Set oFace = oDoc.ComponentDefinition.SurfaceBodies.Item(1).Faces.Item(1)
Call oSSet.Select(oFace)
‘change active view camera orientation
Dim oControlDef As ControlDefinition
Set oControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AppLookAtCmd")
oControlDef.Execute
Beep
End Sub
If you plan to work in the assembly context then you should select not Face but corresponding FaceProxy object. You may find the overview on proxies in the Inventor API Help. The following posts could be useful as well:
http://adndevblog.typepad.com/manufacturing/2013/07/occurrences-contexts-definitions-proxies.html
http://modthemachine.typepad.com/my_weblog/2009/04/positioning-assembly-occurrences.html
The alternative approach is a bit more complicated because you have to manipulate the active view Camera object. Here are useful links:
http://modthemachine.typepad.com/my_weblog/2013/09/working-with-cameras-part-1.html
http://modthemachine.typepad.com/my_weblog/2013/09/working-with-cameras-part-2.html
Hope this helps.
Cheers,
Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network