- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Deare Coders,
I have a small routine that select all entities in a block
Then filter out what is needed ( in this case MTEXT with field)
I end up with a (-1 . <Entity name: 7ffff921040>) and want to explode this.
Though it does not work and I cant figure out why
Code below
ent11 is a list
(<Entity name: 7ffff920920> <Entity name: 7ffff920930> <Entity name: 7ffff920940> <Entity name: 7ffff920950> <Entity name: 7ffff920960> <Entity name: 7ffff920970> <Entity name: 7ffff920980> <Entity name: 7ffff920990> <Entity name: 7ffff9209a0> <Entity name: 7ffff9209b0> <Entity name: 7ffff9209c0> <Entity name: 7ffff9209d0> <Entity name: 7ffff9209e0> <Entity name: 7ffff9209f0> <Entity name: 7ffff920a00> <Entity name: 7ffff920a10> <Entity name: 7ffff920a20> <Entity name: 7ffff920a30> <Entity name: 7ffff920a40> <Entity name: 7ffff920a50> <Entity name: 7ffff920a60> <Entity name: 7ffff920a70> <Entity name: 7ffff920a80> <Entity name: 7ffff920a90> <Entity name: 7ffff920ae0> <Entity name: 7ffff920b30> <Entity name: 7ffff920b80> <Entity name: 7ffff920bd0> <Entity name: 7ffff920c20> <Entity name: 7ffff920c70> <Entity name: 7ffff920d10> <Entity name: 7ffff920d60> <Entity name: 7ffff920db0> <Entity name: 7ffff920dc0> <Entity name: 7ffff920e60> <Entity name: 7ffff920eb0> <Entity name: 7ffff920f00> <Entity name: 7ffff921030> <Entity name: 7ffff921040>)
(foreach ent1 ent11 (setq a (cdadr (entget ent1))) ;(if (= a "MTEXT")(print "YES")) (setq b ent1) (setq c (entget b)) ;(print c) (if (= (cdr (assoc 102 c))"{ACAD_XDICTIONARY") (progn (print c) (setq d (cdr (assoc 330 c))) (setvar "qaflags" 1) (command "_.explode" d "") (setvar "qaflags" 0) ;(command "explode" c) ;(command "explode" d "") ;(vla-explode b) (princ) ) ); end if (princ) ); end foreach
I only want to explode text objects containing a field
So I filter them on assoc 102 and after that I want to explode the object
What QAFLAGS code do I need for this?
Or is it not possible?
Kind Regards
Solved! Go to Solution.