In SolidWorks 2017 we have now the InterConnect functionality.
I have an Inventor part feature in my SLDPRT. I can break the link to the IPT reference manually by selecting the feature => RMB => Break Link.
How can i do this programatically ? What is the API command to break the link ?
Thanks for your help
SolidworksApi macros
- Select the feature
- SolidWorksApplication.RunCommand(1030478, "")
Is there a way to do this without prompting the user ("Warning, this operation cannot be undone...")?
Off topic: Sorry about the stupid question, but how did you find the command? It´s not listed here: 2019 SOLIDWORKS API Help - swCommands_e Enumeration
Create a macro with this module
and this class
and run the sub main in the module GetCommand.
BiI ERP-PDM
Thanks for the handy event/command monitor. Unfortunatly there doesn´t seem to be a hidden command to dissolve the feature without prompting the user
, silly question. Once you activate this macro, which is BRILLIANT by the way, how do you turn it off?
Try this and call the stopMonitoring subroutine
'Attribute VB_Name = "GetCommand"
Option Explicit
Dim swEventHandler As ClassRC
Sub stopMonitoring()
Set swEventHandler = Nothing
End Sub
Sub main()
Set swEventHandler = New ClassRC
End Sub
Thank you !