Hi everyone.
I have been working on an AutoCAD lisp routine and I want to translate that to QCAD. So far, simple.js has been wonderful. But when I try to get a coordinate to draw a circle, all documentation I can find is using guiAction. Is there a way to invoke this without a guiAction? I want to be able to prompt user for a coordinate after some settings has been set by the user.
Thanks in advance.
Get pickCoordinate without Gui Action
Moderator: andrew
-
- Registered Member
- Posts: 2
- Joined: Fri Oct 22, 2021 2:26 pm
Re: Get pickCoordinate without Gui Action
Hi,
Interaction with the user is usually done by UI or a dialog, a widget.
There is also an example file for this ... Let me see ...
Found it ... over here:
https://github.com/qcad/qcad/tree/maste ... entWidgets
It is not that hard to modify the UI with Qt Designer.
Use a custom named copy! Should be in your custom script folder.
Copy over what code is required.
One can also create an Options Toolbar widget ...
Then it would be best to study the code of an existing similar GUI action.
As last one could use a single command line entry.
Regards,
CVH
Interaction with the user is usually done by UI or a dialog, a widget.
There is also an example file for this ... Let me see ...
Found it ... over here:
https://github.com/qcad/qcad/tree/maste ... entWidgets
It is not that hard to modify the UI with Qt Designer.
Use a custom named copy! Should be in your custom script folder.
Copy over what code is required.
One can also create an Options Toolbar widget ...
Then it would be best to study the code of an existing similar GUI action.
As last one could use a single command line entry.
Regards,
CVH
-
- Registered Member
- Posts: 2
- Joined: Fri Oct 22, 2021 2:26 pm
Re: Get pickCoordinate without Gui Action
OK.
As I understand it, I should change my workflow and make every action connected to a widget. I guess that would be less hassle. Thanks
As I understand it, I should change my workflow and make every action connected to a widget. I guess that would be less hassle. Thanks