I had write one line of query language in ProtelDXP as the following: IsTrack and ((ABS(X1-X2)-ABS(Y1-Y2))=0)
Its target is to find out all the tracks with their lean at 45-degree or 135-degree. After the execution of the program, some tracks are found while some tracks satisfied with the constrain are leaked. I guess that the reason is the precision of floating point number calculation. So I change it to the following format: IsTrack and ((ABS(X1-X2)-ABS(Y1-Y2)) between -1 and 1). But this time, strange things happen: the queried tracks are nearlly all the tracks with 0 degree, not 45-degree or 135-degree. Who can tell me why. Is it a bug of DXP? Thank you very much! Roboy of BUAA [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * To post a message: mailto:[EMAIL PROTECTED] * * To leave this list visit: * http://www.techservinc.com/protelusers/leave.html * * Contact the list manager: * mailto:[EMAIL PROTECTED] * * Forum Guidelines Rules: * http://www.techservinc.com/protelusers/forumrules.html * * Browse or Search previous postings: * http://www.mail-archive.com/[EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *