首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从其他程序打开Solidworks PDM目录

从其他程序打开Solidworks PDM目录
EN

Stack Overflow用户
提问于 2019-01-11 19:56:24
回答 1查看 718关注 0票数 1

我想从另一个应用程序打开/启动Solidworks PDM中的文件夹。

我正在使用C#,并使用以下代码:

代码语言:javascript
复制
Process.Start(@"C:\Sandbox\Test");

Sandbox目录是一个View目录。当我手动导航到此目录时,它会登录到vault并按需查看所有目录。

当我执行上面的代码时,我只得到了一个目录的资源管理器,但没有PDM功能。

有没有办法做到这一点?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-01-12 10:29:39

您可以使用在安装PDM客户端时处理的conisio链接。链接的格式如下;

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

actionexplore

您显然需要知道文件夹/项目ID,但您可以使用系统中未删除的任何文档ID。只需将该字符串传递给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

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54146079

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档