Field-Map Scripting

4.2.1.20 Filename

ImportShapefile.Filename property


Prototype:

property ImportShapefile.Filename :string;

Description:

Specifies a full path and name of the file to be imported

Syntax:

Layer.ImportShapefile.Filename:=MyFilename ;


Part

Description


MyFilename

A variable declared as string that specifies the file to be imported


Layer

A reference to the Field-Map layer as defined in Field-Map Project Manager


Note: This property is available since version X7.


Example:


var n:integer;
begin
  RegPoints.ClearTable;
  RegPoints.ImportShapefile.Filename:=ProjectDir+'ToBeImported\Trees_polyg.shp';
  RegPoints.ImportShapefile.AssignAttribute('IDMNGUNITS','IdentificationNumber');
  RegPoints.ImportShapefile.ImportOnlyCentroids:=true;  	
  n:=RegPoints.ImportShapefile.Execute;
  ShowInformation(format('Number of imported entities: %d',[n]));
end.


See also:

Name; Free; ParentName; LayerType; LayerLevel; LayerLabel; AutoTimeStampEnabled; PerformOnChangeScript; PerformOnChangeScriptForAllRecords; PerformLayerScript; OnLineCalliper_AddAttribute; OnLineCalliper_RemoveAttribute; OnLineCalliper_ClearAttributes; OnLineCalliper_GotoAttribute; OnLineCalliper_AddRecordUponReceipt; GetCrownProfileVolumeAndSurface; GetCrownProjectionAsLine; GetCrownProjectionAsPolygon; OpenExternalForm; RelationType; IsValidParentLayer