SolidWorks API /宏以“描述”创建配置。
有没有一种方法可以创建新的配置,并写入配置属性的“描述”中的内容?
我使用了addConfiguration3,但是没有任何“描述”的论点。
Sub main()
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Dim strNumber As String
strNumber = InputBox("please enter name of config", "config")
swModel.AddConfiguration3 strNumber, Empty, Empty, 0
End Sub
Is there a way to create a new configuration with something written into "description" of the configuration properties?
i used AddConfiguration3 but there is no argument for "description" in it.
Sub main()
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Dim strNumber As String
strNumber = InputBox("please enter name of config", "config")
swModel.AddConfiguration3 strNumber, Empty, Empty, 0
End Sub
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案:
i found the solution: