Invoking S3D Commands with .net API(代码中执行命令)

x x x x x x x x x x x x 

x x x x x x x x x x x x 

x x x x x x x x x x x x 

x x x x x x x x x x x x 

x x x x x x x x x x x x 

在3D的二次开发时,有时会调用已有的软件功能,上面截图即为相关代码的解决方案。通过调用直接完成相关命令,可以减少一些代码的工作。
  1. 代码示例

Ingr.SP3D.Common.Client.Services.ClientServiceProvider.CommandMgr.StartCommand(“PrjUpdateNames.UpdateNames”, CommandManager.CommandPriority.Normal,
vbNull)

如上代码为执行的update name命令的相关操作。

  1. 如何确认Prog ID

    x x x x x x x x x x x x 

    在确认ProgID时,可以通过error log进行查看。首先设置error log选项;然后打开3D进行操作,再到log中查看相关log,即可找到对应操作的prog id。如下操作为相关delete操作的prog ID。
    x x x x x x x x x x x x 

x x x x x x x x x x x x 

Smartsupport网站上面记录了很多的解决方案,不仅包括操作的方案,问题的解决办法,还有如上的一些二次开发代码示例。有兴趣的用户可以多逛逛。
数字化工程设计公众号二维码
原文链接:查看原文  文章来源:数字化工程设计
🔗 分享 0

上5篇 more...

下5篇 more...