Friday, 30 June 2017

Visual Basic for Applications

Documents

Order by : Name | Date | Hits [ Ascendant ]

LandXML To Features Conversion LandXML To Features Conversion

hot!
Date added: 03/29/2010
Date modified: 05/04/2010
Filesize: Unknown
Downloads: 2273
Attached is an ArcMap template with an embedded form that is called by a UI Button. The tool works on the current edit layer in the target window of the Editor. It will work on the current ArcSDE connection parametrs or on the current filesystem data source.

 

The form displays and prompts for the output projection of the destination feature class tat feature will be written to. The source and destination can be different. The source data in the LandXML can either be in a supported NZ Projection (local circuit or national) or held in a supported geographic datum.

All coordinates will be read from the landxml file and converted into polygon (parcel features).

This will help to keep the LINZ cadastrecurrent with proposed submissions. These features can be removed once they become registered and improved in the system.

Label Stacker Utility Label Stacker Utility

hot!
Date added: 03/29/2010
Date modified: 05/04/2010
Filesize: Unknown
Downloads: 2164
This tool labels features using fields from a related table using an ArcMap relate.

 

The tool goes through and displays the fields from a relate from a selected feature layer. Select the field to use as the label field. The current map scale becomes the reference scale for labels (map annotation actually). Labels will be regenerated each time the command is run.

The labels feature-linked to the the feature layer. Unlike an Annotation feature class, the annotation group properties can be easily modified through the data frame.

Remember to build indexes on the relate field for speed.

From 9th July 2008 additional functionality has been added to control text color, alignment, text angle and text size.

Latest update handles labelling only features in the current extent.

Future work is is planned to handle labeling from many relates.

Now support for mutiple field labeling in the frmMultiStacker form.

Expose Select Points By Lines  using the GP Framework in ArcMap Expose Select Points By Lines using the GP Framework in ArcMap

hot!
Date added: 03/29/2010
Date modified: 05/04/2010
Filesize: Unknown
Downloads: 2005
An example of exposing the SelectLayerByLocation_Management tool in VBA Code through a UI Control.

 

Select a Point Feature Layer from the current FocusMap, Selct a Polyline Feature Layer, nominate a search distance and Click the Select Points button to Run the tool.

Attached is a "How to Install" word document and the VBA From called frmSelPtsByLine.

Data Source Re-Mapper Data Source Re-Mapper

hot!
Date added: 03/29/2010
Date modified: 05/04/2010
Filesize: Unknown
Downloads: 2119
Data Source Re-Mapping Application for arcCatalog

 

Call the form to a UI Button in ArcCatalog to remap data sources in layer files and map documents for the selected directory in the tree view.

The excel spreadsheet attached is a template for data mappings. The 3rd column contains the older data source to replace, the 6th column contains the data source that is being mapped to. If mapping to an ArcSDE instance, then the 7th column contains the connection string pathname.

This application provides the ability to remap between several data sources in one hit. Not just constrained to a single Geodatabase Workspace or a file directory.

Attached is a word document to describe the installation and usability of the process.

Create high and low precision geodatabases Create high and low precision geodatabases

hot!
Date added: 03/29/2010
Date modified: 05/04/2010
Filesize: Unknown
Downloads: 2064
Previous to ArcGIS 9.2 Geodatabase coordinate storage was handled in single precision format. With the release of ArcGIS 9.2, the upgraded geodatabase stores coordinates in double precision.

 

By default, feature datasets are created for ArcSDE, file-based and personal geodatabases in double precision with ArcGIS 9.2. Using out of the box ArcGIS 9.2 functionality, there is no way to create single precision objects with pre ArcGIS 9.2 geodatabase.

I have put together a form whcih should be called from a UI Button in ArcCatalog. It works on the selected geotabase and will programmatically create a feature dataset with the option of specifying either low or high precision, the spatial extent and the spatial reference.

To use:
1. Unzip the contents of frmCreateFeatureset.zip
2. In ArcCatalog go to Tools -> Customize
3. Hit the commands Tab
4. Categories -> [UIControls] -> [New UI Control]
5. Import the frmCreateFeatureset into the VBA Environment
6. Call the form from within the stub code of the UI Button onclick event using
frmCreateFeatureset.show vbmodeless
7. Click on a geodatabase in Arccatalog
8. Execute the button

For now the backward compatability issue is averted!

  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  Next 
  •  End 
  • »
Page 1 of 2
python-logo50
GeoData
logotagline50

spatialiq

email: info@spatiallogic.co.nz | phone: +64 9 636 2010 | mobile: +64 21 639 793

Follow Us