OK. Found this code on FreeCadApps and am trying to modify to get scale for lengths of 'wings'.
It gives me this error
Command: cct
; error: bad function: 0.165
I am trying to multiply the VARR by 0.165 to set the length of the wings.
;*** CCT.LSP
;*** Written by gorgeous Rob from Australia who came to help us for a while
;
;
; Disclaimer:
; Permission to use, copy, modify, and distribute this software
; for any purpose and without fee is hereby granted, provided
; that the above copyright notice appears in all copies and
; that both that copyright notice and the limited warranty and
; restricted rights notice below appear in all supporting
; documentation.
;
; THIS PROGRAM IS PROVIDED "AS IS" AND WITH ALL FAULTS. THE AUTHOR
; SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITY OR
; FITNESS FOR A PARTICULAR USE. THE AUTHOR ALSO DOES NOT WARRANT THAT
; THE OPERATION OF THE PROGRAM WILL BE UNINTERRUPTED OR ERROR FREE.
;
; Routine for drawing circuit lines between light fittings consisting of 45 degree line from
; first point, straight line between and 45 degree line to second point
; If routine gives a straight line, try zooming in closer
;
;*** Function CCT
(DEFUN C:CCT (/ A B C D LEN ANG SCL VARR WNG)
(SETQ VARR (GETVAR "USERR1")
(if (= VARR 0)
(progn ;;use this if more than 1 line of code is needed
(setq SCL (getreal "\nScale: "))
(setvar "USERR1" SCL)
(setq VARR (getvar "USERR1"))
)
)
(SETQ WNG (0.165 VARR))
(SETQ A (GETPOINT "1ST POINT: "))
(SETQ B (GETPOINT A "2ND POINT: "))
(SETQ LEN (DISTANCE A B))
(SETQ ANG (ANGLE A B))
(SETQ C (POLAR A (+ ANG 0.7854) WNG))
(SETQ D (POLAR B (+ ANG 2.356) WNG))
(COMMAND "PLINE" A C D B "")
)