How to select/fillet specific edges of a 3D solid

How to select/fillet specific edges of a 3D solid

Anonymous
Not applicable
1,234 Views
2 Replies
Message 1 of 3

How to select/fillet specific edges of a 3D solid

Anonymous
Not applicable

I am trying to use AutoLisp to automatically fillet *some* of the edges of a 3D solid, which I would like to choose programmatically (no user selection). I need to do some complex/extensive selection so I cannot do that "by hand".

 

To fix ideas, let's say i want to simply fillet the edges of the top face in a cube. I can create the cube, access the cube entity and look inside its (misterious) association list, but I cannot find any way to select its edges and to feed the selection to a call to the command FILLETEDGE.

 

Is that even possible?!

 

 

(command "box" "0,0,0" "1,1,1")
(setq aslist (entget (entlast)))
(command "filletedge" "r" 0.1 [...list of edges?!?!]); <= any idea?

 

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

marko_ribar
Advisor
Advisor
Accepted solution

Have you tried to feed FILLETEDGE command with points as tokens instead of imaginary edges? To get points, you could try XEDGES command, extract curves and then use (vlax-curve-xxx) functions to get points after which you can remove extracted curves, or simply do UNDO to point before XEDGES... Finally, you could feed FILLETEDGE with points to get desired result... I don't know if it will work, but I strongly believe that point data as tokens should work well like with all other commands used in lisp with (command), (vl-cmdf) or (command-s) functions...

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 3 of 3

lena.talkhina
Alumni
Alumni

Welcome to the Autodesk Community @Anonymous !

 

Great to see you here on LISP forum.

Hope you will find a solution soon.

Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям! | Do you find the posts helpful? "LIKE" these posts!
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.



Лена Талхина/Lena Talkhina
Менеджер Сообщества - Русский/Community Manager - Russian

0 Likes