Assgarth Posted July 13, 2011 Report Share Posted July 13, 2011 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 Quote Link to comment Share on other sites More sharing options...
Assgarth Posted July 13, 2011 Author Report Share Posted July 13, 2011 Swoją drogą, jak się teraz dobrać do obiektów będących w ss-grupie??: Quote Link to comment Share on other sites More sharing options...
kruszynski Posted July 14, 2011 Report Share Posted July 14, 2011 może przez vla-getitem albo (vlax-get-property sset 'Item ) albo jakoś podobnie Quote Link to comment Share on other sites More sharing options...
Jason Posted July 14, 2011 Report Share Posted July 14, 2011 (ssget "_X" '((0 . "LWPOLYLINE"))) (vlax-For % (vla-Get-ActiveSelectionSet (vla-Get-ActiveDocument (vlax-Get-Acad-Object) ) ) (princ (vla-Get-Length %)) ) j. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.