2009年5月15日
摘要: The sample code provided is to programmatically change a layer's data source in ArcMap.[代码] 阅读全文
posted @ 2009-05-15 14:30 炜升 阅读(314) 评论(0) 推荐(0) 编辑
摘要: Get Unique ValuesDescription:The code below demonstrates how to find the unique values stored within a database field by using the SQL DISTINCT function.Previous to version 8.1, the QueryDef object d... 阅读全文
posted @ 2009-05-15 14:27 炜升 阅读(344) 评论(0) 推荐(0) 编辑
摘要: SummaryTo use an IQueryDef with an IFeatureCursor, you assign a name to the QueryDef using IFeatureContainer and use this name like a feature class name.ProcedureThe following code connects to a geo... 阅读全文
posted @ 2009-05-15 14:26 炜升 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2009-05-15 14:11 炜升 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2009-05-15 12:59 炜升 阅读(1121) 评论(6) 推荐(0) 编辑
摘要: 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 ... 阅读全文
posted @ 2009-05-15 12:55 炜升 阅读(1131) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2009-05-15 12:34 炜升 阅读(496) 评论(0) 推荐(0) 编辑
摘要: IFDOToADOConnection接口(DataSourcesOleDB) 能够通过workspace从而创建或者连接到一个ADO connection. 它有2个方法,如下所示: Description Connect Connects a Workspace object to an ADO connection object. CreateADOConnection Creates an... 阅读全文
posted @ 2009-05-15 10:44 炜升 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2009-05-15 10:24 炜升 阅读(255) 评论(0) 推荐(0) 编辑
摘要: (从网上转的,对内容作了一些修改)1. 实现相应的接口 创建一个ActiveX DLL的工程,并在工程下添加一个新的类(以ArcGISCommand为例)。ArcGIS桌面平台通过接口来识别不同的组件是否可以合法的嵌入到平台 中。想要实现一个ArcObjects的嵌入式按钮,我们需要至少需要实现ICommand接口。故在ArcGISCommand中我们首先需要输入以下 代码:Implements ... 阅读全文
posted @ 2009-05-15 09:59 炜升 阅读(406) 评论(0) 推荐(0) 编辑