POST
|
My approach is do be looping through the GraphicsContainer and then storing the items to be deleted into a List then looping through that list at the end and deleting each element. I think because the Graphics Collection is so big that it takes a while to find the element in the collection in order to remove it. I have put some timers in there and the call to IGraphicsContainer:: DeleteElement is really slow. The approach I am thinking of trying, which is a bit convoluted but I think may improve performance is to delete everything from the GraphicsContainer and make an ElementCollection of all the things that should be kept. Then use IGraphicsContainer::AddElements methods and add them back. I'll see what happens Thanks again. -Joe
... View more
03-24-2012
07:10 AM
|
0
|
0
|
388
|
POST
|
That was it IMultiLayerMarker in my case. not sure why I did not see it, does exactly what I expected. Thanks for the help. You would not happen to know a way to speed up deleting elements, I delete a lot of elements (probably close to 1000 in some cases) and it takes forever (well almost 10 minutes, which seems like forever when you are watching) Thanks again -joe
... View more
03-21-2012
12:34 AM
|
0
|
0
|
388
|
POST
|
Hi All, I am writing an application that deletes elements (lines, markers, text, etc) from a page layout based on the color of the symbol. For the most part everything works fine. I cast the element to the appropriate Element type (ITextElement, ILineElement, etc) get the Symbol property and the Color. There is one exception, for a few of the elements the Symbol has multi-layers and it is the second layer of the symbol that is the Color I am looking for. I do not seem to get a reference to this part of the symbol. I have searched and I cannot find a way to loop through the layers in a multi-layer symbol. Does anyone know how you would go about doing that? Seems there should be an Interface I can cast my Symbol to and determine if it is multi-layer and then loop through each layer, get the symbol on the layer and check the color. But I do not see a way to do that. Thanks -Joe
... View more
03-18-2012
09:52 PM
|
0
|
4
|
635
|
POST
|
Hi, Basically you just need to initialize a Graphic object and then change to using object initialization. This occurs in code not Xaml. So start by writing the code for a new Graphic Graphic g = new Graphic(); (for me the new Graphic completes automatically after the = is typed). Replace the (); with {} and start to type the word Geometry (or Symbol...). At this point Visual Studio hanges for a minute and then pops up a huge intellisense window. I should give the caveat that I do have ReSharper running, so perhaps this has something to do with it, but it seems like a standard Visual Studio intellisense. Thanks, I appreciate your taking the time to look into this -Joe
... View more
06-28-2011
08:07 PM
|
0
|
0
|
274
|
POST
|
Hi, There seems to be an issue (or at least I am having one) that when you create a new Graphic object and try to use the Object Initialization approach. When you start type in the brackets it tries to display an intellisense, which just about freezes VS and when it does display is a window about half the size of the screen. Pretty much makes using object initialization useless because you have to wait while it hangs a minute for every property you want to set. -Joe
... View more
06-27-2011
10:52 PM
|
0
|
3
|
1243
|
POST
|
Thanks for the help, this was exactly the solution I needed.
... View more
01-31-2011
01:16 AM
|
0
|
0
|
922
|
POST
|
This is exactly what we have been trying to do. So the sooner you can have the code posted the better. I can clean it up
... View more
01-25-2011
06:24 PM
|
0
|
0
|
922
|
POST
|
As you said this seems to be the only thing available using a line cap. I am not sure I undersatnd why ESRI seems to have gone out of the way to not expose any thing that could allow users to do more than make lines have cool visual affects. It seems to me that it would make sense to have Symbol be a UI Component so developers could have greater control over the Control Template. Or some way to have access to the actuall UI Elmenent that is being drawn on, like Flex does. I think what we are trying to accomplish should be possible in a straight forward way. If you have any thoughs on making a polyline that is truly an arrow it would be greatly appreciated.
... View more
01-22-2011
01:21 AM
|
0
|
0
|
922
|
POST
|
I have tried it both ways, that just happens to be where I was at when I copied it. The best I can see with this setting is that if you make a really, really thick line you can kind of tell there is a triangle at the end when you zoom in. But on a normal thckness line you cannot see any difference when you change this setting. What I really want to do is create a line that has an arrow head end point, not just a small triangular end point. Like I said in my intial post, I did this in Flex, and if I were to just use the core .net shapes I can do it I have been messing around with the various aspects of the ControlTemplate, it looks to me like somehow there might be a way to use the PathGeometry to get the behavior I want. I have yet to figure out how you can set a path the starts at the end point of the line (I am no XAML guru). If you have any insight into how one might go about this I would greatly appreciate it. It seems a little mysterious how the Path "Element" is being grabbed onto and used Thanks -Joe
... View more
01-20-2011
05:38 PM
|
0
|
0
|
922
|
POST
|
I have a simple need. Create a line with a Triangle end point. Was able to do in Flex by inheriting from LineSymbol and overriding the Draw method. Cannot use this approach because the Silverlight LineSymbol does not expose the same methods in this way. Looked at CartographicLineSymbol and it has an EndLineCap which would seem to offer this behavior based on the Enum values. Set to triangle and it does nothing, in fact I do not see any affect of setting any of the properties on this object. This basically would just seem the it exposes some of the Attributes on the <Path/> element. If I set them directly in the PAth element of a custom Symbol still no affect. Any Ideas??? Thanks -Joe
<esri:LineSymbol x:Class="Kpoint.Jbl.Viewer.Modules.CoaGraphics.Symbols.FollowAndSupportSymbol"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
<esri:LineSymbol.ControlTemplate>
<ControlTemplate>
<Canvas>
<Path Name="Element" Stroke="Blue" StrokeThickness="3" StrokeDashArray="2 1" StrokeDashCap="Round"StrokeEndLineCap="Triangle" />
</Canvas>
</ControlTemplate>
</esri:LineSymbol.ControlTemplate>
</esri:LineSymbol>
... View more
01-19-2011
08:19 PM
|
0
|
10
|
2466
|
POST
|
I am pretty much at wits end with this new licensing model that seems to cause nothing but problems. My first set of issues was that I could not run NUnit tests getting an error the same as or with a different file as listed in the header. Finally fixed that (well did not fix, just realized I could run tests using the MS Testing harness and rewired my tests). So now I want to deply the service. Once the service is setup it will no longer run and gives my the 'Could not load file or assembly 'ESRI.ArcGIS.Version' as the message. These are simple operations I am trying to do, and I am spending hours figuring out issues with this new licensing model. It does not even fail validating or anything, because it does not get to that point. It won't even load the assemblies. This has been a huge waste of my time, for something I could have finished in a couple hours in 9x Any help would be appreciated -joe
... View more
12-07-2010
02:13 AM
|
0
|
4
|
1981
|
POST
|
A bit late on the response, but I would consider using the Multi-Speak model if it can meet your needs. This does have a gdb included Using a standard model is a nice way to go if you can get away with it. The MM based model will work well for UG and OH (I may be biased if you saw my complete resume), but is rather complex and perhaps overkill for smaller utilities. All depends on what you really need to do with he data, of course.
... View more
10-16-2010
11:00 AM
|
0
|
0
|
441
|
POST
|
Hi, I am having what is a a pretty critical issue. I have a service I am creating which is pretty big, although in the end still a prototype of the final service we are planning (hoping) to creating. When I try to generate the derived images it is blowing up saying that it runs out of memory. [ServiceEditor.ServiceBuilder.ExportDiDefFile : 0020FF] Error: A critical failure occurred while performing this action... System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. Just to give an idea of scale we are trying to build 2,688 SOs. There are 21,500 source image files which are about 1.5TB. Also to give an idea there are another 3 sets of images of equal size that we want to include in the service. I jacked up the page file to 8 GB on top of the 2 GB of RAM (this is a development setup not production specs). I guess I am wondering is there a way I could know what type of memory will be required? Is my only option to try and build selected sets of the service overviews, if so is there a way to compute how big these sets can be? Thanks
... View more
05-28-2010
10:57 AM
|
0
|
3
|
1919
|
POST
|
So the 'resolution' ended up being to just install the 9.21 upgrade which will run without error. Not ecstatic about that as a solution, but the best i can get.
... View more
05-03-2010
06:05 AM
|
0
|
0
|
285
|
POST
|
I have this issue with Scenegraph.dll installing ArcEngine on an ArcIMS machine. We need to install Engine because we are going to host Image Services. I get the following error: 'Error 1904. Module D:\Servers\ArcGIS\bin\SceneGraph.dll failed to register... I found this related solution and did try the manual registration: http://resources.arcgis.com/content/kbase?q=content/kbase&fa=articleShow&d=33767&print=true But when I try and manually register I get "Load library(...\SceneGraph.dll) failed. The specified procedure could not be found. I am installing ArcEngine from the Image Server 9.21 media on an ArcIMS 9.2.0 machine.
... View more
04-21-2010
08:25 AM
|
0
|
1
|
2248
|
Title | Kudos | Posted |
---|---|---|
1 | 01-24-2024 10:00 AM | |
1 | 08-03-2023 04:14 AM | |
1 | 11-30-2023 10:39 AM | |
1 | 11-10-2023 12:40 PM | |
1 | 11-07-2023 01:16 PM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|