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
PHPzforward
2024-01-17 11:51:181648browse

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!

Statement:
This article is reproduced at:docexcel.net. If there is any infringement, please contact admin@php.cn delete