这里还有一些提示。
制作层时减少命令行垃圾邮件在制作层之前和之后关闭cmdecho。
- (setvar 'cmdecho 0)
- (command "layer" "m" ...
- (command "layer" "m" ...
- (command "layer" "m" ...
- (setvar 'cmdecho 1)
OD和ID的getdist。您可以用鼠标或键入来拾取点,也可以确保OD大于ID。并一次性将它们除以2。
- (if (and (setq P-OD (/ (getdist "\n Enter O.D. of Pipe: ") 2)) (setq P-ID (/ (getdist "\n Enter I.D. of Pipe: ") 2)) (> P-OD P-ID))
- (progn)
- (Progn
- (prompt "\nI.D. Needs to be smaller then O.D.")
- (quit)
- )
- )
若管道的中心线是多条线,那个么所有连接的弧将连接成一条多段线。
- (vl-cmdf "_.Join" A "") ;join everything selected with ssget into one polyline if they are connected
可以用4条vla线路替换entmod的24条线路
- (setq off (vla-offset D idist)) ;sets vla-objname of new offset entity
- (vla-put-layer off "Boiler-Pipe-ID") ;moves offset entity to layer
|