Jump to content

vsmax vsmin

Recommended Posts


Hi me again..

This snippet used for ssget "C" or "W" (crossing/window)

(defun c:test (/ l x y) 

(setq l (mapcar '(lambda (x)
                           (setq x (getvar x))
                       (listp x)
                       (trans x 1 2)
                  '(viewsize viewctr vsmax vsmin)
        x (* 0.5
             (car l)
             (apply '/
                    (vl-remove 0.0 (apply 'mapcar (cons '- (cddr l))))
        y (* (car l) 0.5)

    '(0 . "LINE")
      '(lambda (f i)
	   (mapcar '(lambda (a b c) ((eval a) b c)) f (cadr l) (list x y))
      '((- -) (+ +))
      '(10 11)


entmake line for visibility showing 2 corners connected.

it should look like screenshot (ps or ms) 

Autocad has no issue

can you report your vsmin vsmax in new dwg or any dwg (Bricscad)?





Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...