Automated sheet index lisp assistance

Automated sheet index lisp assistance

DC-MWA
Collaborator Collaborator
1,143 Views
2 Replies
Message 1 of 3

Automated sheet index lisp assistance

DC-MWA
Collaborator
Collaborator

Hello,

I have been working on this little routine that uses the drawings in a folder to populate a sheet index for the project. It then writes the index to mtext to be inserted on the title sheet.

In our office the project sheet files are named as follows:

A0.00 - TITLE SHEET  or  A1.00 - FLOOR PLAN etc..

The program works well but it skips over A0.02 - CODE ANALYSIS every time. That's the one I keep noticing, it may skip others as well that haven't been noticed yet.

Not sure how to remedy this or what is causing it to occur.

I have attached a sample project folder and the lisp file as well.

Thanks in advance for any assistance or input.

-dc

0 Likes
Accepted solutions (1)
1,144 Views
2 Replies
Replies (2)
Message 2 of 3

SeeMSixty7
Advisor
Advisor
Accepted solution

Add STRCASE to your comparsion. The drawing you are havingh issues with has upper case DWG the other files use lower case dwg as does your lisp routine.

 

something like this

(wcmatch (strcase x) "A?.*.DWG")

 

Hope that helps,

 

 

0 Likes
Message 3 of 3

DC-MWA
Collaborator
Collaborator

That did help. Pretty scary that that all it takes is for a user to rename a file with the extension in caps.