Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all 1374 articles
Browse latest View live

Need some help on evaluating the Automation Exception in Network Analysis

$
0
0
Hi,

Can any one please help me evaluating the following Automation Exception I am getting while I am trying to get the state of Network Dataset through the INALocator reference in arcobjects Java.

The following is the Exception I am getting.


AutomationException: 0x80004001 - Not implemented
at com.esri.arcgis.interop.Dispatch.vtblInvoke(Unknown Source)
at com.esri.arcgis.geodatabase.INetworkDatasetProxy.getState(Unknown Source).


Thanks in Advance.

Add DTED data to a map layer

$
0
0
Hello

I'm working on a university project based on ARCGIS .NET SDK (I use C#). Now, I'm able to add maps and draw lines and stuff...
I want to add a .dt0 DTED file to axMapControl and add a function to MouseDown to MessageBox elevation (height) of mapX,mapY.
I googled "A LOT" and got confused. In the end, I managed to add DTED layer using RasterLayer.CreateFromFile but it adds a brown square :|
Can anyone has a snippet code for add DTED file (.dt0 or even maybe .dt1, .dt2)?

Thank you very much
Regards

[C#] get IRasterWorkspaceEx from IWorkspaceFactory

$
0
0
Hello

I need to create IRasterWorkspaceEx to use it for creating IMADtedLayer. This is how:
Code:

IWorkspaceFactory wsf = new RasterWorkspaceFactoryClass();
IRasterWorkspaceEx rasterwsEx = (IRasterWorkspaceEx)wsf.OpenFromFile(foldername, 0);
//then create IRasterCatalog and etc.

Every time I get error on casting IWorkspace (output of OpenFromFile) to IRasterWorkspaceEx.
Is there anyone to answer this question? :(

Thank you

Simple question? Sharing data among tools and commands

$
0
0
I am customizing ArcMap using VS2008 with the Developer Kit for .NET. I have created a C# project with some commands and tools and an associated toolbar. I want to share some data among these items within the project (so that the data is available to each tool or command when it is executing), but I can't figure out how to do it. I'm pretty sure this is a simple question, but it's got me stumped for now. Can anyone give me some suggestions?

size of scalebar in lat/lon?

$
0
0
My data is in lat/lon but I'd like my scalebar in miles. A rough estimate is good enough. I figure that if I take the latitudes of my
extent, a degree of latitude is fairly constant. But it appears that no matter how I scale the data, the scalebar is ~2 inches long.
Is it hard-coded that way? Here is a bare-bones version of my code:

Dim pAV As IActiveView = pMxDocument.FocusMap
Dim qEnvelope = pAV.Extent
Dim yhi As Double = qEnvelope.YMax
Dim ylo As Double = qEnvelope.YMin
Dim ys As Double = (yhi - ylo) * 111195 / 1609 'we could quibble about this conversion
Dim zs As Double = ys / 7.5 'map is landscape - runs from 8.0 to 0.5.
Dim xs As Double = 1 + 120 / zs 'want 120 mile scale bar, starting at 1 inch.

Dim envelope As ESRI.ArcGIS.Geometry.IEnvelope = New ESRI.ArcGIS.Geometry.EnvelopeClass
envelope.PutCoords(1, 1, xs, 1.5) ' Specify the location and size of the scalebar
Dim uid As ESRI.ArcGIS.esriSystem.IUID = New ESRI.ArcGIS.esriSystem.UIDClass
uid.Value = "esriCarto.AlternatingScaleBar"

' Create a Surround. Set the geometry of the MapSurroundFrame to give it a location
' Activate it and add it to the PageLayout's graphics container
Dim graphicsContainer As IGraphicsContainer = TryCast(pPageLayout, IGraphicsContainer) 'Carto: Dynamic Cast
Dim activeView As IActiveView = TryCast(pPageLayout, IActiveView) ' Carto: Dynamic Cast
Dim frameElement As IFrameElement = graphicsContainer.FindFrame(pMap)
Dim mapFrame As IMapFrame = TryCast(frameElement, IMapFrame) ' Dynamic Cast
Dim mapSurroundFrame As IMapSurroundFrame = mapFrame.CreateSurroundFrame(TryCast(uid, UID), Nothing) ' Dynamic Cast
Dim mapSurround As IMapSurround = mapSurroundFrame.MapSurround

Dim markerScaleBar As IScaleBar = (CType(mapSurround, IScaleBar)) ' Explicit Cast
markerScaleBar.LabelPosition = ESRI.ArcGIS.Carto.esriVertPosEnum.esriBottom
markerScaleBar.UseMapSettings()

With markerScaleBar
.Units = esriUnits.esriMiles
.UnitLabel = "Miles"
.UnitLabelGap = 6 'points
.UnitLabelPosition = esriScaleBarPos.esriScaleBarBelow
.UnitLabelSymbol = pUnitsTextSymbol
.BarHeight = 5 'points
.BarColor = pColor
.Division = 30 'miles
.Divisions = 4 ' 4 divisions + 1 before zero = 5
.Subdivisions = 2 ' 2 subdiv. shown => one subdiv. marks b/w each division mark
.DivisionsBeforeZero = 0
.LabelSymbol = pLabelTextSymbol
.LabelGap = 6 'points
.LabelFrequency = esriScaleBarFrequency.esriScaleBarDivisions
'esriScaleBarDivisions ' place label on each division
.NumberFormat = pNumericFormat
.ResizeHint = esriScaleBarResizeHint.esriScaleBarAutoDivisionAndDivisions
End With

Dim element As ESRI.ArcGIS.Carto.IElement = TryCast(mapSurroundFrame, ESRI.ArcGIS.Carto.IElement) ' Dynamic Cast
element.Geometry = envelope
element.Activate(activeView.ScreenDisplay)
graphicsContainer.AddElement(element, 0)

Convert dgn to shape file ?

$
0
0
Hi everyone,

I am having a dgn file that include some polygon. Now I want to convert it into the shape file (.shp/.dbf file), are there anyone know this ?

PS: I can read elements (line/text/linestring) from the dgn file, but I don't know how to create an shape file and draw them (geometry) in the shape file using arcobjects (C#)

Thank you for your help !

[C#] How to create Line of Sight?

$
0
0
Hello

I'm able to load a DTED Level 0 file into a RasterDataset, color it and create a IRasterLayer from it to add into axMapControl. Here is my working code:
Code:

IWorkspaceFactory wsf = new RasterWorkspaceFactoryClass();
IRasterWorkspace rasterWS = (IRasterWorkspace)wsf.OpenFromFile(@"C:\Users\ABC\Desktop\DTED_E30N40\dted\e034", 0);
rasterDS = rasterWS.OpenRasterDataset("n40.dt0");

IRasterBandCollection pRasterBandCollection = (IRasterBandCollection)rasterDS;
IEnumRasterBand pEnumRasterBand = pRasterBandCollection.Bands;
IRasterBand pRasterBand = pEnumRasterBand.Next();
pRasterBand.ComputeStatsAndHist();
IRasterStatistics pRasterStatistics = pRasterBand.Statistics;

IRgbColor pFromColor = new RgbColorClass();
pFromColor.Red = 20;
pFromColor.Green = 20;
pFromColor.Blue = 220;

IRgbColor pToColor = new RgbColorClass();
pToColor.Red = 220;
pToColor.Green = 20;
pToColor.Blue = 20;

IAlgorithmicColorRamp pAlgorithmicColorRamp = new AlgorithmicColorRampClass();
pAlgorithmicColorRamp.FromColor = pFromColor;
pAlgorithmicColorRamp.ToColor = pToColor;
pAlgorithmicColorRamp.Algorithm = esriColorRampAlgorithm.esriHSVAlgorithm;
pAlgorithmicColorRamp.Size = 255;

bool bOK;
pAlgorithmicColorRamp.CreateRamp(out bOK);

IRasterStretchColorRampRenderer pRasterStretchColorRampRenderer = new RasterStretchColorRampRendererClass();
pRasterStretchColorRampRenderer.BandIndex = 0;
pRasterStretchColorRampRenderer.LabelHigh = pRasterStatistics.Maximum.ToString();
pRasterStretchColorRampRenderer.LabelLow = pRasterStatistics.Minimum.ToString();
pRasterStretchColorRampRenderer.ColorRamp = pAlgorithmicColorRamp;

IRasterLayer rasterLayer = new RasterLayer();
rasterLayer.CreateFromDataset(rasterDS);
rasterLayer.Name = "DTED Level 0 [E34-N40]";
rasterLayer.Renderer = (IRasterRenderer)pRasterStretchColorRampRenderer;
axMapControl1.AddLayer(rasterLayer);

The result is this screenshot of axMapControl:Attachment 22980

Now, I want to create Line of Sight; between observer and a point. How can I do that? I have no idea unfortunately.

Thanks
Attached Thumbnails
Click image for larger version

Name:	ScreenShot.png‎
Views:	N/A
Size:	36.9 KB
ID:	22980  

Add-Ins: How to add controls to dockable window

$
0
0
I have been experimenting a bit with creating add-ins for ArcGIS Desktop. I can create buttons, tools, dockable windows, ect. But I cannot figure out how to add a control to a dockable window. I know this is possible from reading ESRI's documentation..how can I do this? Thanks.

Linear Line of Sight of given elevation (not DTED's elevation)

$
0
0
Hello

I'm able to get linear line of sight of two points and draw visible and invisible areas like this: Attachment 23005

Well, is there any way to give observer's Z (elevation) and get line of sight of that point with given Z (not the elevation in DTED)? Imagine that I want to get LLOS of a helicopter that abviously it's elevation is greater that DTED's elevation of that point.
Or it's only possible with DTED elevations? Any idea?

Thank you
Regards
Attached Thumbnails
Click image for larger version

Name:	Untitled.png‎
Views:	N/A
Size:	19.5 KB
ID:	23005  

Merge multiple RasterDataset

$
0
0
Hello

I can get Linear Line of Sight from a single DTED file; which had beed opened by:
Code:

IWorkspaceFactory wsf = new RasterWorkspaceFactoryClass();
IRasterWorkspace rasterWS = (IRasterWorkspace)wsf.OpenFromFile(foldername, 0);
IRasterDataset rasterDS = rasterWS.OpenRasterDataset("n42.dt0"); //DTED Level 0 file

Single DTED file means that both observer and target are in the DTED file's area.

Well, the problem occurs when I load more than one DTED files and want to use these functions:
Code:

IRaster raster = rasterDS.CreateDefaultRaster();
RasterSurfaceClass rsc = new RasterSurfaceClass();
rsc.PutRaster(raster);
rsc.GetElevation(point);
rsc.GetLineOfSight(blah, blah, blah);

If observer is in a DTED file and target is in another DTED file, GetLineOfSight function fails obviously.
How can I merge two RasterDataset to give rsc.PutRaster() function one single raster?
Or
How can I put more than one raster in RasterSurfaceClass?

Thank you
Sincerely

Need some help on evaluating the Automation Exception in Network Analysis

$
0
0
Hi,

Can any one please help me evaluating the following Automation Exception I am getting while I am trying to get the state of Network Dataset through the INALocator reference in arcobjects Java.

The following is the Exception I am getting.


AutomationException: 0x80004001 - Not implemented
at com.esri.arcgis.interop.Dispatch.vtblInvoke(Unknown Source)
at com.esri.arcgis.geodatabase.INetworkDatasetProxy.getState(Unknown Source).


Thanks in Advance.

How to use the NEAR Class: the basics ?

$
0
0
(This post was sent in the geoprocessing forum, but I moved it here)

I'm using the Java SDK in Eclipse.

I want to determine the distance between a point (in a first shapefile) and the nearest point amongs a set of many points (in a second shapefile).

For this purpose, I use the Near Class, but my simple code contain an error (see below). The shapefiles that I use have successfully been used in the Buffer Class in another code, so it seems that I dont use the NEAR class correctly.

I would appreciate if you could explain how the NEAR class should be used.

I'm using these lines of code:

//// Java code begins here

// Create a Near object, with both input shapefiles in the constructor
Near near = new Near("D:\\myPosition.shp","D:\\myManyPositions.shp");

// Create a geoprocessor and execute the Near object
GeoProcessor gp = new GeoProcessor();
IGeoProcessorResult result1 = gp.execute(near, null);

//// Java code ends here

Create a point using a TOC template C#

$
0
0
I cobbled together some C# code from a couple of developer samples to make a tool that will create a new point leveraging a point template selected in the TOC. The tool works (creating a new point and storing it in the template layer), but the new point isn't visible until I zoom in/zoom out or hit the refresh button. The point also isn't selected after it is created. I've tried refresh and partial refresh from IActiveView, but that didn't work or I didn't do it right. Any help would be greatly appreciated.

Code:

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using ESRI.ArcGIS.ADF.BaseClasses;
using ESRI.ArcGIS.ADF.CATIDs;
using ESRI.ArcGIS.ArcMapUI;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.Editor;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Framework;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Geodatabase;



namespace Point
{
    [Guid("d0bfb058-7f77-4948-a57f-807cb6847a33")]
    [ClassInterface(ClassInterfaceType.None)]
    [ProgId("Point.Class1")]
    public class CreatePoint : BaseTool, IShapeConstructorTool
    {
        #region COM Registration Function(s)
        [ComRegisterFunction()]
        [ComVisible(false)]
        static void RegisterFunction(Type registerType)
        {
            // Required for ArcGIS Component Category Registrar support
            ArcGISCategoryRegistration(registerType);

            //
            // TODO: Add any COM registration code here
            //
        }

        [ComUnregisterFunction()]
        [ComVisible(false)]
        static void UnregisterFunction(Type registerType)
        {
            // Required for ArcGIS Component Category Registrar support
            ArcGISCategoryUnregistration(registerType);

            //
            // TODO: Add any COM unregistration code here
            //
        }

        #region ArcGIS Component Category Registrar generated code
        /// <summary>
        /// Required method for ArcGIS Component Category registration -
        /// Do not modify the contents of this method with the code editor.
        /// </summary>
        private static void ArcGISCategoryRegistration(Type registerType)
        {
            string regKey = string.Format("HKEY_CLASSES_ROOT\\CLSID\\{{{0}}}", registerType.GUID);
            MxCommands.Register(regKey);
            FeatureConstructionPointTools.Register(regKey);

        }
        /// <summary>
        /// Required method for ArcGIS Component Category unregistration -
        /// Do not modify the contents of this method with the code editor.
        /// </summary>
        private static void ArcGISCategoryUnregistration(Type registerType)
        {
            string regKey = string.Format("HKEY_CLASSES_ROOT\\CLSID\\{{{0}}}", registerType.GUID);
            MxCommands.Unregister(regKey);
            FeatureConstructionPointTools.Unregister(regKey);

        }

        #endregion
        #endregion


        private IApplication m_application;
        private IEditor3 m_editor;
        private IEditEvents_Event m_editEvents;
        private IEditEvents5_Event m_editEvents5;
        private IEditSketch3 m_edSketch;
        private IShapeConstructor m_csc;
        //private IActiveView activeView = null;

        public CreatePoint()
        {
          base.m_category = "Tool"; //localizable text
          base.m_caption = "Dot";  //localizable text
          base.m_message = "Dot";  //localizable text
          base.m_toolTip = "Dot";  //localizable text
          base.m_name = "Point_CreatePoint";  //unique id, non-localizable (e.g. "MyCategory_ArcMapTool")
          try
          {
            string bitmapResourceName = GetType().Name + ".bmp";
            base.m_bitmap = new Bitmap(GetType(), bitmapResourceName);
            //base.m_cursor = new System.Windows.Forms.Cursor(GetType(), GetType().Name + ".cur");
          }
          catch (Exception ex)
          {
            System.Diagnostics.Trace.WriteLine(ex.Message, "Invalid Bitmap");
          }
        }

        public void AddPoint(IPoint point, bool Clone, bool allowUndo)
        {
            m_csc.AddPoint(point, Clone, allowUndo);
        }

        public override void OnMouseDown(int Button, int Shift, int X, int Y)
        {
            m_csc.OnMouseDown(Button, Shift, X, Y);
        }

        public override void OnMouseMove(int Button, int Shift, int X, int Y)
        {
            m_csc.OnMouseMove(Button, Shift, X, Y);
        }

        public override void OnMouseUp(int Button, int Shift, int X, int Y)
        {
            m_csc.OnMouseUp(Button, Shift, X, Y);
        }

        public override bool OnContextMenu(int X, int Y)
        {
            return m_csc.OnContextMenu(X, Y);
        }

        public override void OnKeyDown(int keyCode, int Shift)
        {
            m_csc.OnKeyDown(keyCode, Shift);
        }

        public override void OnKeyUp(int keyCode, int Shift)
        {
            m_csc.OnKeyUp(keyCode, Shift);
        }

        public override void Refresh(int hDC)
        {
            m_csc.Refresh(hDC);
        }

        public override int Cursor
        {
            get { return m_csc.Cursor; }
        }

        public override void OnDblClick()
        {
            if (Control.ModifierKeys == Keys.Shift)
            {
                ISketchOperation pso = new SketchOperation();
                pso.MenuString_2 = "Finish Sketch Part";
                pso.Start(m_editor);
                m_edSketch.FinishSketchPart();
                pso.Finish(null);
            }
            else
                m_edSketch.FinishSketch();
        }
       
        public override bool Deactivate()
        {
            //unsubscribe events
            m_editEvents.OnSketchModified -= m_editEvents_OnSketchModified;
            m_editEvents5.OnShapeConstructorChanged -= m_editEvents5_OnShapeConstructorChanged;
            m_editEvents.OnSketchFinished -= m_editEvents_OnSketchFinished;
            return base.Deactivate();
        }

        public override void OnCreate(object hook)
        {
            m_application = hook as IApplication;

            //get the editor
            UID editorUid = new UID();
            editorUid.Value = "esriEditor.Editor";
            m_editor = m_application.FindExtensionByCLSID(editorUid) as IEditor3;
            m_editEvents = m_editor as IEditEvents_Event;
            m_editEvents5 = m_editor as IEditEvents5_Event;
        }

        /// <summary>
        /// Occurs when this tool is clicked
        /// </summary>
        public override void OnClick()
        {
            m_edSketch = m_editor as IEditSketch3;

            //Restrict to line constructors (for this tool)
            //m_edSketch.GeometryType = esriGeometryType.esriGeometryPolyline;

            //Activate a shape constructor based on the current sketch geometry
            if (m_edSketch.GeometryType == esriGeometryType.esriGeometryPoint)
                m_csc = new PointConstructorClass();
            else
                m_csc = new StraightConstructorClass();
            m_csc.Initialize(m_editor);
            m_edSketch.ShapeConstructor = m_csc;
            m_csc.Activate();

            //set the current task to null
            m_editor.CurrentTask = null;

            //setup events
            m_editEvents.OnSketchModified += new IEditEvents_OnSketchModifiedEventHandler(m_editEvents_OnSketchModified);
            m_editEvents5.OnShapeConstructorChanged += new IEditEvents5_OnShapeConstructorChangedEventHandler(m_editEvents5_OnShapeConstructorChanged);
            m_editEvents.OnSketchFinished += new IEditEvents_OnSketchFinishedEventHandler(m_editEvents_OnSketchFinished);
           
        }

        public void m_editEvents_OnSketchFinished()
        {
            //Create a point at the end of the sketch for the current point template.
            m_editor.StartOperation();
            IPoint point = m_edSketch.LastPoint;
            IEditTemplate editTemplate = m_editor.CurrentTemplate;

            IFeatureLayer featLayer = editTemplate.Layer as IFeatureLayer;
            IFeatureClass featClass = featLayer.FeatureClass;
            IFeature newFeature = featClass.CreateFeature();
            newFeature.Shape = point;

            //Apply default values as stored in the template properties.
            editTemplate.SetDefaultValues(newFeature);
            newFeature.Store();
            m_editor.StopOperation("Create Point");

            //Invalidate the area around the new feature.
            m_editor.Display.Invalidate(newFeature.Extent, true, (short)esriScreenCache.esriAllScreenCaches);


        }

        private void m_editEvents_OnSketchModified()
        {
            m_csc.SketchModified();
        }

        private void m_editEvents5_OnShapeConstructorChanged()
        {
            //activate new constructor
            m_csc.Deactivate();
            m_csc = null;
            m_csc = m_edSketch.ShapeConstructor;
            m_csc.Activate();
        }


//-------------------------------------------------------------------------------
//...............................................................................
    }
}

Thanks!

Store new feature in featureclass, Create new Row?

$
0
0
Im working on building a very simple tool that will record the date/time, XY coordinates after a user clicks on the map.

The code is crashing when it reaches 'pFeature.Value(pFeature.Fields.FindField("CurDate")) = Me.txtDate.Text'. Do I need to create a new row first to store the values? The VBA script worked without creating a new row, so I'm just curious where I am going wrong.


Code:

Private Sub cmdExecute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Click
        Dim pMxDoc As IMxDocument
        pMxDoc = My.ArcMap.Application.Document

        Dim pMap As IMap
        pMap = pMxDoc.FocusMap

        Dim pFtrLyr As IFeatureLayer
        pFtrLyr = pMxDoc.SelectedLayer
        If pFtrLyr Is Nothing Then
            MsgBox("A Single Layer Must Be Selected", vbExclamation, "Edit Selected Layer")
            Exit Sub
        End If

        Dim pFeature As IFeature
        pFeature = pFtrLyr.FeatureClass.CreateFeature
        pFeature.Shape = Module1.pPoint

        ' Get and set the spatial reference of new layer and new point
        Dim pBasicMap As IBasicMap
        pBasicMap = pMap
        pFtrLyr.SpatialReference = pBasicMap.SpatialReference
        pPoint.SpatialReference = pBasicMap.SpatialReference

        pFeature.Value(pFeature.Fields.FindField("CurDate")) = Me.txtDate.Text  ***Crashes Here****
        pFeature.Value(pFeature.Fields.FindField("CurTime")) = Me.txtTime.Text
        pFeature.Value(pFeature.Fields.FindField("Type")) = Me.txtType.Text
        pFeature.Store()

        pMxDoc.UpdateContents()
        pMxDoc.ActiveView.Refresh()
        Me.Close()
    End Sub

how to get point within a distance along a polyline given inPoint?

$
0
0
Dear All,
I need to finish the following task: given a point (inPoint) within a polyline (pl), find the point which is:

- within the polyline pl
- distance along the polyline pl between inPoint and the point to-be-find is 250 m

Is there any way to do it with ArcObject?
Thanks for any suggestions,
Hailiang

Can't use esriControls.ControlsEditingEditorMenu on Child form (C#) ?

$
0
0
Hi everyone,

My project include two form: Main form and child form.

Each form contains: 1 MapControl and 1 toolbarcontrol. And I added a ControlsEditingEditorMenu to each toolbarcontrol

I can use ControlsEditingEditorMenu in the main form. But when I open a new form (child form) from the main form, I can't use ControlsEditingEditorMenu (it is disable/ not hightlight when clicking).

I used below codes to add item.

axToolbarControl2.AddItem("esriControls.ControlsEditingEditorMenu", 0, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);

Are there anyone know how to fix it ?

Thanks and regards,

How to calculate the draw time of a layer from ArcMap - at some coordinate

$
0
0
Hi ,

I am planning to write one code, which will calculate the time taking of a layer to draw at one Coordinate.

I am not getting any idea like how to start it.

Can anyone guide me to achieve using ArcObjects+C#

[.NET] Show and hide ArcCatalog tabs in runtime

$
0
0
Is it possible to show and hide ArcCatalog tabs (e.g. "Preview" or my custom IGxView) in runtime?

For example, I have a toolbar with button in ArcCatalog. I click the button and tab "Preview" (or "Contents, or another) is hiding from the ArcCatalog tab control. When I click the button again, the tab shows up.

Fly collision detection

$
0
0
Hello

I use ArcMap for load and show DTED data. I'm able to use LLOS (linear line of sight) between two points.
What I want is fly collision detection. It means that if you fly between two points -on a specific elevation-, will you hit a surface or not.
For better understanding, I created this picture:Attachment 23126

I have no idea about how to implement it. If you have, your idea will be appreciated.

By the way, this VB tool is what I want but it uses ArcScene.

Thank you
Sincerely
Attached Thumbnails
Click image for larger version

Name:	Diagram.png‎
Views:	N/A
Size:	32.4 KB
ID:	23126  

export page layout

$
0
0
I'm using a function I've found here many times ago, and that served me well until now, to export PDF files out of ArcMap through an automated procedure using arcObject (I attach it here).
Suddenly this procedure is no more working, saying "file creation error" and then "cannot map metafile into memory, non enough memory". Same result with different format (TIFF, JPEG, PDF). It's a big image that is displayed on the map, but there would be no difference when you are going to print it with fixed scale and resolution .....
Any hint ?
David Remotti
Attached Files
Viewing all 1374 articles
Browse latest View live