POST
|
@mukundbtech: I tried your posted code and found that it is not returning all the used domains, but only the fixed ones....However I got the solution to return all the domains assigned to fields in all feature classes...But the issue now is the first one which is how to return all the feature classes in a workspace...
... View more
03-08-2012
03:06 AM
|
0
|
0
|
1094
|
POST
|
Greetings I have an ArcMap 9.1 and I developed a new Vb.Net 2005 application which implements ICommand and then add it to the ArcMap Standard toolbar. This Command opens a from that will generate many statistical reports designed using Crystal report XI (11.0.0.893)...However the version number of the CR References that are added to my application source code in the Visual Studio 2005 is: 10.2.3600.0 Now, I can preview any report successfully, but when trying to export any report that contains a Chart into pdf format using the built-in export functionality in the report viewer control, the application freezes forever. While when exporting any report that does not contain any chart into pdf format, it exported successfully and with no errors. So, I need to know if there is some way / Solution / workaround that I could use to fix my issue and let my export process continue successfully for the crystal reports that contain Charts. For more information, in order to add this Vb.Net 2005 command to ArcMap 9.1, I had changed the ArcMap.exe.config found in the directory "C:\Program Files\ArcGIS\Bin" as follows: <?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- Warning: The configSections element must be the first element under configuration -->
<configSections>
</configSections>
<startup>
<supportedRuntime version="v2.0.50727" />
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration> please can I have a little help over here... Please advise... Thanks in advance....
... View more
03-07-2012
10:18 PM
|
0
|
0
|
670
|
POST
|
Thanks Guys for your value replies.... Please let me clarify my question in order to give you more details and let you help me more... I have created a SDE workspace using the following code:
Dim pPropertySet As IPropertySet
pPropertySet = New PropertySet
With pPropertySet
.SetProperty("Server", Server)
.SetProperty("Instance", Instance)
.SetProperty("User", Username)
.SetProperty("Password", Password)
.SetProperty("Version", Version)
End With
Dim sdeWrkspcFactroy As IWorkspaceFactory
sdeWrkspcFactroy = New SdeWorkspaceFactory
pWS = sdeWrkspcFactroy.Open(pPropertySet, 0) Moreover, this Workspace is containing more than 10 datasets and each Dataset may contain many FeatureClasses.... So I have a Workspace created through a connection (PropertySet) and this Workspace contains many DataSets and each Dataset contains many FeatureClasses... @ Neil: I hope to get some sample code from your side @ mukundbtech: I think that your code related to retrieve all Datasets in the Workspace and QI with FeatureClass type will not be a solution to me since there is a lot of FeatureClasses in each Dataset in the Workspace. In related to the second part of your code, I thank you very much but what I need and it is not mentioned in my first post which is really my fault,What I need is to list the fields of each FeatureClass that are assigned domains with the domains names.. appreciate your support...
... View more
03-06-2012
07:22 PM
|
0
|
0
|
1094
|
POST
|
Greetings, Is there a way to get all the featureclasses in a worksapce through vb.net code? please advise.....
... View more
03-05-2012
10:12 PM
|
0
|
0
|
192
|
POST
|
Greetings, Lately I`ve assigned to a task that require me to list all the feature classes that are within a workspace. So I need help here with this....I have a feature workspace and I`m trying to list all the feature classes inisde it, then Loop over the fields of each featureclass....Is there a sample code to do this? ... Please advise.... Thanks in advance
... View more
03-05-2012
06:40 PM
|
0
|
7
|
1487
|
POST
|
Greetings, I have 2 custom application one developed using .Net 2003 and 1.1 Framework another application using Vb.Net 2005 and the framework is 2.0 and I have designed the reports for each application using the built-in crystal report inside the Visual Studios (2003 & 2005). I have ArcGIS 9.1 so I have to modify the ArcMap.exe.config file in order I can load the application using 2.0 framework as following: <supportedRuntime version="v2.0.50727" /> <supportedRuntime version="v1.1.4322" /> Now when I generate a report from the .Net2003 application and try to Export it into a PDF file using the Export built-in functionality it generates the following error: Crystal Report Windows Forms Viewer --------------------------- Method 'ISCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel.EditableRTFExportFormatOptionsClass' from assembly 'CrystalDecisions.ReportAppServer.ReportDefModel, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' is overriding a method that has been overridden. So please can I have a little help over here... Please advise... Thanks in advance....
... View more
02-09-2012
01:52 AM
|
0
|
0
|
747
|
POST
|
Thank you ariharan3, I just want to inform you that the link you provided is for a thread that I own,... again thank you for your interest in this issue...
... View more
11-09-2011
04:40 AM
|
0
|
0
|
228
|
POST
|
Thank you v.much my friend dubravko.antonic for your perfect solution... I just convert your sample into Visual Basic syntax and everything went great.. You`ve got my respect.....
... View more
09-26-2011
04:01 AM
|
0
|
0
|
304
|
POST
|
Thank you dubravko for your reply.. I just used your hints as follows: Dim pmap As IMap pmap = g_pMxDoc.FocusMap Dim penumlayer As IEnumLayer penumlayer = pmap.Layers Dim player As ILayer player = penumlayer.Next Dim pfeatlayer As IFeatureLayer Dim pfeatcls As IFeatureClass Dim pwrkspcedit As IWorkspaceEdit Dim pdataset As IFeatureDataset Dim plist As String Do Until player Is Nothing If (TypeOf player Is IFeatureLayer) Then pfeatlayer = player pfeatcls = pfeatlayer.FeatureClass pdataset = pfeatcls.FeatureDataset pwrkspcedit = pdataset.Workspace If pwrkspcedit.IsBeingEdited Then plist = pfeatlayer.Name & vbNewLine & plist End If End If player = penumlayer.Next Loop MsgBox(plist) But when running the above code an error is occured: "Object variable is not set to an object" at the bold line up. Please advise, Also a sample code on how to check if the layer belongs to the edited workspace is preferable.
... View more
09-26-2011
02:05 AM
|
0
|
0
|
304
|
POST
|
Thank you Mr. Neil.. I just used the IFeatureSelection Interface and everything work as expected,,
... View more
09-24-2011
10:29 PM
|
0
|
0
|
706
|
POST
|
Greetings, Is there an effecient way to find the workspace that is being edited so that we can specify if a feature is included on the edit session or not? My story is that I need to know if any feature (randomly selected from the map) in the map can be edited or no since every feature in the map can be edited through code although it is out side the edited workspace, and also there are featurelayers of different types e.g. CAD Layers, ShapeFiles, FeatureClass (SDE & PGDB), & etc... Thanks for any try to help....
... View more
09-24-2011
09:43 PM
|
0
|
4
|
865
|
POST
|
Thank you Mr. Neil Clemmons for your reply... Can you please post a sample code on how to clear selection from one layer only programmatically using the interface IfeatureSelection? This task can be done in ArcMap and i think it can be implemented in the code.Can`t be?
... View more
09-22-2011
05:58 AM
|
0
|
0
|
706
|
POST
|
Greetings, I need your help in my following simple idea: I want to unselect programmatically the selected feature of a specific layer and not clear selection for all selected features in the map? Is this possible through Vb.Net code? e.g. unselect all the Fuse features in the map... Thanks for interesting in my question....
... View more
09-22-2011
12:08 AM
|
0
|
4
|
5751
|
POST
|
Greetings, I simply want to select the feature of the top most layer which is clicked on by the mouse cursor in the map. SO I clicked on the map and I select the feature (of the top most layer) that is located there under the mouse click programmatically and without using or calling the "SelectFeaturesTool" of ArcMap. Is there a vb.net code to do that... Please it is very critical and hurry!!!
... View more
09-20-2011
01:24 AM
|
0
|
2
|
1641
|
POST
|
Greetings, Please note that while I was trying to start and edit session programmatically from a VB.Net code in ArcMap 9.1 SP2. I wonder that I got the following error: System.Runtime.InteropServices.COMException (0x80004005): Unspecified error at ESRI.ArcGIS.Editor.IEditor.StartEditing(IWorkspace workspace) Please advise after looking for my below used code: Dim pUid As UID pUid = New UIDClass pUid .Value = "esriEditor.Editor" Dim pEditor As IEditor pEditor = CType(g_pApp.FindExtensionByCLSID(pUid), IEditor) 'Check to see if a workspace is already being edited. If pEditor .EditState = esriEditState.esriStateNotEditing Then pEditor .StartEditing(workspaceToEdit) Return True Else Return False End If Please help it is very urgent....
... View more
09-14-2011
02:53 AM
|
0
|
1
|
4005
|
Online Status |
Offline
|
Date Last Visited |
01-18-2021
12:18 PM
|