Hello All,
I'm trying to export my assemly model to a different folder as a xml file along with part files as .step files using the ,"Simscape Multibody Link" add-on.
Can anyone please tell me how to do this using iLogic commands.
Thanks in advance!
Regards,
Yatish.
Solved! Go to Solution.
Hello All,
I'm trying to export my assemly model to a different folder as a xml file along with part files as .step files using the ,"Simscape Multibody Link" add-on.
Can anyone please tell me how to do this using iLogic commands.
Thanks in advance!
Regards,
Yatish.
Solved! Go to Solution.
@Anonymous
What I can interpret from the question is that you are trying to drive the Simscale multibody add-in with iLogic, if I understand correctly, right?
If that's a yes I think Inventor API or iLogic does not support third-party add-ins, Even if we see some of the inbuilt add-ins like Frame generator, Tube, and Pipe, we can not leverage it with iLogic, so I think this is something which is not possible with iLogic.
@MjDeck, @JhoelForshav Do you have any idea about this, any possibilities?
Hope this will be helpful.
@Anonymous
What I can interpret from the question is that you are trying to drive the Simscale multibody add-in with iLogic, if I understand correctly, right?
If that's a yes I think Inventor API or iLogic does not support third-party add-ins, Even if we see some of the inbuilt add-ins like Frame generator, Tube, and Pipe, we can not leverage it with iLogic, so I think this is something which is not possible with iLogic.
@MjDeck, @JhoelForshav Do you have any idea about this, any possibilities?
Hope this will be helpful.
Hello @dutt.thakar
Yes. I'm trying to access the Simscape Multibody add-in via iLogic..
Hello @dutt.thakar
Yes. I'm trying to access the Simscape Multibody add-in via iLogic..
@Anonymous , I googled but I haven't been able to find an API for the Simscape Multibody Link plug-in. If you can find a description of an API, it might be possible to connect to it from iLogic.
@Anonymous , I googled but I haven't been able to find an API for the Simscape Multibody Link plug-in. If you can find a description of an API, it might be possible to connect to it from iLogic.
Hello @MjDeck, I'm trying to create a Custom Exporter Module between Inventor 2020 and Matlab 2020b with out the help of Inventor Add-in. After spending some time, I could able to find this at Mathworks - Custom Export with Simscape Multibody Link API. Lemme know if it helps!
Now my concern is, how to export the data such as CAD models, Intertia, color, Constraints etc. using CAD API?
Regards,
Yatish.
Hello @MjDeck, I'm trying to create a Custom Exporter Module between Inventor 2020 and Matlab 2020b with out the help of Inventor Add-in. After spending some time, I could able to find this at Mathworks - Custom Export with Simscape Multibody Link API. Lemme know if it helps!
Now my concern is, how to export the data such as CAD models, Intertia, color, Constraints etc. using CAD API?
Regards,
Yatish.
@Anonymous , the Inventor API is documented here. It sounds like you might be able to export each part as a STEP or STL file. That would save you the trouble of accessing the solid gemeotry directly.
The assembly constraints are available in the AssemblyComponentDefinition.Constraints property.
There's a warning at the top of the Simscape Multibody Link API page. It looks like it was developed for First Generation software and has not been updated.
@Anonymous , the Inventor API is documented here. It sounds like you might be able to export each part as a STEP or STL file. That would save you the trouble of accessing the solid gemeotry directly.
The assembly constraints are available in the AssemblyComponentDefinition.Constraints property.
There's a warning at the top of the Simscape Multibody Link API page. It looks like it was developed for First Generation software and has not been updated.
Hello All, I found a way to access,"Simscape Multibody Plug-In" using iLogic/VBA,
Firstly, I found out the command for the Plug-In using the following code:
Sub PrintCommandNames()
' Get the CommandManager object.
Dim oCommandMgr As CommandManager
Set oCommandMgr = ThisApplication.CommandManager
' Get the collection of control definitions.
Dim oControlDefs As ControlDefinitions
Set oControlDefs = oCommandMgr.ControlDefinitions
' Open the file and print out a header line.
Dim oControlDef As ControlDefinition
Open "C:\Users\Public\InventorCommandNames.txt" For Output As #1
Print #1, Tab(10); "Command Name"; Tab(75); _
"Description"; vbNewLine
' Iterate through the controls and write out the name.
For Each oControlDef In oControlDefs
Print #1, oControlDef.InternalName; Tab(55); _
oControlDef.DescriptionText
Next
' Close the file.
Close #1
End Sub
In the .txt file, I found the suitable command and I executed it using the following code:
Public Sub Export_XML()
' Get the CommandManager object.
Dim oCommandMgr As CommandManager
Set oCommandMgr = ThisApplication.CommandManager
' Get control definition for the arrange dimensions command.
Dim oControlDef As ControlDefinition
Set oControlDef = oCommandMgr.ControlDefinitions.Item( _
"SimMechanics_Internal:Export2G")
' Execute the command.
Call oControlDef.Execute
End Sub
I guess, this method can be used for any command in Inventor!
Regards,
Yatish.
Hello All, I found a way to access,"Simscape Multibody Plug-In" using iLogic/VBA,
Firstly, I found out the command for the Plug-In using the following code:
Sub PrintCommandNames()
' Get the CommandManager object.
Dim oCommandMgr As CommandManager
Set oCommandMgr = ThisApplication.CommandManager
' Get the collection of control definitions.
Dim oControlDefs As ControlDefinitions
Set oControlDefs = oCommandMgr.ControlDefinitions
' Open the file and print out a header line.
Dim oControlDef As ControlDefinition
Open "C:\Users\Public\InventorCommandNames.txt" For Output As #1
Print #1, Tab(10); "Command Name"; Tab(75); _
"Description"; vbNewLine
' Iterate through the controls and write out the name.
For Each oControlDef In oControlDefs
Print #1, oControlDef.InternalName; Tab(55); _
oControlDef.DescriptionText
Next
' Close the file.
Close #1
End Sub
In the .txt file, I found the suitable command and I executed it using the following code:
Public Sub Export_XML()
' Get the CommandManager object.
Dim oCommandMgr As CommandManager
Set oCommandMgr = ThisApplication.CommandManager
' Get control definition for the arrange dimensions command.
Dim oControlDef As ControlDefinition
Set oControlDef = oCommandMgr.ControlDefinitions.Item( _
"SimMechanics_Internal:Export2G")
' Execute the command.
Call oControlDef.Execute
End Sub
I guess, this method can be used for any command in Inventor!
Regards,
Yatish.
Can't find what you're looking for? Ask the community or share your knowledge.