when a PCB is already open:
pcbapp = GetObject(, "MGCPCB.Application")
pcbDoc = pcbapp.OpenReference("YourPath+PCB-File")
Yes in VX.
But I will open a design in DxDesigner with Read-Only mode not in Expedition.
Catch the xDX Designer call in xPCB and open it R/O instead?
Basically its something like that. You may need a license call.
Function cmd_PreOnCommand(name, id)
If name = "Design Entry" Then
Call exec.Run("viewdraw.exe " & prjFile & " /readonly", visibleInt, waitBool)
Thanks for your help.
But I will open it with Automation because I can use the application object to get objects like sheet, components etc.
The xDxDesigner should be opened invisibe and with Read-Only mode.
I have only found this:
Set xDxObj = CreateObject("Viewdraw.Application")
xDxObj.Visible = false
I can't find how to open it with Read-Only mode.