I am working on a PyQgis Plugin where I want to enable cad in advanced digitizing panel. Following pre-conditions are met:
- layer is in edit mode
- project has projected crs
- move feature tool is activated (
I found that the way to activate cad tool is the following way:
But it does not work reliably in my case. Sometimes the cad tool is enabled and sometimes not. For the cases it is not activate with the python command, I was always able to enable it by clicking the button in the panel, which means there should not be a problem which prevents it from enabling.
Any idea what the reason could be?