Custom GxObject


PurposeThis sample code demonstrates how to create a custom GxObject and the GxObject factory to go with it. With a custom object and factory, you can browse for the specified file types within ArcCatalog.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Register the compiled .dll (that is, CustomGxObject_CS.dll) file. For more information, see "How to register COM components" in the following "See Also" section in this sample.
  2. Start ArcCatalog and browse to a directory with Python files.

GxPyFactory.cs Command code for browsing for a file based on the custom filter.
GxPyObject.cs Class implements IGxObjectFilter for filtering out Python files.
Download the C# files
GxPyFactory.vb Command code for browsing for a file based on the custom filter.
GxPyObject.vb Class implements IGxObjectFilter for filtering out Python files.
Download the VB.NET files

Download the files for all languages

See Also:

How to register COM components




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced