Jump to content

vsmax vsmin


Recommended Posts

Posted

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))
                     (if
                       (listp x)
                       (trans x 1 2)
                       x
                     )
                   )
                  '(viewsize viewctr vsmax vsmin)
          )
        x (* 0.5
             (car l)
             (apply '/
                    (vl-remove 0.0 (apply 'mapcar (cons '- (cddr l))))
             )
          )
        y (* (car l) 0.5)

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

 

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)?

 

thanks!

 ps.png.29cf393f1f74f04f9d05b2588e2311fb.png

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...