- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying to build a lisp as require but I can not, Please help me:
For example:
1-If the file name is J00823456-1-10 1398 Nam--> It will have 10 numbers appear in the dwg: J00823456-1,J00823456-2...J00823456-10
2-If the file name is J00823456-1,6,12,13 1398 Nam--> It will have 4 numbers appear in the dwg: J00823456-1,J00823456-6,J00823456-12,J00823456-16
3-If the file name is J00823456-1-10 1398 Nam (Ask 2,6)-->It will have 8 numbers appear in the dwg except J00823456-2,J00823456-8
The idea is pick the number from -....to first space. Then count the number.
After We get the numbers, we will compare in the drawing that how many Mtext in the current drawing (Mtext,layer 55) (ssget "_X" '((0 . "*TEXT") (1 . "J*") (8 . "55")))
If they match, do nothing, IF is is different, it will alert: it is wrong.
The attached file is image and CAD file!
Thank you!
--------------------------------
Solved! Go to Solution.