With
di.setSnapRestriction (new RRestrictVertical (di));
I am prevented from moving vertically, but the button remains deactivated
Is it also possible to press the button via script?
di.setSnapRestriction (new RRestrictVertical (di));
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
-
- Full Member
- Posts: 81
- Joined: Fri Apr 17, 2015 6:40 am
- Location: http://creativitainformaticart.altervista.org
Re: di.setSnapRestriction (new RRestrictVertical (di));
Code: Select all
var guiAction = RGuiAction.getByScriptFile("scripts/Snap/RestrictVertical/RestrictVertical.js");
guiAction.slotTrigger();