Inserting a .scdoc in another scdoc in C#

Ansys Staff
Ansys Staff Member, Employee Posts: 24
Ansys Employee Name Dropper First Comment Photogenic
✭✭✭✭
edited June 2023 in 3D Design

How can I insert another .scdoc in my active scdoc similar to the insert file option under the assembly tab in Space Claim in C#

Answers

  • Valérie Gelbgras
    Valérie Gelbgras Member, Employee Posts: 157
    50 Answers 100 Likes 10 Comments Name Dropper
    ✭✭✭✭
    Answer ✓

    You can add a reference:

    using ScdmScripting = SpaceClaim.Api.V17.Scripting;
    

    Then you can use

    string path = "C:\test\test.scdoc";
    ScdmScripting.Commands.DocumentInsert.Execute(path);