乐筑天下

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

[编程交流] what's wrong in my code-i

[复制链接]

96

主题

322

帖子

234

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
474
发表于 2022-7-6 06:30:22 | 显示全部楼层 |阅读模式
I wanna to insert block with the names :a11,a12,a13,a14...  in my drawing one by one . How I can do it with the unik command same as: insb .??
  1. (DEFUN C:Insb()(COMMAND "_insert" a11 pause 1 1 )(COMMAND "_insert" a12 pause 1 1 )(COMMAND "_insert" a13 pause 1 1 )(COMMAND "_insert" a14 pause 1 1 ))
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 06:41:23 | 显示全部楼层
You should provided the names as string; the command call is also missing the angle argument.
  1. (DEFUN C:Insb()(COMMAND "_insert" [color=red]"[/color]a11[color=red]"[/color] pause 1 1 [color=red]0[/color] )(COMMAND "_insert" [color=red]"[/color]a12[color=red]"[/color] pause 1 1 [color=red]0[/color] )(COMMAND "_insert" [color=red]"[/color]a13[color=red]"[/color] pause 1 1 [color=red]0[/color] )(COMMAND "_insert" [color=red]"[/color]a14[color=red]"[/color] pause 1 1 [color=red]0[/color] ))
 
Don't miss, please, that the code will do the insertion only if the said block definitions were already available in the drawing or were located in a Support File Search Path folder (check in OPTIONS --> Files).
回复

使用道具 举报

96

主题

322

帖子

234

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
474
发表于 2022-7-6 06:59:17 | 显示全部楼层
Dear MSasu , so thanx for your answer
I check this code everything is ok just when i insert this block i couldn't rotate them .I know that the zero (0) at the end of each line means that the angle rotation is zero.so i delete this zero from lines and run it again but after insert the first one  the program interrupt and insert just "a11" with rotation..!!!!!!!
I wanna rotation capability for each insert of my block ,how i can????
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 07:09:40 | 显示全部楼层
To allow user to have control over the insertion angle, use a PAUSE statement instead of a value for its argument:
  1. (COMMAND "_insert" "a11" pause 1 1 [color=magenta]pause[/color] )
回复

使用道具 举报

96

主题

322

帖子

234

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
474
发表于 2022-7-6 07:12:58 | 显示全部楼层
greaaaaaaaaaaaaaaaaaaaaaaaaat soooooooooooooooo thanxxxxxxxxxxxxx  to Mr MSasu .
It's that just I wanna .thanx a lot for your aid .:):):)
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 07:28:05 | 显示全部楼层
You're welcome, Hosyn! Glad I could helped!
回复

使用道具 举报

4

主题

2143

帖子

2197

银币

限制会员

铜币
-24
发表于 2022-7-6 07:36:35 | 显示全部楼层
Please use Code Tags for your code.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-10 15:28 , Processed in 0.610805 second(s), 66 queries .

© 2020-2025 乐筑天下

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