Re: [Qgis-user] QGIS Actions

2017-01-06 Thread Richard McDonnell
Morning, Just a progress report! Ive found another way of doing it, but it causes QGIS to hang (become unresponsive) for about 2mins import subprocess subprocess.call(['C:/Program Files/Autodesk/AutoCAD 2015/acad.exe', ' "[% "root" %]itm/[% "subfolder" %][% "filename" %]" ']) Its cleaner

[Qgis-user] QGIS Actions

2017-01-05 Thread Richard McDonnell
Hi all, I am trying to create a style for a Vector Index WFS (dxf's). The Idea is that it can be used within QGIS to both load the vector data directly into QGIS and also to open it in AutoCAD, if required. I have a working action which loads the dxf into QGIS, but I am running into issues

[Qgis-user] QGIS Actions Help

2014-01-15 Thread Richard McDonnell
Apologies if this is the incorrect forum for this, but I am in need of a little help. Ill keep this as simple as I can, Id I create a shapefile, which represents the extent and location of a dxf. within the attributes is the file location, lets call it LOCATION. I have looked for an action

[Qgis-user] QGIS Actions and relative path

2011-05-18 Thread iomeneandrei
Dear all, I'm using QGIS 1.6 for windows and I'm using a simple General Action: cmd /c %MyField I'm using it to open some pdf files. In MyField field I have the absolute path of my files. Is there a way to use a path relative to the QGIS project? It would be fantastic to use (in example) this

Re: [Qgis-user] QGIS Actions and relative path

2011-05-18 Thread Andreas Neumann
You could probably do this with python. I am not entirely sure if it works, but there are python actions. The python action gets a reference to the feature - maybe - if you can access the project file from python, there is a QgsProject::readPath

Re: [Qgis-user] QGIS Actions and relative path

2011-05-18 Thread Asmus Harder
-user@lists.osgeo.org Betreff: Re: [Qgis-user] QGIS Actions and relative path You could probably do this with python. I am not entirely sure if it works, but there are python actions. The python action gets a reference to the feature - maybe - if you can access the project file from python