Hot answers tagged arcobjects
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 ...
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 ...
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"?
Cast the layout to IGraphicsContainer and call IGraphicsContainer.FindFrame, passing the map surround as its argument. The returned frame is an IElement instance.
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 ...
You'll want to listen to the IDocumentEvents.NewDocument Event. There's a snippet available that shows how to wire this event.
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 ...
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);
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