i want the object that my lips creates to be a solid ,to able to export to STL

i want the object that my lips creates to be a solid ,to able to export to STL

ritagarciabrito
Explorer Explorer
332 Views
2 Replies
Message 1 of 3

i want the object that my lips creates to be a solid ,to able to export to STL

ritagarciabrito
Explorer
Explorer

Hello,

Thank you for your help. 

I have a lisp that creates shapes of towers. But to be able to export as Stl file, I need to have a closed solid. Could you help me? Thank you

 

(defun c:towerR ()
(setq pontos2d (getvar "osmode"))
(setq pontos3d (getvar "3dosmode"))
(setvar "osmode" 0)
(setvar "3dosmode" 0)
(command "ucs" (getpoint "Insert point. ") "")
(setq nu 0)
(command "_rectangle" (list -1 -1 0) (list 1 1 0))
(guardar)
(command
"_rectangle"
(list (* -1 (setq a (alea 1 4))) (* -1 (setq b a)) (setq c (alea 1 2)))
(list a b c)
)
(guardar)
(command
"_rectangle"
(list (* -1 (setq a (alea 1 1.5))) (* -1 (setq b a)) (setq c (alea 2 7)))
(list a b c)
)
(guardar)
(command "_rectangle" (list -1.5 -1.5 10.) (list 1.5 1.5 10.))
(guardar)
(solido)
(setq lista nil)
(setvar "osmode" pontos2d)
(setvar "3dosmode" pontos3d)
(command "ucs" "")
)

0 Likes
Accepted solutions (1)
333 Views
2 Replies
Replies (2)
Message 2 of 3

calderg1000
Mentor
Mentor
Accepted solution

Regards @ritagarciabrito 

Make the change here:

(defun solido ()
(command "loft" "_mo" "_so");;;Make the change here:"_so"
(foreach p lista (command p))
(command "" "")
)

 


Carlos Calderon G
EESignature
>Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

0 Likes
Message 3 of 3

ritagarciabrito
Explorer
Explorer

It worked. Thank you!!!

0 Likes