Tag Info

Hot answers tagged

3

The GPUtilities class provides all sorts of methods useful when dealing with paths and dataset information. Your goal can be achieved in many ways such leveraging light-weight name objects: Sub WorkspaceFactoryForPath() Dim pGPUtilities As IGPUtilities Dim pName As IName Dim pWorkspaceName As IWorkspaceName Dim sCatalogPath As String ...


3

Creating a network dataset programmatically IS a rather advanced process which requires a fairly good understanding of the ArcObjects and network dataset concepts. There is a chance you miss some of the experience required. To get started with ArcObjects, consider going through the documentation and get more practice with the new ArcObjects book. To learn ...


2

Have a look at this thread. There is a VBA sample showing you how to set the display format. It looks like you are wanting to combine 2 different display formats, is this correct? You may need to have a play around with the ICustomNumberFormat interface but I have not done this, so may be a "red herring"?


2

Cast the layout to IGraphicsContainer and call IGraphicsContainer.FindFrame, passing the map surround as its argument. The returned frame is an IElement instance.


2

This is a function I use to get the type of workspace. This has the benefit of working correctly when the code is being used on computer set to a different language. A problem I ran into when using FinalLocation was it returns the name in the local language. Public Function GetCategory(ByVal pWorkspace As ESRI.ArcGIS.Geodatabase.IWorkspace) As String ...


2

You'll want to listen to the IDocumentEvents.NewDocument Event. There's a snippet available that shows how to wire this event.


1

In order to use C# with the ArcGIS Platform I recommend that you review the ArcObjects API Reference for .NET, and in particular this ArcMap Overview. Something to be aware of at the outset is that little (some annotation is one exception) or no spatial data is stored in *.mxd files. Consequently, I suspect that what you are looking to do is to access ...


1

This is all I need to get things going in a standalone .NET app. We have a floating license server rather than individual licenses though, I'm not sure if that matters: if (ESRI.ArcGIS.RuntimeManager.ActiveRuntime == null) ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.EngineOrDesktop);


1

I finally worked through this issue with Esri Support. The answer is No, there doesn't exist an out-of-the-box way to create connection files for SQL Workspaces. The suggested workaround is to create and use the SDE workspace file, as in Jason's answer, and updating ArcObject code to read the connection properties off the SDE Workspace and opening the SQL ...



Only top voted, non community-wiki answers of a minimum length are eligible