Tharwat Posted January 24, 2017 Posted January 24, 2017 Thank you Tharwat, that work well.... So I will create a COND statements for the different options... Thank a lot again... Excellent. you're welcome. Quote
DaveC Posted January 24, 2017 Posted January 24, 2017 Thanks to ALL that reply to my post and try to help me... to Roy_043... to create a LIST of actual Project Numbers (PN) was my first idea, but the PN list change every hour, that will require a new PN list every time they use this program, that is why I decide just to check for user input when is required. Right now in my JOB folder I have 1169 different project numbers. If the user open a DWG from one of this folder I get the PN automaticaly. Quote
BIGAL Posted January 25, 2017 Posted January 25, 2017 like Lee's Question we have a seperate program that keeps track of all project details, that includes project number. It sounds to me that you need a better recording system other than last project number. At simplest use excel, you can then read that excel from Autocad and get last project number. Lastly I would not have 1169 dwg's in one folder as open dwg is a pain scrolling up and down. Quote
Roy_043 Posted January 25, 2017 Posted January 25, 2017 As well as yours. _$ (TestString "1489" '<) T Yes, my function uses the same algorithm. That is why I said: 'Note: The functions are not checking if the digits are in sequence'. Quote
Roy_043 Posted January 25, 2017 Posted January 25, 2017 If there is a separate folder for every project, creating a new list of project numbers would be very easy... Quote
DaveC Posted January 25, 2017 Posted January 25, 2017 answering Lee Mac question, no, I do not have that list. "Right now in my JOB folder I have 1169 different project numbers", those are single FOLDER with the Project Number as a name, as a sample: 139006 171168.01 171170.05, etc... But that is not my problem, the problem is when the user open a DWG outside of those folders (drive "U") let said from the ARCHIVE, drive "S", or any other drive. then the user has to manually type the project number to charge to. The only thing that I need to prevent, is if the user type a consecutive numbers like 000000, 1111111, 999999, 123456789,etc ...ask again for the correct project number. Now the question is ....what will be the fastest way to do and check? 1. Create a PN list (must be created at the time the program started), or 2. Create a list of NUMBERs to avoid (as sample above) to check the user input when is required. thanks everyone.. DC Quote
Roy_043 Posted January 25, 2017 Posted January 25, 2017 It is a pity that you do not use the same structure (one folder per project) in your archive. Maybe the project number can be retrieved from the dwg (dwg name, dwg props or some attribute)? Quote
DaveC Posted January 25, 2017 Posted January 25, 2017 we can not charge to ARCHIVED project number...we must use the new one. thanks guys DC Quote
BIGAL Posted January 26, 2017 Posted January 26, 2017 A part of our team use a simple system of adding A B C etc to a project number when they do work as the project is all finished from a design point of view but they do the on-site setouts hence its a extra. This sounds like what your referring to. A revision of the plans if required is still handled under the original proj No, REV 1 2 3. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.