When outputting the x and y location of components, only 2 decimal places is outputted. Can i make it 6 decimal places for accuracy purposes?
Check with Setup--->Units display. And try it with report writer.
Hope this one will help you.
I already adjusted the precision to 6 decimal places but during report writer output, only 3 decimal places appear.
I still havent found solution for this. Could someone help me please.
I don't use Report Writer, but I pieced together a VBScript that should do what you want. Just copy the text below to a file with a .vbs extension, then drag and drop it onto Xpedition. (And I don't have a way to test it currently, but if it fails, let us know how it failed.)
Set pcbDoc = ActiveDocumentpcbDoc.Validate(CreateObject("MGCPCBAutomationLicensing.Application").GetToken(pcbDoc.Validate(0)))Set Coms = pcbDoc.ComponentsComs.SortFor Each Com In Coms If Com.RefDes <> "" Then List = List & Left(Com.RefDes & " ",8) & " " & _ Right(" " & FormatNumber(Com.PositionX,6,True,False,False),12) & " " & _ Right(" " & FormatNumber(Com.PositionY,6,True,False,False),12) & vbCrLf End IfNextHash = Array("\","/")(Abs(Scripting.IsUnix))OutPath = pcbDoc.Path & "LogFiles" & Hash & "CompXY.txt"Set Fso = CreateObject("Scripting.FileSystemObject")Set OutFile = Fso.OpenTextFile(OutPath,2,True)OutFile.Write(List)OutFile.CloseSet Exe = CreateObject("WScript.Shell")Call Exe.Run("Wordpad " & Chr(34) & OutPath & Chr(34),1,0)
Retrieving data ...