乐筑天下

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

[编程交流] Deleting un-used block attribu

[复制链接]

1

主题

2

帖子

1

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 09:51:34 | 显示全部楼层 |阅读模式
I am looking for some help.. I have a program that inserts a block and within that block there are many attributes. I would like to then have my program delete the un-used attributes. Can someone get me pointed in the right direction?
回复

使用道具 举报

26

主题

1495

帖子

20

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
118
发表于 2022-7-6 10:17:13 | 显示全部楼层
That's a bit dangerous.  It can lead to multiple problems.
 
What is the end result that you are looking for?  -David
回复

使用道具 举报

48

主题

1073

帖子

1043

银币

后起之秀

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

铜币
238
发表于 2022-7-6 10:27:29 | 显示全部楼层
why do you want to do this?
 
Once you have the block in the drawing with however many attributes you end up with, you won't be able to insert that block again with a different number of attributes. If you write the code to delete the unused attributes on insertion and your newly inserted block has fewer attributes than your previous block the previous block will be re-defined to the lower number of attributes.
 
Having said all that it shouldn't be too hard but I have forgotten all the LISP I ever knew so I'll let somebody else answer your question.
回复

使用道具 举报

1

主题

2

帖子

1

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 10:40:59 | 显示全部楼层
I guess I didn't think about that. I dont want to do that so I will go a different direction.. Thanks
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

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

铜币
438
发表于 2022-7-6 10:52:08 | 显示全部楼层
Just make the unused attributes blank (put "" as the text string).
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-6 23:59 , Processed in 1.890862 second(s), 62 queries .

© 2020-2025 乐筑天下

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