|
POST
|
I'm not sure exactly which metadata elements you are referring to but a good way to find them is to use the metadata editor dialog to set the values to something unique and then switch the stylesheet to xml and find the values.
... View more
11-08-2011
11:01 AM
|
0
|
0
|
1223
|
|
POST
|
You either add an Imports statement for the library that contains the enumeration or you fully qualify the enumeration constant. Below is the second option... If pEditor.EditState <> esriEditState.esriStateEditing Then
... View more
11-08-2011
10:28 AM
|
0
|
0
|
578
|
|
POST
|
If the table is in the map then the database connection is already opened. Just get the workspace from the table and start your edit session. You can use IWorkspaceEdit or use IEditor. Remember, standalone table and tables are not the same thing so make sure you get the reference to the table correctly. Dim tableCollection As IStandAloneTableCollection = map Dim standAloneTable As IStandAloneTable = tableCollection.StandAloneTable(indexOfYourTable) Dim table As ITable = standAloneTable.Table Dim dataset As IDataset = table Dim workspace As IWorkspace = dataset.Workspace ' use IWorkspaceEdit Dim workspaceEdit As IWorkspaceEdit = workspace workspaceEdit.StartEditing(false) ' use IEditor Dim editor As IEditor = GetEditorExtension() editor.StartEditing(workspace)
... View more
11-04-2011
11:32 AM
|
0
|
0
|
831
|
|
POST
|
You should be fine. The registration code is only used to register the classes in the component categories. The component categories are how ArcGIS discovers what components are available. Since you're handling the creation of your classes and are putting them on the toolbar yourself you don't need to put them into the component categories.
... View more
11-04-2011
09:18 AM
|
0
|
0
|
951
|
|
POST
|
It depends on what you're doing. The component categories exist so that ArcGIS can be made aware of the components they contain. So, if you write a custom command/tool for ArcMap and you want it to go on a toolbar then you have to register it in the MxCommands component category. However, if you wanted to execute that command from a button on a dialog (i.e. by creating a new instance of the command class and executing it via code) then it doesn't matter if it's registered in a component category or not. The registration code you posted is for registering custom commands/tools for an ArcGIS Engine application. If you want to put those commands/tools on the ESRI Toolbar Control then you will need to register them so that they are available for you to choose in the toolbar properties dialog. If you're creating instances of the command/tool classes yourself via code and executing them or making them the current tool via code then you don't need to register them.
... View more
11-04-2011
05:22 AM
|
0
|
0
|
951
|
|
POST
|
I believe this is because your project is referencing the .NET Framework 4.0. Open your Project properties and click on the References tab. Highlight all of the ESRI references. In the Properties window set Embed Interop Types to False. You really should change your project to reference the .NET Framework 3.5 since 4.0 is not supported by ESRI at ArcGIS 10 and you may run into other problems.
... View more
11-03-2011
05:11 AM
|
0
|
0
|
610
|
|
POST
|
The method expects the distance to be in the same units as the spatial reference of the curve that you pass into it (when you pass in False for the asRatio parameter). When you use the measure tool you specify what distance units you want. Make sure the curve you're passing in has a spatial reference set and that its linear unit is meters. Also, make sure you have the Measure tool set to show distances in meters.
... View more
11-02-2011
12:38 PM
|
0
|
0
|
976
|
|
POST
|
You should be checking the result of the call to Initialize to make sure the license is checked out and exit the program if it is not. Also, you need to pass the full path to open the workspace and not just the file name.
... View more
10-31-2011
05:47 AM
|
0
|
0
|
2362
|
|
POST
|
You need to check out a license after the call to Bind and before using any ArcObjects.
... View more
10-31-2011
04:57 AM
|
0
|
0
|
2362
|
|
POST
|
Have you tried a simplified test? I've tested it in several scenarios with a value of 0 and have not run into any problems.
... View more
10-28-2011
06:53 AM
|
0
|
0
|
1987
|
|
POST
|
You are calling QueryPointAndDistance prior to calling QueryTangent. rDistOnLine is being passed into that call. QueryPointAndDistance updates that parameter (it's passed by reference) to the distance along the line of the point you pass in. If the point you pass into QueryPointAndDistance does not match the FromPoint of the curve (x, y coords must match exactly - all the way out to however many decimal places it has) then rDistOnLine will no longer have a value of 0 when the call returns.
... View more
10-28-2011
05:42 AM
|
0
|
0
|
1987
|
|
POST
|
You mention opening ArcMap through code. Is this a standalone application? If so then you need to use IObjectFactory to create any instances of ArcObjects classes that you will be using with the running instance of ArcMap.
... View more
10-27-2011
12:30 PM
|
0
|
0
|
4281
|
|
POST
|
Not only do you have to bind to a product runtime you also have to check out a license. This should occur before you use any ArcObjects. In your code you are declaring an IWorkspace instance before the call to Bind. You need to move the call to Bind and add the code to check out the license. Also, you are trying to open an Access personal geodatabase but your code is creating an instance of an ArcInfoWorkspaceFactory. You need to be using an AccessWorkspaceFactory. The workspace factory is a singleton object. You shouldn't be using New to create the instance. Instead, you should be using the Activator class.
... View more
10-27-2011
12:27 PM
|
0
|
0
|
2362
|
|
POST
|
I'm not having any problems creating the tangent line. You may want to post your code to see if someone sees something wrong.
... View more
10-27-2011
12:23 PM
|
0
|
0
|
1987
|
|
POST
|
What happens when you try creating a new feature in this feature class using ArcMap? If you get a similar error then the problem is probably on the database side rather than in your code.
... View more
10-27-2011
12:20 PM
|
0
|
0
|
724
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-20-2014 05:29 AM | |
| 1 | 02-01-2011 04:18 AM | |
| 1 | 02-04-2011 04:15 AM | |
| 1 | 01-17-2014 03:57 AM | |
| 1 | 10-07-2010 07:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|