Recommended Posts

Posted

Tym razem tylko w ramach informacyjnych dla wszystkich, którzy piszą w Visual Lisp pod wszelkie systemy CAD.

Znalazłem kolejną różnicę, tym razem zawartą w funkcji "vlax-invoke", a mianowicie w ZwCAD, funkcja ta zwraca bezpośrednio ss-grupę:

,

natomiast standardowo w AutoCAD otrzymujemy listę wskazującą na obiekt np.:

().

Stąd też nie można użyć tej funkcji w sposób jednoznaczny do uzyskania informacji np.

vla-Get-Length

pozdrawiam

Posted

(ssget "_X" '((0 . "LWPOLYLINE")))
(vlax-For %
 (vla-Get-ActiveSelectionSet
   (vla-Get-ActiveDocument
     (vlax-Get-Acad-Object)
   )
 )
 (princ (vla-Get-Length %))
)

j.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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

Loading...