Is there a way to generate a new design status file without Xpedition running?
I guess that the reason for you post is to avoid checking out licenses. I am pretty sure that it can't be done, but you may consider to use the event handler in Xpedition and simply use the 'OnPreClose' Event and Export the design Status when it fires. That way you are sure that there always is an up-to-date Design Status file available...
Good thinking but not a license issue. Yes, desiring a way to have design status ran on a regular basis so its always up to date or atleast have it be the latest at the end of a project so things like board area, connections, pins per square inch can be sent to management for future reference. your idea of running it as a 'OnPreClose' Event should work great! Going to give that a shot! thanks
Excellent suggestion by Peter. We did something similar using the Document_OnSave event, per the script below. To use this script, save it, and then add the pathname as a Script#X= line in the scripts.ini file. (You can delete the "taskkill" line if you want to always see the DesignStatus report).
Set pcbDoc = ActiveDocumentpcbDoc.Validate(CreateObject("MGCPCBAutomationLicensing.Application").GetToken(pcbDoc.Validate(0))Call Scripting.AttachEvents(pcbDoc,"DStat")Scripting.DontExit = True
Sub DStat_OnSave()Stat = "LogFiles" & Array("\","/")(Abs(Scripting.IsUnix)) & "DesignStatus_"If Fso.FileExists(Stat & "99.txt") Then Call Fso.DeleteFile(Stat & "*")Gui.ProcessCommand("Output->Design Status")Call CreateObject("WScript.Shell").Run("taskkill /F /IM Notepad.exe /T",0,0)End Sub
Will give this a try! Thanks!
I took would like to generate the design status (and some additional information) outside of a client tool. On my machine it takes 103 seconds for xPCB Layout to load an existing blank design from my local SSD. But I would like to get the design status for 30 designs that our team is working on from shared drives (as we expand across our company, this would likely increase to hundreds of designs). I'm not trying to avoid using licenses either, I just don't want the overhead of a full blown editor to run a batch job.
I suggest the following :
Use the part of the script in this thread (Expedition - Export ODB++, HLDRC6.0 and Layer Stackup Data ) to start Xpedition, and the example from the Layout Automation Reference document (Pg. 124 in the VX.2.6 version), to export the design status. The thread linked above also has the usage info (usage of .vbs script with mgcscript does allow you to create a batch script that does this for many designs)
Have fun, and remember to post the script here once it's done ;-)
Retrieving data ...