Converting 3d solid to mass element

Converting 3d solid to mass element

Anonymous
Not applicable
592 Views
1 Reply
Message 1 of 2

Converting 3d solid to mass element

Anonymous
Not applicable

Hello, 

I wanted to ask, why when I choose a bunch of 3d solids and convert them to mass, they are sort of combining together ? can I separate them?

thanks

0 Likes
593 Views
1 Reply
Reply (1)
Message 2 of 2

andkal
Collaborator
Collaborator

Try this:
(This converts selected 3dsolids separately one by one)

 

 

 

 

(defun c:test ( / ss1 i1 e1)
    (if (setq ss1 (ssget) )
        (repeat (setq i1 (sslength ss1))
            (setq e1 (ssname ss1 (setq i1 (1- i1))) )
            (command "_MASSELEMENTCONVERT" e1 "" "_yes"  "" )
        );repeat
    );if
    (princ )
);defun

 

 

 

If you are not familiar with autolisp, just copy this code to Notepad and save as .LSP file, then "drag and drop" it into opened drawing to load it. Commands name is TEST


• www.autolisps.blogspot.com - Productivity plugins for Autocad and Autocad MEP
• Autodesk AppStore