ArcEngine Started - How to Use Help

Statement 1: I Caishuxueqian, with Guo Degang words, "I was a schoolboy," if wrong, welcomed the discussion, do not abuse ^ _ ^.
Statement 2: Keep the original blog when reproduced the original link or add my blog address at the beginning of the article, or the right to retain legal liability.

origin

Give a man a fish than giving the fishing, learning any one technology, I believe that all start from the help file, ArcEngine no exception.
In this paper 主要分享如何使用ArcEngine帮助, 快速找到自己想要的信息as well 如何利用帮助整体的学习官方的示例代码.

installation

ArcEngine installation reference Bowen: Portal

ArcEngine Help

Local Help : located C:\Program Files (x86)\ArcGIS\DeveloperKit10.4\Help\VS\ArcObjects, you can be found directly in the Start menu.
Here Insert Picture Description
Online Help : Portal (10.6) , Portal (10.1 to 10.3)
, other local help : local as well as local engineering code snippets and sample code to help you learn ArcObjects
Here Insert Picture Description
GitHub resources : Portal
Here Insert Picture Description

Help category

Help divided into two blocks of content:

  1. ArcObjects Help for .NET developers: including the development of some help AO (equivalent to an example of Quick Start)
    Here Insert Picture Description
  2. ArcObjects reference: including the classes and interfaces in the namespace AO (equivalent API)
    Here Insert Picture Description

How to use the Help

Local installation help

Normally: general 先安装VS软件, then 再安装ArcObjects, you can find a local help in the Start menu.
Other cases: If you start there is no documentation, or you can not find help for VS help AO, refer to this blog ( Portal ) configuration.

Using help

Can be used to help query interfaces, classes, can obtain relevant information from the results of the query (as applicable to products which, in what ways, this is why the interface or class, which inherits from class, as well as information related to the sample code Remarks and other information)
Here Insert Picture Description
Here Insert Picture Description

personal suggestion

  1. Share my personal habits:
    1. Baidu / Google related keywords to search snippet.
    2. Use to help other relevant interface or class.
    3. See which products support license, if you want to be able to realize the function, to achieve and to what extent.
    4. Time query interface, you can look at what class implements this interface, the way to follow it and see what this class also implements the interface, whether QI can use to achieve our function.
    5. Porting the code, solve the problems encountered in.
  2. Recommend carefully read the contents of this section (read need to have some English skills, such as the strength of small series can not help translation tools)
    Here Insert Picture Description
  3. ArcEngine learning process is to continue the process of the SDK familiar interfaces and classes, so do not worry, over time, more practice, your application will be very skilled.

Summary :

Just do it!
Don't Worry,Be Happy!

Application of practical operation

Example:

A:我想添加一个图层到地图中怎么添加啊?
B.Easy,请听贫道如实道来......

Analyze the problem, probably the following steps:

# `获取容器对象(Map or Scene)

# 创建/获取图层(Layer)

# 添加图层

Step breakdown:

  1. Adding layers to know where to add, is added to the two-dimensional map or three-dimensional map.
  2. If a Map, which is the source of this MapControl control (relevant interface is IMapcontrol2), Ruoguo is Scene, which is the source Scene (relevant interface is ISceneControl), you can get to IMap or IScene object through the property interface.
  3. If it is a two-dimensional map, the map is the English word for the Map, then search Map IMap interface or class in Help (recommended to search interface); if the Earth is three-dimensional, so is the corresponding Scene, you can search IScene interfaces.
    Here Insert Picture Description
  4. The search is completed we can see what information
    • We need 添加引用ESRI.ArcGIS.Carto.dll, and use the application using the namespace;
    • We also know that we have 需要有ArcGIS Desktop或ArcEngine的许可;
    • We found that there are two AddLayermethods;
    • Click AddLayer method 告诉我们我们参数信息, the object needs ILayer interface (we need a New ILayer interface objects)
    • Then we need to check ILayer interfaces in the same way
    • In addition, we can help see the bottom .NET Snippetsor .NET Related Topics, there will give us the corresponding code fragment.
  5. According to the logic code.

Exercise

  1. View IFeatureWorkspace in which namespace, use the interface which namespace needs using, need what level of permission, what class implements this interface
  2. View IFeatureWorkspace of OpenFeatureClass method, need to understand what parameters, what type of return, the way to see which class has properties and methods IFeatureClass
  3. See which class implements the interface ITool
  4. View IMap, IWorkspace, IFeatureLayer, IFeatureClass, ITable, IField interface, combined with OMD understand the relationship between them
  5. Try to read the help section Developing with ArcGIS

Guess you like

Origin blog.csdn.net/yh0503/article/details/87965975