Re: [PEDA] What's wrong with my query language program

2004-02-12 Thread Bevan Weiss
the 45degree multiples?? wow... I guess the programmers from protel really didn't study any maths or geometry. - Original Message - From: Ian Wilson [EMAIL PROTECTED] To: Protel EDA Forum [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 5:43 PM Subject: Re: [PEDA] What's wrong

Re: [PEDA] What's wrong with my query language program

2004-02-12 Thread ajenkins
Maybe the word didn't translate well... -Original Message- From: Bevan Weiss [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 12:30 PM To: Protel EDA Forum Subject: Re: [PEDA] What's wrong with my query language program Then it's completely changed the definition

Re: [PEDA] What's wrong with my query language program

2004-02-12 Thread Mr. Zhang Yang Tian
or geometry. - Original Message - From: Ian Wilson [EMAIL PROTECTED] To: Protel EDA Forum [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 5:43 PM X-Scanned: By Symantec Anti-Virus Scan Engine Subject: Re: [PEDA] What's wrong with my query language program On 03:32 PM 12/02/2004, Bevan

Re: [PEDA] What's wrong with my query language program

2004-02-11 Thread Bevan Weiss
- Original Message - From: Mr. Zhang Yangtian [EMAIL PROTECTED] To: Protel [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 4:47 AM Subject: [PEDA] What's wrong with my query language program I had write one line of query language in ProtelDXP as the following: IsTrack and

Re: [PEDA] What's wrong with my query language program

2004-02-11 Thread Mattias Ericson
Or just use the following query: IsOblique Best regards Mattias -- Mattias Ericson, B.Sc.E.E. Omnisys Instruments AB Gruvgatan 8 SE-421 30 Vastra Frolunda, SWEDEN Phone: +46 (0) 31 734 34 08 Fax: +46 (0) 31 734 34 29 E-mail: [EMAIL PROTECTED] Web: http://www.omnisys.se Bevan Weiss wrote:

Re: [PEDA] What's wrong with my query language program

2004-02-11 Thread John M. Cardone
you need to you use the abs value of each coordinate Bevan Weiss wrote: - Original Message - From: Mr. Zhang Yangtian [EMAIL PROTECTED] To: Protel [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 4:47 AM Subject: [PEDA] What's wrong with my query language program I had

Re: [PEDA] What's wrong with my query language program

2004-02-11 Thread Bevan Weiss
10:14 AM Subject: Re: [PEDA] What's wrong with my query language program you need to you use the abs value of each coordinate Bevan Weiss wrote: - Original Message - From: Mr. Zhang Yangtian [EMAIL PROTECTED] To: Protel [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 4

Re: [PEDA] What's wrong with my query language program

2004-02-11 Thread Mr. Zhang Yang Tian
In fact, there is no important difference between subtraction and division. The problem is at the equal mark =. With low precision of floating point calculation, the result of the track lean angle may be 45.1 or 44.99. These values are not equal to 45.00. So some tracks

Re: [PEDA] What's wrong with my query language program

2004-02-11 Thread Bevan Weiss
] Sent: Thursday, February 12, 2004 1:53 PM Subject: Re: [PEDA] What's wrong with my query language program In fact, there is no important difference between subtraction and division. The problem is at the equal mark =. With low precision of floating point calculation, the result of the track lean

Re: [PEDA] What's wrong with my query language program

2004-02-11 Thread Mr. Zhang Yang Tian
PROTECTED] To: Protel EDA Forum [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 1:53 PM X-Scanned: By Symantec Anti-Virus Scan Engine Subject: Re: [PEDA] What's wrong with my query language program In fact, there is no important difference between subtraction and division. The problem is at the equal

Re: [PEDA] What's wrong with my query language program

2004-02-11 Thread Ian Wilson
On 02:47 AM 12/02/2004, Mr. Zhang Yangtian said: 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

Re: [PEDA] What's wrong with my query language program

2004-02-11 Thread Bevan Weiss
IsOblique will get all tracks whose angle is not a multiple of 90degrees. Hence if you have a 60degree track it will also be picked up... Are they short tracks? Your query will pick up all short tracks regardless of angle - lets say you have the PCB units set to metric. Lets say you have a