Proceed to GeoCommunity Home Page


SpatialNewsGIS Data DepotGeoImaging ChannelGIS and MappingSoftwareGIS JobsGeoBids-RFPsGeoCommunity MarketplaceGIS Event Listings
HomeLoginAccountsAboutContactAdvertiseSearchFAQsForumsCartFree Newsletter

Sponsored by:


TOPICS
Today's News

Submit News

Feature Articles

Product Reviews

Education

News Affiliates

Discussions

Newsletters

Email Lists

Polls

Editor's Corner


SpatialNews Daily Newswire!
Subscribe now!

Latest Industry Headlines
SiteVision GIS Partnership With City of Roanoke VA Goes Live
Garmin® Introduces Delta™ Upland Remote Trainer with Beeper
Caliper Offers Updated Chile Data for Use with Maptitude 2013
Southampton’s Go! Rhinos Trail Mapped by Ordnance Survey
New Approach to Measuring Coral Growth Offers Valuable Tool for Reef Managers
Topo ly - Tailor-Fit for Companies' Online Mapping Needs

Latest GeoBids-RFPs
Nautical Charts*Poland
Software & Telemetry GPS
Spatial Data Management-DC
Geospatial and Mapping-DC
Next-Gen 911-MO

Recent Job Opportunities
Planner/GIS Specialist
Team Leader- Grape Supply Systems
Geospatial Developer

Recent Discussions
Raster images
cartographic symbology
Telephone Exchange areas in Europe
Problem showcasing Vector map on Windows CE device
Base map

GeoCommunity Mailing List
 
Mailing List Archives

Subject: [gislist] ArcObjects - IWorkspace
Date:  09/30/2003 07:20:01 AM
From:  Lyall Perry




Calling all ArcObjects gurus...

I am attempting to construct a prototype Spatial Decision Support System for
my thesis. I am constructing it in Visual Basic 6.0 and running it in
ArcMap 8.2 as a DLL. Part of that system requires that I load a
comma-delimited text file into ArcMap as a table. I am, however, having a
great deal of trouble opening a workspace to do it. The code falls in a
heap with an "Automation Error" on the "Set pWorkspace" statement in the
procedure included below. Variable 'sImportDir' is the explicit pathname to
the working directory.

Can anyone suggest what I might be doing wrong or recommend another method
of doing it? Any advice would be much appreciated.

Regards,
Lyall Perry
Graduate Student in Spatial Information Science
University of Adelaide
South Australia

'---------------------------------------------------------------------------
-----------------------
Private Sub TableImport(sImportDir As String, sImportFile As String)
Dim pFact As IWorkspaceFactory
Dim pWorkspace As IWorkspace
Dim pFeatWS As IFeatureWorkspace
Dim pTable As ITable
Set pFact = New TextFileWorkspaceFactory
Set pWorkspace = pFact.OpenFromFile(sImportDir, m_App.hWnd) ' <<<<<
Automation Error
Set pFeatWS = pWorkspace
Set pTable = pFeatWS.OpenTable(sImportFile)
'Add the table
Add_Table_TOC pTable
End Sub
'---------------------------------------------------------------------------
-----------------------

_______________________________________________
gislist mailing list
gislist@lists.geocomm.com
http://lists.geocomm.com/mailman/listinfo/gislist

_________________________________
This list is brought to you by
The GeoCommunity
http://www.geocomm.com/

Get Access to the latest GIS & Geospatial Industry RFPs and bids
http://www.geobids.com

Sponsored by:

For information
regarding
advertising rates
Click Here!

Copyright© 1995-2012 MindSites Group / Privacy Policy

GeoCommunity™, Wireless Developer Network™, GIS Data Depot®, and Spatial News™
including all logos and other service marks
are registered trademarks and trade communities of
MindSites Group