Message 1 of 7
How to combine 3 selections into one?

Not applicable
04-24-2018
10:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
This routine needs to many clicks. How to combine these 3 IF's into 1?
(DEFUN C:HAll ( / multiple hatch edit ) (if (and (princ "\nSelect HatchPatterns to change their type and HatchScale") (setq stone (ssget "_:L" '((0 . "HATCH") (2 . "ANSI31,_O") (41 . 1)))) ) (progn (initcommandversion) (COMMAND "_-HATCHEDIT" stone "" "_Properties" "" "0.5" "") ) ) (if (and (princ "\nSelect HatchPatterns to change their type and HatchScale") (setq skimcoat (ssget "_:L" '((0 . "HATCH") (2 . "AR-SAND") (41 . 0.15)))) ) (progn (initcommandversion) (COMMAND "_-HATCHEDIT" skimcoat "" "_Properties" "" "0.07" "") ) ) (if (and (princ "\nSelect HatchPatterns to change their type and HatchScale") (setq gwb (ssget "_:L" '((0 . "HATCH") (2 . "AR-SAND") (41 . 0.3)))) (progn (initcommandversion) (COMMAND "_-HATCHEDIT" gwb "" "_Properties" "" "0.15" "") ) ) (princ); )