Home > Computer Tutorials > Computer Knowledge > How to solve the problem of connecting two non-intersecting or non-coplanar line segments in CAD

How to solve the problem of connecting two non-intersecting or non-coplanar line segments in CAD

PHPz
Release: 2024-01-17 11:51:18
forward
1658 people have browsed it

How to solve the problem of connecting two non-intersecting or non-coplanar line segments in CAD

The first step is to use Notepad to save the following content as z0.lsp file

The second step, click Tools-AUTOLISP-Load-z0.lsp file

The third step, enter z0 on the command line, press Enter, select ALL, press Enter, and all non-coplanar lines will be reset to zero.

The following is the content of the notepad——

(defun C:Z0 (/SS1)

(setvar "cmdecho" 0)

(if (setq SS1 (ssget))

(progn

(command ".undo" "be")

(princ "\nProcessing graphics data, please wait...")

(terpri)

(command ".ucs" "w")

(command ".move" SS1 "" '(0 0 1e99) "" ".move" "p" "" '(0 0 -1e99) """)

(princ "\nOK, all Z coordinate values ​​of the selected primitive have been reset to zero.")

(command ".undo" "e")

);end progn

);end (if (/= SS1 nil)

(princ)

);end (defun C:Z=0 ( / SS1)

The above is the detailed content of How to solve the problem of connecting two non-intersecting or non-coplanar line segments in CAD. For more information, please follow other related articles on the PHP Chinese website!

source:docexcel.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template