Programming in ArcGIS Desktop (VB.NET, VB & VBA) - ENGLISH

Thảo luận trong 'Lập trình trong ArcGIS' bắt đầu bởi joeiv, 5/11/12.

Tags:
  1. joeiv

    joeiv New Member

    Tham gia ngày:
    5/11/12
    Bài viết:
    8
    Đã được thích:
    0
    Điểm thành tích:
    0
    ArcMap and ArcCaralog have plenty of toolbars, menus, and commands (buttons and tools), enough and more for most users' needs. However, they will never have everything that everyone needs, and will always have something that some people simply do not. Fortunately, with a little training you will be able to change things around, move toolbars, menus, and commands, delete ones you don't use, and create the ones that no one could ever have predicted you'd need (Burke,GTKArcObjects, P5)

    In this Topic we are going to share our codes from very simple to advanced ones. Hope we can improve the level of our knowledge.
    Kindly regards,
     
    Last edited by a moderator: 5/11/12
    Tags:
  2. vuminhtuan

    vuminhtuan Administrator Thành viên BQT

    Tham gia ngày:
    20/10/11
    Bài viết:
    2,567
    Đã được thích:
    62
    Điểm thành tích:
    48
    Nơi ở:
    Tp. HCM
    Đây là người bạn nước ngoài nên bạn ấy sẽ post bài bằng tiếng anh nhé. Ai đặt câu hỏi thì nhớ dùng tiếng anh.
     
  3. NguyenTuan

    NguyenTuan New Member

    Tham gia ngày:
    21/10/11
    Bài viết:
    827
    Đã được thích:
    1
    Điểm thành tích:
    0
    Thanks Youseff!
    We hope you have many interesting article about Programming in Arcgis. Welcome to gisvn!
     
  4. joeiv

    joeiv New Member

    Tham gia ngày:
    5/11/12
    Bài viết:
    8
    Đã được thích:
    0
    Điểm thành tích:
    0
    Basic ArcObjects VBA Codes
    4shared:
    Mã:
    http://www.4shared.com/zip/F5NLz5C8/Basic_ArcObjects_VBA_Code_Samp.html?refurl=d1url
    [-
     
  5. ranmori

    ranmori Member

    Tham gia ngày:
    6/5/12
    Bài viết:
    37
    Đã được thích:
    0
    Điểm thành tích:
    6
    Thank you so much. Do you have VBA code for creating a new shapefile in ArcGIS 9.3?
    I am studying about it.
    I am looking forward to hearing from you!
     
  6. joeiv

    joeiv New Member

    Tham gia ngày:
    5/11/12
    Bài viết:
    8
    Đã được thích:
    0
    Điểm thành tích:
    0
    you are welcome, using geo-proccessing will be helpful i will post my code ;)

    ---------- Post added at 12:54 AM ---------- Previous post was at 12:40 AM ----------

    make sure the directory you want to create shapefile already exists, if not create it with MkDir


    Dim GP As Object
    Set GP = CreateObject("esriGeoprocessing.GpDispatch.1")
    Result = GP.CreateFeatureclass_management("D:/GISVN", "AA", "POINT")


    Works Fine :)
     
  7. joeiv

    joeiv New Member

    Tham gia ngày:
    5/11/12
    Bài viết:
    8
    Đã được thích:
    0
    Điểm thành tích:
    0
    ArcObjects provide you some simplicity, if you have to use some predefined functions, you dont need to write codes for them. Just call their name
    Suppose you are going to save the project after some editing, and this function should be automatic, so you are going to call save project

    VBA:
    Dim pCmdItem As ICommandItem
    Set pCmdItem = Application.document.CommandBars.Find(arcid.File_Save)
    pCmdItem.Execute

    ESRI already prepared a list of function for you for more information look for:
    Please login or register to view links
     

Chia sẻ trang này

Share
Đang tải...