I am in need of a little help. I have created a shapefile, which represents the extent and location of a DXF. Within the shapefiles attributes is the file location. I am trying to create an action which would insert the DXF into the map canvas as required, the action I am currently trying is
qgis.utils.iface.addVectorLayer('[% "LOCATION" %]','[% "MAP_NUMBER" %]',\ 'OGR') and qgis.utils.iface.addVectorLayer('/(insert file path)//[% "SCALE" %]/[% "MAP_NUMBER" %].dxf','[% "MAP_NUMBER" %]',\ 'OGR') Every time I run the actions I get an error "The layer /F:...[insert path here.dxf/] is not a valid layer and can not be added to the map" I have other Actions which open the DXF in a CAD Program, and one which displays the file name, so I know the Location works and is valid. I just cant seem to get it to insert the DXF. Any help in this would be appreciated. Regards & Thanks, Richard. ********************************************************************** Email Disclaimer: http://www.opw.ie/en/disclaimer/ **********************************************************************
<<attachment: richard_mcdonnell.vcf>>
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user