POST
|
Hi, Are you referring to the Map Inquiry category in the Controls Commands dialog of the ToolbarControl? Is that what you do not see? I do not know of a tool called Map Inquiry but I do know of a category with that name where we can find map inquiry tools to add to a MapControl Engine application, e.g. Find, Identify, Measure, etc. Also, you say you are working with version 9.0 of ArcGIS Engine? ArcGIS 10.0 is the current release and 9.3.1 was the release prior to that. I cannot check right now in 9.0 because such version may have required a version of Visual Studio that I do not have.
... View more
03-13-2012
03:47 PM
|
0
|
0
|
4
|
POST
|
Just to clarify, are you developing an Add-In button and tool, or a DLL custom component? And if so, did you start with an ESRI template in Visual Studio? I know our community sometimes refers to either our Add-Ins and custom COM components as plug-ins, but I want to make sure this does not involve a Plug-in Data Source and also whether this is an Add-In or custom COM component/DLL. And which Exit button are you referring to? ArcMap's built-in Exit button (red X Close button or File menu > Exit) or is this an Exit button you have developed? I am trying to get a bigger picture of what this involves.
... View more
03-13-2012
12:47 PM
|
0
|
0
|
19
|
POST
|
Diego, So you wish to add essentially a time stamp and username to either a map (data frame), map document (mxd) or to an attribute (row) of a feature class. Is this correct? You are not asking about signing with a digital certificate but just applying a user and time stamp, correct? I do not know of any ESRI utility but a time stamp and username can be applied to the properties of a map or map document or as an attribute of a feature class by developing a custom editor extension (adding it as an attribute of a feature) or a custom application extension, among other custom framework components--not necessarily with an extension--although an extension seems to me more reasonable since it would make the process automatic. Another way, for which we have a developer sample, is to develop a Geodatabase class extension. Our developer sample called TimeStamper Class Extension, performs the following: " this extension automatically maintains creation and modification time stamps for each object in the class, along with the name of the user who created or last modified the object." Timestamper class extension http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000003ps000000 Regardless of the custom component you develop and where you want to add the time and user stamp, programming with ArcObjects would be necessary. If you specify exactly where in ArcMap you want to add a user and time stamp, you may hear from a forumer with sample code--the ArcObjects interfaces that you would need would depend where you want to add such user and time stamp.
... View more
03-13-2012
12:34 PM
|
0
|
0
|
9
|
POST
|
Usually, when you create a Polyline and you want to display it in ArcMap or the MapControl of an ArcGIS Engine application, you do one of the following: 1. Assign that the Polyline (geometry) to an existing or a new Feature in a FeatureClass. If the Feature exists already in a FeatureClass, you get the existing Feature. If you will assign it to a new Feature, you create a the new Feature with IFeatureClass::CreateFeature. New or exisint, you will get a reference to IFeature, which has the Shape property, i.e. IFeature::Shape. Then one one usually display all or specified features in that FeatureClass by creating a new FeatureLayer and assigning it the FeatureClass as its FeatureClass source: IFeatureLayer::FeatureClass. With this approach, it would be the renderer (aka legend) that would dictate the color of the Polyline. 2. You add the Polyline to a new LineElement. You assign that LineElement a symbol (color, width, etc.) with ILineElement::Symbol. Then you add that LineElement to a new GraphicsContainer which corresponds to your Map object in your code. Essentially, you are adding a graphic element to an ArcMap map or MapControl map. The below code snippet shows how to add various graphic elements. Note the Else If statement that specifically shows how to add a line graphic element, specifically: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Add_Graphic_to_Map_Snippet/004900000067000000/ With this 2nd approach, you would not be able to add attributes to the Polyline. For that, you would have to go the IFeature > IFeatureClass route using the 1st approach. The approach you take depends on whether you want to display your polyline as a graphic element or if you want to add and store it in a FeatureClass (in this case, FeatureClass can mean a Shapefile or a Geodatabase FeatureClass). I did not understand the part about dynamic display--perhaps you came across an article that made mention of dynamic display with respect to polylines.
... View more
03-09-2012
01:01 PM
|
0
|
0
|
3
|
POST
|
The automatic installation of the Add-In upon building the Add-in project in Visual Studio is most likely controlled by the ESRI.ArcGIS.Addins.targets file in C:\Program Files (x86)\MSBuild\ESRI That can technically be opened as a .txt and modified but I would take precautions and save a backup of the file. That file appears to be invoked by the AfterBuild in <Target Name="AfterBuild"> <!-- Gives build warning when add-in targets file is not found. --> <Warning Text="Unable to create .esriAddin; missing ESRI ArcGIS Add-in SDK component(s)." Condition="!Exists('$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.targets')" /> </Target> within the .vbproj or .csproj file which you can unload and edit by right-clicking on the Add-In project in the Solution Explorer. However, I am not sure where in the .targets file that would be modified.
... View more
03-08-2012
03:51 PM
|
0
|
0
|
11
|
POST
|
Oh, it sounds like you have logic that determines the current user (username) so that you can prevent them from turning on or off the extension. You can of course develop the Extension Add-In such that it does display in the Extension dialog, therefore always being enabled. It is the showInExtensionDialog property in the config.xml file in the Add-In project, but this would apply to all users: <ArcMap> <Extensions> <Extension id="ESRI_ArcMapAddin1_Extension1" class="Extension1" showInExtensionDialog="false" /> </Extensions> ... ... ...
... View more
03-08-2012
03:16 PM
|
0
|
0
|
4
|
POST
|
Hi, If you are going the Add-In route instead of developing a DLL custom component, mimick what is being done in the SelectionExtension.cs of the Custom Selection Extension developer (Add-In) developer sample. In the Custom Selection Extension, the SelectionTargetComboBox essentially reacts to the end-user enabling and disabling the Add-In extension in the Extension dialog of ArcMap. Place breakpoints in OnSetState and OnGetState, which are made available by the same ESRI.ArcGIS.Desktop.AddIns.Extension class which makes OnStartup available, in order to see how those 2 methods are being fired every time and end-user checks and unchecks the add-in extension in the Extension dialog. Custom selection extension http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Sample_Custom_selection_extension/0001000003w2000000/ Also: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Extension_Members/001v000001p9000000/
... View more
03-05-2012
07:41 AM
|
0
|
0
|
4
|
POST
|
Hi, In your VB.NET project you have defined a form class, e.g. myFormClass, that inherits or is derived from the System.Windows.Forms.Form class. It is that form class that you have designed with various Windows Forms controls. That is the class that you should be using when you declare your object variable FormLogin and that you set equal to a new instance of your myFormClass. Instead you are creating an instance of the generic System.Windows.Forms.Form class. It should looks something like this in the .vb class file corresponding to your ArcMap or ArcCatalog custom button: Protected Overrides Sub OnClick() Dim FormLogin As New myFormClass FormLogin.Show() End Sub There should be a myFormClass.vb class file (the form class) in your VB.NET project when you do the above code, and that form class in turn should be inheriting from the System.Windows.Forms.Form class.
... View more
03-05-2012
06:49 AM
|
0
|
0
|
21
|
POST
|
Normally I see "The breakpoint will not currently be hit. No symbols have been loaded for this document." whenever the Add-In has not been added to a toolbar in ArcMap. In the case of Add-In buttons and tools, there is a property that you set upon creating the Add-In project in Visual Studio using one of the ArcGIS Add-In template that is called OnDemand. If OnDemand is set to true, I notice that no breakpoints will be reached while debugging the Add-In (even if the Add-In button or tool is already added to ArcMap) until you click on the Add-In button or tool. This is because the Add-In does not load I believe until enduser clicks on it.
... View more
12-30-2011
03:22 PM
|
0
|
0
|
7
|
POST
|
As for your second question, an image on a map (IMap) or pagelayout (IPageLayout) is a graphic element just like when you add text (ITextElement) or a marker (IMarkerElement) using the Drawing toolbar of ArcMap. IElement http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IElement_Interface/00120000044z000000/ In the document above, look for the coclass that represents the exact type of picture element representing your image, e.g. PngPictureElement or JpgPictureElement. Notice both coclass implement some generic ArcObjects interfaces like IElement and the more specific IPictureElement. One of those many interfaces is bound to offer the image properties like IElementProperties, IElementProperties2 or IElementProperties3
... View more
12-30-2011
02:48 PM
|
0
|
0
|
5
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|