Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to export Assembly file using Simscape Multibody add-on using iLogic commands

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
Anonymous
2283 Views, 6 Replies

How to export Assembly file using Simscape Multibody add-on using iLogic commands

Anonymous
Not applicable

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.

 

 

Add-on ImageAdd-on Image

 

 

 

 

 

 

 

 

Can anyone please tell me how to do this using iLogic commands.

 

Thanks in advance!

Regards,

Yatish.

0 Likes

How to export Assembly file using Simscape Multibody add-on using iLogic commands

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.

 

 

Add-on ImageAdd-on Image

 

 

 

 

 

 

 

 

Can anyone please tell me how to do this using iLogic commands.

 

Thanks in advance!

Regards,

Yatish.

Labels (3)
6 REPLIES 6
Message 2 of 7
dutt.thakar
in reply to: Anonymous

dutt.thakar
Collaborator
Collaborator

@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.

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
0 Likes

@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.

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
Message 3 of 7
Anonymous
in reply to: dutt.thakar

Anonymous
Not applicable

Hello @dutt.thakar 

Yes. I'm trying to access the Simscape Multibody add-in via iLogic..

0 Likes

Hello @dutt.thakar 

Yes. I'm trying to access the Simscape Multibody add-in via iLogic..

Message 4 of 7
MjDeck
in reply to: Anonymous

MjDeck
Autodesk
Autodesk

@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.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes

@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.


Mike Deck
Software Developer
Autodesk, Inc.

Message 5 of 7
Anonymous
in reply to: MjDeck

Anonymous
Not applicable

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.

0 Likes

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.

Message 6 of 7
MjDeck
in reply to: Anonymous

MjDeck
Autodesk
Autodesk

@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.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes

@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.


Mike Deck
Software Developer
Autodesk, Inc.

Message 7 of 7
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Accepted solution

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.

0 Likes

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.

Post to forums  

Autodesk Design & Make Report