Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun Kvadrat()
- (setq GoreLevoPt (getpoint "Odaberite gornju levu tacku kvadrata: "))
- (setq DuzinaStranice (getint "Unesite duzinu stranice kvadrata: "))
- (if (> DuzinaStranice 0)
- (
- (setq GoreLevoX (car GoreLevoPt))
- (setq GoreLevoY (cadr GoreLevoPt))
- (command "rectang" GoreLevoPt (list (+ GoreLevoX DuzinaStranice) (- GoreLevoY DuzinaStranice)))
- )
- (alert "Stranica kvadrata mora biti veca od nule!")
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement