[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Convert 3D Faces to Lines
Tip# 4402 By Kent Cooper On 23-Nov-2014
Rated By 0 users Downloaded : 1331
Categories : 2D Operations, Linear Objects, 3D Editing, 3D Operations
Software type : AutoCAD 2015
Rename File To : 3DFacesToLines.lsp
Create lines to use as cutting edges for the Trim command.

Kent Cooper created this routine in response to a question in the Autodesk customization forums; the user wanted to trim AutoCAD objects where the cutting edge turned out to be 3D faces. Since neither trimming to 3D faces or exploding 3D faces is supported in AutoCAD, Kent wrote this routine to convert 3D faces into lines, which of course can be used as cutting edges for the Trim command. As usual, Kent's code is well written and documented, with some user-defined options that you may wish to alter.


Average Rating:

User comments
Comment by Cooper,Kent
Posted on 2015-01-13 11:55:43
Note that it draws Lines along only the VISIBLE edge(s) of the selected 3DFace(s), and omits any INvisible edge(s). If edge visibility is not an issue and you want all edges drawn with slightly more memory efficiency, or if you want all edges drawn and MADE visible even if some are originally invisible, or if you want the conversion of each 3DFace to remain a single entity instead of 3 or 4, you can use the attached 3DFacesTo3DPolylines.lsp routine (which I have submitted for a Tip of its own if they choose to make it one) with its 3DF2PL command.
Comment by Cooper,Kent
Posted on 2015-03-30 10:34:34
They have now given 3DFacesTo3DPolylines.lsp a Tip of its own -- see #4445.