|
POST
|
http://www.esri.com/software/arcgis/defense-solutions/download-ma First page googling "Military Analyst 9.3" I don't bother with esri's search boxes on their website anymore, I can usually find what I am looking for much faster googling esri key words.
... View more
05-29-2013
04:42 AM
|
0
|
0
|
4594
|
|
POST
|
Hello Forum, I have this intermittent problem, (happens about 60% of the time.) I have an extension (not addin) where I listen for a start editing event In the start editing I start other events listeners, specificaly activeviewevents item added, item removed and mapevents featureclass changed. The problem is often (60% of the time but never in debug mode) I get an exception when adding the event handler System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used. this is a snippet in the startediting event handler
m_actViewEvents = CType(m_map, IActiveViewEvents_Event)
Trace.WriteLine("active view events retrieved")
AddHandler m_actViewEvents.ItemAdded, AddressOf ItemAdded 'exception is thrown here
Trace.WriteLine("item added event handler added")
I set the m_map in the start editing. I tried casting the m_Editor.map to the Iactiveviewevents (better design), I tried setting the m_map from the editor, I tried using the document focus map. I tried declaring the m_Editor and m_map member vars as shared (static) I tried declaring the m_activeViewEvents as shared. As far as I know everything is done on the main thread. I would rather not populate the m_map variable before the edit session is started since the focus map could change.
... View more
05-28-2013
01:20 PM
|
0
|
6
|
1407
|
|
POST
|
Angles don't convert to distance directly. The length of a line fragment expressed in degrees is pretty much meaningless. You need the start and end point of your line fragment to be able to get the length in a meaningful unit. The IMeasurementTool allows you to construct a geodesically correct line and get the distance if you provide the spatial reference.
... View more
05-22-2013
11:28 AM
|
0
|
0
|
4594
|
|
POST
|
Ok, I was unclear, it is impossible to save features to a layer file. Graphics are a different thing. I was also unaware you are using engine in which you do things a little differently. Ultimately you must advise your client what is best for them, I don't know the details of their application but you asked the forum for an opinion and I will give you mine. "store them in xml and save them into IElementProperties.CustomProperty for that particular IElement" You can do that but the question is why? You would be effectively building your own custom database model. You wouldn't be able to leverage all the esri built in tools to take advantage of it. The only advantage I could see in using a graphic layer is the possibility of storing different geometry types in the same layer. You can actually use an annotation feature class for that, since you can store an IElement in an annotation and still have it in a geodatabase with the attribute table etc. Using the standard esri storage, you open up the possibility of using esri built in editing functions, display, identify, etc. as well as the ability to share data with other esri applications. There are also built in exporters to other formats to use in other software. There is a little more overhead in setting up the geodatabase and editing it according to esri procedures but I think they are worth it. There are even data recovery and cleaning tools for geodatabase that you wouldn't have for your custom graphics layer.
... View more
04-05-2013
05:47 AM
|
0
|
0
|
2802
|
|
POST
|
ok when posting question you should provide more information. First what product your using, arcgis desktop, server, engine and which version? Secondly within that product what are you using? In desktop it could be ArcMap, ArcCatalog, Globe, Scene.. In Engine, which control? In server which API? Then which development environment (.net, java, python) and the type of customization (add-ins, extensions. etc.) I am going to take a leap and assume it is desktop customization of ArcMap 10.x with .net and add-ins or extension code. The ArcMap graphics layer is stored in the map document (mxd.) It is unique to this document and cannot be shared and used much. It can contain multiple geometry types (line, point, polygon, text, etc.) but no attribute information. As such it is not GIS data because it contains no attributes. GIS data is stored in a database of some sort, even if the database is a flat file. It is a geometry with geographical coordinates and a series of attributes that describe it in some what. In ArcGIS, GIS data is stored in a geodatabase or shapefile (usually.) In the esri world, a feature class is a set of geographic features that share the same type (line, point, polygon, etc.), the same coordinate system (geographic, lambert, etc.) and the same attributes and are stored together in the same file (usually a set of related files) or data table (usually a set of related tables.) A layer in the map is a reference to a data source, the feature class and symbology, sub -queries and other information on how to draw the feature class on the map. A layer files (.lyr) is the layer in the map serialized to a file, it does not contain any features, only information on where the feature class is located and how to draw it. I can't tell you what to do because I don't know your requirements, that is up to you to figure out. Saving geometries in graphic layers is not very useful. Saving them in .lyr files is impossible. You should look into saving them into feature classes in a geodatabase.
... View more
04-04-2013
06:24 AM
|
0
|
0
|
2802
|
|
POST
|
For an addin the code to access the application is already baked into the config.Designer.cs. All you need to do is use the "ArcMap" object. ArcMap.Application gives you a reference to the application object. You can access the ArcMap object in your form.
... View more
04-04-2013
05:47 AM
|
0
|
0
|
2025
|
|
POST
|
ok, there is some info missing to be able to answer your question. First of all, is this an ArcGIS desktop or engine application? Secondly, are you developing an addin or extension code. Thirdly, how is the code called from the application? Did you create a command or menu? Is it an event handler. The application member variable is usually stubbed out for you when you create an extension, command, tool, etc. Most ArcObjects UI components have an on create or equivalent method that passes in a hook or something that holds a reference to the application. That is what they mean when they assume you already have a reference to the application. In 99% of cases you can use that reference, in other cases you get it from the apprefclass.
... View more
04-03-2013
07:14 AM
|
0
|
0
|
2025
|
|
POST
|
ok... I am not sure I see the problem. Can't you just drag and drop controls from the toolbox onto the control like any .net form or control?
... View more
03-28-2013
05:18 AM
|
0
|
0
|
3202
|
|
POST
|
Do you have visual studio and the original code for the dockable window?
... View more
03-27-2013
12:34 PM
|
0
|
0
|
3202
|
|
POST
|
You should raise this issue with your local distributor's tech support. The forums are not a good place to have esri software defects resolved. Tech support will have a procedure to handle such requests.
... View more
03-27-2013
11:13 AM
|
0
|
0
|
1387
|
|
POST
|
If you want to add ArcGIS commands to a dockable window, you will need to add an engine toolbar control. For that you will need engine sdk installed and an engine developer license. You can however add .net controls such as buttons (assuming .net is your dev environment) which finds the arcgis command and executes it.
... View more
03-27-2013
11:10 AM
|
0
|
0
|
3202
|
|
POST
|
references are disabled while you are running code, are you running the code? Also update the mxd to 10 and make sure it is not read only. That is all I can think of right now, good luck.
... View more
03-27-2013
05:14 AM
|
0
|
0
|
1846
|
|
POST
|
I have always made my dockable windows with two controls. One custom control with all the gui and the other implementing IDockableWindow with just one control on it (my custom one.) I make the user data control return the sub control and expose any methods on the sub-control to change values. Be careful when changing values because you are doing so from a different thread and will run into problems. You will need to use begininvoke to change the text value. http://msdn.microsoft.com/en-us/library/a06c0dc2%28v=vs.90%29.aspx The timer will have a similar effect of raising an event on the control's thread and change the control value but then the timer has to run all the time and raise events continuously to change the value once in a while. BeginInvoke will raise an event on the control's thread once when there is a change.
... View more
03-27-2013
05:10 AM
|
0
|
0
|
3181
|
|
POST
|
In ArcGIS desktop ArcObjects, the design I always have used for this is an ArcGIS desktop extension. Singletons, in my opinion, are almost like global variables, so are static members on a class. An ArcGIS extension can be used outside the assembly (by using COM interfaces) and offer a pattern that is easy to implement. All your commands can get access to your extension through the Application class passed in during oncreate. They are guaranteed only one instance per session and fit in with the design pattern of the application.
... View more
03-26-2013
09:43 AM
|
0
|
0
|
2079
|
|
POST
|
values not in range for add point often mean a mismatch of the geometry type or the coordinate system domain. If the points coordinates are outside of the domain of the target geometry (editsketch) you would get this problem. There is also the possibility of z and m values mismatch between geometries.
... View more
03-26-2013
08:46 AM
|
0
|
0
|
1393
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-02-2024 10:26 AM | |
| 1 | 07-05-2024 08:45 AM | |
| 1 | 10-05-2022 02:19 PM | |
| 6 | 03-27-2017 01:16 PM | |
| 1 | 05-05-2016 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-28-2025
07:37 AM
|