Откройте каталог Solidworks PDM из другой программы.

Я хочу открыть/запустить папку в Solidworks PDM из другого приложения.

Я использую С# и использую этот код:

Process.Start(@"C:\Sandbox\Test");

Каталог Sandbox — это каталог View. Когда я вручную перехожу к этому каталогу, он входит в хранилище и просматривает все каталоги так, как должен.

Когда я выполняю приведенный выше код, я просто получаю проводник каталога, но без функциональности PDM.

Есть ли способ сделать это?


person Albert Hoekstra    schedule 11.01.2019    source источник


Ответы (1)


Вы можете использовать ссылку conisio, которая обрабатывается при установке клиента PDM. Формат ссылки такой;

conisio://<vaultname>/<action>?projectid=<ProjectID>&documentid=<DocumentID>&objecttype=1

action был explore.

Вам, очевидно, потребуется знать идентификатор папки/проекта, но вы можете использовать любой идентификатор документа, который не удален в системе. Просто передайте эту строку в Process.Start().

Process.Start("conisio://Sandbox/explore?projectid=1005&documentid=7543&objecttype=1");

Для справки, вот другие действия.

Where: <vaultname> is the name of the file vault <ProjectID> is the database ProjectID of the folder where the file is located in the vault <DocumentID> is the database DocumentID of the file <action> is one of the following: open – Opens the file in associated application view – Opens the configured “Viewer” application for the file explore – Opens an explorer window in the folder the file resides and selects the file get – Triggers a Get of the file to the local file vault view lock – Checks out the file properties – Brings up the file properties history – Brings up the file history

person ehcanadian    schedule 12.01.2019