Width and Length of a path

K

Kevin Doherty

Guest
Hi,
If I select a path how could I get Virtuoso to report the width and
length of this path.. Could I then use this to report all paths width
and length.. All paths have connectivity.

Kevin
 
On Mar 7, 5:47 am, Kevin Doherty <kevin_j_dohe...@yahoo.com> wrote:
Hi,
If I select a path how could I get Virtuoso to report the width and
length of this path.. Could I then use this to report all paths width
and length.. All paths have connectivity.

Kevin
Here's a couple of things to get you going:

1. select the path
2. from the ciw window (command line) type the following:
path1 = css()
3. path1~>??

The #2 adds the attributes to the path1 variable.
The #3 will display all the attributes names and values. This should
give you some useful information.

To interactively see the paths attributes, use the Edit Properties
menu to see the points and width of the path.
 
On 7 Mar 2007 14:43:05 -0800, "vlsidesign" <fordgwf@gmail.com> wrote:

On Mar 7, 5:47 am, Kevin Doherty <kevin_j_dohe...@yahoo.com> wrote:
Hi,
If I select a path how could I get Virtuoso to report the width and
length of this path.. Could I then use this to report all paths width
and length.. All paths have connectivity.

Kevin

Here's a couple of things to get you going:

1. select the path
2. from the ciw window (command line) type the following:
path1 = css()
3. path1~>??

The #2 adds the attributes to the path1 variable.
The #3 will display all the attributes names and values. This should
give you some useful information.

To interactively see the paths attributes, use the Edit Properties
menu to see the points and width of the path.

The width of a path will be found by doing path1~>width . The length would be
something like this:

procedure(MYpathLength(path)
let((prevPoint len)
prevPoint=car(path~>points)
len=0.0
foreach(point cdr(path~>points)
len=sqrt((xCoord(point)-xCoord(prevPoint))**2.0 +
(yCoord(point)-yCoord(prevPoint))**2.0) + len
)
len
))

(I didn't test the above, just wrote it off the top of my head, so you'll
want to check it's correct).

Andrew.
--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.
 

Welcome to EDABoard.com

Sponsor

Back
Top