乐筑天下

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

[编程交流] Explode a SS? I don't und

[复制链接]

88

主题

346

帖子

281

银币

后起之秀

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

铜币
423
发表于 2022-7-6 14:35:39 | 显示全部楼层 |阅读模式
Is it possible to explode a selection set assigned to a variable?
I'm debugging a routine and am having a problem with this code.
If I create a selection set with several MTEXT entities
it only explodes the last one the way it's written here.
I must really misunderstand how the explode command works.
It asks for a selection set but I cannot return it as a variable!
Once upon a time (ie:version) was the Explode command one of the
commands that returned "Select Object:" vs "Select Objects:" ???
 
This is only a subroutine I've pulled out of a larger proggie I'm working on.. I feel stupid that I can't figure this one out. Help Please!!
 
(defun c:XM4 ( )
(setq t (ssget))
(setq mtss (ssget "P" '((0 . "MTEXT"))))
  (if mtss
    (progn
        (command "explode" mtss "")
    )
  )
(princ))
 
Thank you to all the code masters who inspire us posers!
(^_^)
回复

使用道具 举报

4

主题

940

帖子

961

银币

初来乍到

Rank: 1

铜币
12
发表于 2022-7-6 15:59:33 | 显示全部楼层
try putting
  1. (setvar "qaflags" 1)
after the (defun c:... line
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-5 00:29 , Processed in 0.625411 second(s), 56 queries .

© 2020-2025 乐筑天下

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