TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Biscuits on May 25, 2016, 11:11:06 AM
-
Using Autocad 2013 on Windows 7 Pro
I'm really stumped on this one. I have 2 titleblocks:
"A" with attributes "2010Title" or "2014Title" with tag names "pg1"or "pg" or "PG_NO"
"B" with attributes "2014Title2" "2014Title2" with tag names "pg1"or "pg" or "PG_NO"
in all cases I need to remove the leading zero for our page numbers
(within the attributes applied to the above tags)
I've tried several ideas and end up hitting a wall every time.
Any ideas or suggestions?
I would post what I have so far, but it's just garbage.
Thanks
-
When you say:
"A" with attributes "2010Title" or "2014Title" with tag names "pg1"or "pg" or "PG_NO"
"B" with attributes "2014Title2" "2014Title2" with tag names "pg1"or "pg" or "PG_NO"
What are '2010Title' etc.?
I understand that you have block "A" & block "B" with attribute tags "pg1"or "pg" or "PG_NO", but I don't see what "2010Title", "2014Title" are referring to.
-
Assuming the blocks are not dynamic:
(if (setq s
(ssget "_X" '
((0 .
"INSERT") (2 .
"A,B") (66 .
1)))) )
)
)
)
)
-
Perfect..........you make this stuff look too easy.
Thanks a bunch. I owe you another cold one!
-
No worries! :-)