工具箱相关
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

G_3D.LSP 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. (defun plxy ( ent / list00 ent ent1 xy d0 )
  2. (setq list00 nil)
  3. (while (progn
  4. (setq ent1 (entnext ent))
  5. (setq xy (cdr (assoc 10 (entget ent1))))
  6. (setq d0 (cdr (assoc 0 (entget ent1))))
  7. (/= d0 "SEQEND"))
  8. (setq list00 (append list00 (list xy)))
  9. (setq ent ent1)
  10. )
  11. list00
  12. )
  13. (defun pl_xylist ( list1 / n list1)
  14. (setq k 0)
  15. (command "pline")
  16. (while
  17. (command (nth k list1))
  18. (getpoint"ppppp")
  19. (setq k (1+ k))
  20. )
  21. (command "")
  22. )
  23. (defun c:3d()
  24. (setq ss (ssget "X" '((0 . "polyline"))))
  25. (if ss (progn
  26. (setq n 0 list00 nil)
  27. (while
  28. (setq ent (ssname ss n))
  29. (setq d8 (cdr (assoc 8 (entget ent))))
  30. (setq list_ok (plxy ent))
  31. (command "erase" ent "")
  32. (setq nn 0)
  33. (command "pline")
  34. (while
  35. (setq nth0 (nth nn list_ok))
  36. (command nth0)
  37. (setq nn (1+ nn))
  38. )
  39. (command "")
  40. (command "change" (entlast) "" "p" "la" d8 "")
  41. ;;; (pl_xylist list_ok)
  42. (setq n (1+ n))
  43. )
  44. ))
  45. )