摘要:
Get Oracle Sequence ValueDescription:The code below shows how to get a value from an Oracle database sequence. You would typically do this in order to set a field value to a number that was unique d... 阅读全文
摘要:
SummaryThis article contains an ArcObjects code sample that demonstrates how to split a polyline at the vertices, creating separate lines from each line segment.Procedure Start ArcMap. Create a new UI... 阅读全文
摘要:
SummaryIn ArcMap you can zoom to the selected features for a layer by right-clicking the layer and selecting Selection > Zoom to Selected Features. This article shows how to do this task using VBA ... 阅读全文
摘要:
Procedure Start ArcMap. Create a new UIButtonControl. Right-click the UIButtonControl and select View Source. Copy below code into the UIButtonControl's click event. [代码] Modify the value of strPathNa... 阅读全文
摘要:
IFDOToADOConnection接口(DataSourcesOleDB) 能够通过workspace从而创建或者连接到一个ADO connection. 它有2个方法,如下所示: Description Connect Connects a Workspace object to an ADO connection object. CreateADOConnection Creates an... 阅读全文
摘要:
The sample below shows how to get source sde database type of layer. It uses IDataLayer2 and IDatabaseConnectionInfo2 interface. IDataLayer2 : Provides access to additional members that control the da... 阅读全文
摘要:
(从网上转的,对内容作了一些修改)1. 实现相应的接口 创建一个ActiveX DLL的工程,并在工程下添加一个新的类(以ArcGISCommand为例)。ArcGIS桌面平台通过接口来识别不同的组件是否可以合法的嵌入到平台 中。想要实现一个ArcObjects的嵌入式按钮,我们需要至少需要实现ICommand接口。故在ArcGISCommand中我们首先需要输入以下 代码:Implements ... 阅读全文