乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 87|回复: 2

[编程交流] Doggone PLINE Won't Close

[复制链接]

180

主题

639

帖子

463

银币

中流砥柱

Rank: 25

铜币
897
发表于 2022-7-5 17:48:21 | 显示全部楼层 |阅读模式
This code will setup and draw a nice polyline for me. Trouble is I would think that the PLINE would be closed when I'm finished with it. But alas, it's open and thus the WIPEOUT command will not work for me.
  1. (setq ptList (list (polar (polar pt7 pi (- 3.75 0.1875 2.0625)) a270 0.25))   ptList (append ptList              (list (polar (polar pt7 pi (- 3.75 0.1875 2.0625)) a270 (+ 0.25 3.6875)))              (list (polar (polar pt7 0 0.25) a270 (+ 0.25 3.6875)))              (list (polar (polar pt7 0 (+ 0.25 (* (tan 30.) (- ribht 3.6875)))) a270 (+ 0.25 ribht)))              (list (polar (polar pt8 pi (+ 0.25 (* (tan 30.) (- ribht 3.6875)))) a270 (+ 0.25 ribht)))              (list (polar (polar pt8 pi 0.25) a270 (+ 0.25 3.6875)))              (list (polar (polar pt8 0 (- 3.75 0.1875 2.0625)) a270 (+ 0.25 3.6875)))              (list (polar (polar pt8 0 (- 3.75 0.1875 2.0625)) a270 0.25))              (list (polar (polar pt7 pi (- 3.75 0.1875 2.0625)) a270 0.25))              )   )   (command "._PLINE" (foreach pt ptlist (command pt))) (command-s "._WIPEOUT" "" (entlast) "Y")
回复

使用道具 举报

5

主题

1334

帖子

1410

银币

限制会员

铜币
-20
发表于 2022-7-5 18:20:20 | 显示全部楼层
  1. (command "_.PLINE")(foreach pt ptlist (command "_non" pt))[color=red](command "_C")[/color]
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 18:51:14 | 显示全部楼层
Marko beat me to it CLOSE I have not gone through every point but is last point the same as the 1st point if so do not use as the close will do this for you else you will have this extremely small last line.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-12 23:51 , Processed in 0.657196 second(s), 58 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表