POST
|
I don't think you're grabbing the MxDocument correctly. Can you show us the VB.NET code you have written (if any)? Right now it seems we're only looking at the VBA code. Thanks,
... View more
07-07-2011
06:09 AM
|
0
|
0
|
531
|
POST
|
The envelope method only works if the selected polygons are perfectly square and have its sides parallel to the x and y axes right?
... View more
05-20-2011
06:17 AM
|
0
|
0
|
920
|
POST
|
Completely agree. I didn't get to post on the old forum too much but I found that it still contains a plethora of information that has been collected over the years. Usually, they all involve some kind of in depth dialogue as to resolving whatever issue that is being discussed. From the looks of it, it seems like this forum is just a basic forum template with some minor adjustments. Anyway, hope ESRI can improve the system. Thanks,
... View more
05-18-2011
05:23 AM
|
0
|
0
|
340
|
POST
|
Ah, I was afraid of that. Thanks for your response! Cheers,
... View more
05-18-2011
05:17 AM
|
0
|
0
|
290
|
POST
|
The title pretty much says it all. I made a bunch of tools that are used within ArcGIS 9.3.1. using Visual Studio 2008 Express. I've been able to make deployment packages using VS2008 Professional, but I was wondering if there was away to build them using the Express edition. Thanks in advance,
... View more
05-17-2011
01:19 PM
|
0
|
2
|
524
|
POST
|
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Migrating_ArcGIS_9_3_Desktop_and_Engine_custom_components_to_ArcGIS_10/0001000002m2000000/ Make sure you visit that site. Some of the assemblies from 9.3 have been deprecated/changed in 10, so you will have to look out for those. Cheers,
... View more
04-12-2011
12:29 PM
|
0
|
0
|
476
|
POST
|
If you're talking about starting ArcMap (or Catalog, etc) then Express 2008 works just fine. Debugs, step into, step through..it's all there. The only real problem I have is building a deployment package. Professional or standard is required for that (I think).
... View more
03-01-2011
08:47 AM
|
0
|
0
|
218
|
POST
|
http://www.scs.ryerson.ca/~cps613/AssignmentReferences/DragDrop.shtml#Coordinates Would this work?
... View more
02-24-2011
05:26 AM
|
0
|
0
|
535
|
POST
|
http://forums.esri.com/Thread.asp?c=93&f=1170&t=301765 Cheers,
... View more
02-07-2011
05:02 AM
|
0
|
0
|
662
|
POST
|
The information in the following link should be helpful: http://edndoc.esri.com/arcobjects/9.2/NET/c4ff8b68-0410-435f-b8e5-682d5cea47cf.htm
... View more
02-03-2011
03:19 AM
|
0
|
0
|
908
|
POST
|
The code below is how I did it trying to recreate your situation. but as Neil mentioned above, the m_application.SaveDocument works just fine. Also, you cannot implement MxDocument to MapDocument. Public Sub SaveDoc()
Try
Dim pMxDoc As IMxDocument = m_application.Document
Dim pMap As IMap = pMxDoc.FocusMap
Dim pmxdPathName As String
Dim pMapDoc As IMapDocument = New MapDocument
Dim pMxdContents As IMxdContents = pMap
pmxdPathName = "C:\Documents and Settings\ruchira.welikala\Desktop\GIS Stuff\PracticeShapefiles\TestMXD" & Math.Round(Date.Now.Millisecond, 3) & ".mxd"
pMapDoc.[New](pmxdPathName)
pMapDoc.ReplaceContents(pMxdContents)
pMapDoc.SetActiveView(pMxDoc.ActiveView)
pMapDoc.Save(True, False)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
... View more
02-02-2011
06:08 AM
|
0
|
0
|
1412
|
POST
|
Hey Robin, Have a look at this. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000000tv000000
... View more
02-02-2011
04:17 AM
|
0
|
0
|
161
|
POST
|
Use Try and Catch around your code. Sub WhateverName()
[INDENT]
Try
Dim pMxDoc As IMxDocument = DirectCast(m_app.document, IMxDocument)
Dim pMap As IMap = pMxDoc.FocusMap
Dim pMapDoc As IMapDocument = pMap
Dim mxdPathName As String
mxdPathName = strDefaultWorkspace & "\" & frmWSIn.txtMapDocName.Text
pMapDoc.SaveAs(mxdPathName)
Catch ex as Exception
Msgbox(ex.Message)
End Try
[/INDENT]
End Sub
... View more
02-01-2011
08:41 AM
|
0
|
0
|
1412
|
POST
|
Nah, it's just buggy. You can take out the brackets and it would still probably work. Cheers,
... View more
02-01-2011
04:42 AM
|
0
|
0
|
470
|
POST
|
It is giving me an "expected end of statement" error. ah yes.. delete that line and retype it as such..don't copy paste..retype it: For lInFld = 0 To (pInRow.Fields.FieldCount - 1) Make sure you get rid of "<---" comments.
... View more
01-31-2011
12:19 PM
|
0
|
0
|
470
|
Title | Kudos | Posted |
---|---|---|
1 | 08-30-2013 09:41 AM | |
4 | 01-09-2018 12:33 PM | |
2 | 10-06-2014 03:14 PM | |
2 | 08-13-2015 09:45 AM | |
1 | 08-14-2015 08:51 AM |
Online Status |
Offline
|
Date Last Visited |
08-12-2023
04:34 AM
|