If you are speaking of Expedition, you can extract each net in the design via the document object's Nets collection property (Document.Nets). Included in each net object contained within the nets collection is a traces collection (Net.Traces) in which each trace belonging to the net can be extracted via each trace object's Geometry property and the Points array contained within the geometry object. Now compare segments defined in the points array to all other net's traces. Here is the ultimate path to the first net's 1st trace's coordinates.
This will get you to the information you need to apply your magical math to any two segment's coordinates to find their clearance.
Thanks for the response, Al. Will this technique work in PADS9.0.1? I know I've seen document objects in the scripting language, so I get the feeling this should apply directly.
Also, do you happen to have any examples I could look through, or links to something similar? I'm unfortunately pretty unfamiliar with the scripting protocol.
This a a basic example of the path I mentioned for Expedition. It will differ for Pads. I suggest you get a copy of Microsoft Scripting documentation (http://msdn.microsoft.com/en-us/library/t0aew7h6(VS.85).aspx) and maybe take an automation class from Mentor Graphics Eductaional Services.
' Get the application object (An instance already running)
Set pcbApp = Application
' Add the Application's Type Library
' Get the active document
Set pcbDoc = pcbApp.ActiveDocument
Dim net, trace, pntsArr, numpoints, xyr, netname, i
'in vbscript the 'for each' statement can be used instead of
'for i=1 To pcbDoc.Nets.Item.Count
' Set net=pcbDoc.Nets.Item(i)
For Each net In pcbDoc.Nets
For Each trace In net.traces
numPoints = UBound(pntsArr,2)
For i = 0 To numPoints
xyr=(pntsArr(0,i) & ", " & pntsArr(1,i) & ", " & pntsArr(2,i))
Would you please tell me how to " get a copy of Microsoft Scripting documentation " ? The link opens a series of pages that offer option after option for each screen without any explanation of what each link is for and there doesn't seem to be a way to download the whole thing.
Scripting 5.7 for XP