阅读:1353回复:1
AE编程不认识 arcid 怎么办?
<P>方法一: </P>
<P>Dim pCmdItem As ICommandItem<BR> ' Use ArcID module and the Name of the Save command</P> <P> '下面步骤在arcScene环境下通过,但是AE编程却不认识arcid,请问怎么办<BR>Set pCmdItem = Application.Document.CommandBars.Find(arcid.File_Save)<BR>pCmdItem.Execute</P> <P>方法二:</P> <P> Dim pUID As New UID<BR> Dim pCmdItem As ICommandItem<BR> ' Use the GUID of the Save command<BR> pUID.Value = "{22E301BD-A6B6-11D3-ABB8-0008C73FCA1C}"<BR> ' or you can use the ProgID<BR> ' pUID.Value = "esriArcScene.SxFileMenuItem"<BR> pUID.SubType = 3</P> <P> ' 下面步骤在AE编程提示“对象或with block变量未赋值”,请问怎么解决??<BR> Set pCmdItem = Application.Document.CommandBars.Find(pUID)<BR> pCmdItem.Execute<BR></P> |
|
|
1楼#
发布于:2006-06-29 17:32
<P>在AE里没有iApplication和iDocument这样的接口,多看看帮助</P>IApplication Interface (esriFramework)
<br> <P> </P> <P>Provides access to members that query or modify the application. </P> <P>Product Availability</P>Available with ArcGIS Desktop. |
|
|