乐筑天下

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

[编程交流] Won't work

[复制链接]

26

主题

81

帖子

55

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
130
发表于 2022-7-5 15:10:24 | 显示全部楼层 |阅读模式
Would anyone know why this line won't work?
Pt1 ang1 & dist1 are established
command line error is looking for the first point
 
Thank you
 
  1. (command "_.line" (polar Pt1 (+ ang1 (dtr 9o)) 13) (polar ang1 dist1) "")
回复

使用道具 举报

5

主题

1334

帖子

1410

银币

限制会员

铜币
-20
发表于 2022-7-5 15:33:31 | 显示全部楼层
Where is reference point here :
 
(polar ??? ang1 dist1)
 
(dtr) sub function must be loaded, I suggest :
 
(dtr 90) = (cvunit 90 "degree" "radian")
 
 
BTW. Whenever you have command call that involves points input, preferable is that you specify "_non" or "_none" osnap before point spesifications...
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 15:35:15 | 显示全部楼层
You also have "9o" instead of "90":
  1. (dtr 9o)
I would suggest writing your code using a font which demarcates zeroes using lines through the "0" (such as Consolas) to avoid recurrence of this mistake.
 
Please use a more descriptive thread title in future.
回复

使用道具 举报

0

主题

24

帖子

24

银币

初来乍到

Rank: 1

铜币
0
发表于 2022-7-5 15:48:07 | 显示全部楼层
9o should be 90 ?
回复

使用道具 举报

26

主题

81

帖子

55

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
130
发表于 2022-7-5 16:07:44 | 显示全部楼层
Thank you all very much for the feedback.
I must have looked at that line of code 100 times and never spotted the problem with "9o"
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 16:14:30 | 显示全部楼层
Yeah like the others instant 9o
 
  1. (/ pi 2.0) or (dtr 90) or (setq a90 (/ pi 2.0)) if you need to use angle 90 a lot.(polar pt1 a90 dist)
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-14 21:04 , Processed in 2.308728 second(s), 64 queries .

© 2020-2025 乐筑天下

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