|
POST
|
I think it used to be you could tell Illustrator to export the entire artboard (but I could be mis-remembering). The option to Use Artboards is not enabled when exporting to emf (and some other formats) in AI6. You might try bringing your emf into an Arcmap layout with no other elements - there will be a data frame which you can't remove, so make sure its frame is set to none so it's not visible. And set the page size to what you want to finished emf's size to be. Position your emf so it's centered the way you want. Then export that "map" to emf from ArcMap, and make sure you have Clip Output to Graphics Extent turned off. I do have AI6, so I am affected by the inability to export the Artboard. For your alternative method, how do I bring my emf file into ArcMap? The Add Data dialog does not recognize the emf file directly. Do I have to first open a point layer and assign the symbol to one of the points to try this method? Thanks. Never mind. I was in Data view and realized your instructions said I need to be in Layout view and use the Insert Picture menu.
... View more
10-30-2012
07:25 AM
|
0
|
0
|
1076
|
|
POST
|
I am trying to create EMF symbols using Adobe Illustrator. The symbols represent collision types and predominantly use an arrow symbol to represent a vehicle's travel direction. I need these symbols to have a transparent background but still maintain the arrowhead point fixed on the center of the symbol. When two arrows are aligned end-to-end the center is preserved where I want it. When I create a single arrow with the arrow point centered in the drawing in Illustrator, the symbol recenters in ArcMap so that the center occurs within the arrow shaft. If I make a bounding box outline that is transparent in Illustrator to preserve the symbol center, the transparent box gets removed when I save the EMF file and the symbol recenters. Does anybody know how to get the EMF file to maintain a fixed center point? Is there any Illustrator setting that can do this or a freeware program that preserves the EMF symbol position relative to the initial drawing dimensions?
... View more
10-29-2012
03:17 PM
|
0
|
3
|
1322
|
|
POST
|
To make this more clear I need to extract everything to the right of the rihjt most space. Becasue some roads are 1E or 1S. Thanks Quinn If there are always just 1 or 2 characters at the end of the value with a leading white space, in VB Script you can use the Right function with the LTrim function to get the last non-white space character or characters: LTrim(Rigth(myFieldValue, 2)) To get all of the characters to the left of the last 1 or 2 characters excluding a trailing white space use the Left Function, the Len function and the RTrim function as follows: RTrim(Left(myFieldValue, Len(myFieldValue) - 2)) Both of these are simple label expressions.
... View more
10-27-2012
08:21 AM
|
0
|
0
|
1809
|
|
POST
|
ESRI is promoting the use of Subfields on queries to limit the number of fields read by a search cursor to reduce the processing time involved in retrieving data through a cursor. I just wanted to let others know that I have found a gotcha in VB.NET (VS 2010 with ArcGIS Desktop 10.0) when using the QueryFilter Subfields property in combination with an ITableSort interface. If the ITableSort's QueryFilter property is set to a QueryFilter that has Subfields specified, the Sort will not return any Rows. This occurs even if the Subfields list of the QueryFilter is identical to the list that is assigned to the Fields property of the TableSort. The same behavior occurs when the Cursor that is assigned to the TableSort's Cursor property was originally generated using a QueryFilter that had Subfields specified. The help for the ITableSort interface says: "If the IQueryFilter.Subfields property is set, it is ignored as the ITableSort.Fields property always takes precedence." But based on what I have seen that is apparently not the case, since the only way I have been able to get Rows returned from the ITableSort was to set the input QueryFilter SubFields property to "".
... View more
10-11-2012
01:28 PM
|
0
|
1
|
1009
|
|
POST
|
I contacted ESRI support and they confirmed that when a Windows Form is modeless that the Tab key does not work for a Combobox that has AutoComplete settings other than None and a populated list. I have asked them to file a bug report for that behavior. However, the Tab key does work with both the AutoComplete Combobox and my custom component in a Windows Form when the Form is Modal. For my particular project I can use the Modal Dialog (launching the Form with ShowDialog instead of Show). My custom component still has Tab problems with a DockableWindow, so I cannot use a DockableWindow unless I can come up with a way to make that work. But since that component is not a standard windows control I do not expect ESRI can offer me much help, so for now I am not going to use a DockableWindow. So the Modal Windows Form is the only available solution at this time, in case this comes up for anyone else.
... View more
10-11-2012
09:36 AM
|
0
|
0
|
964
|
|
POST
|
I am trying to use VB.Net to create an Add-In form, but I have been having problems with the behavior of the Tab key. I have tried both an Add-In DockableWindow and a System Windows Form, and cannot get the Tab key to behave the way I want. Using a System Windows Form, the tab key does not work with a standard Combobox that has a populated list and the AutoCompleteMode set to anything other than None. If the AutoCompleteMode is set to Suggest, for example, the Tab key simply does nothing after the Combobox gets focus. The only way to exit the Combobox is to use the Mouse as far as I can tell. I need the keyboard to be able to navigate the form. With a DockableWindow the tab key works fine for the above Combobox, but it does not work with a custom component I have created that composites a DateTimePicker and a TextBox. I get either too few tab stops or too many tab stops, depending on how I try to override the TabStop and TabIndex properties of the custom component to attempt to get the tab to focus on just the TextBox part of the component. Has anyone successfully used a custom-built composit component with an Add-in? Using a Windows Form Application I do not seem to have these problems, but I am not sure how to get that to interact with ArcMap Desktop. Will I have to abandon using an Add-In to fix this problem? Will a straight Windows Form application work with ArcMap Desktop, and where can I find help with setting it up and distributing an application built that way? Thanks for any help.
... View more
10-10-2012
02:09 PM
|
0
|
1
|
1985
|
|
POST
|
Hi all, I am looking for asamples that shwo how to find a polygon centroid in C# or vb.net thanks You need to access the Centroid through the IArea interface. There is an example that extracts the Centroid's X and Y coordinates and that creates a Centroid point object from the shape input's area interface here.
... View more
09-07-2012
11:35 AM
|
0
|
0
|
2452
|