Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to setup visual studio 2013 & 3DExp to make VSTA macro

Status
Not open for further replies.

Kant1

Mechanical
Feb 17, 2015
8
FR
Hello all,
I am trying to do some investigation on the capabilities of VSTA macro in 3DExperience 2018x.
My issue is any time I launch the test code it crash.
I had just create a simple VSTA library :
vstalib_qy5kc5.png

Then I open it and I have this code :
Code:
using System;

namespace Macro_library_VSTA00000003_vst_1891079_00000003_A_1
{
  public sealed partial class ThisApplication : ObjectModelAgentLib.CATIAEntryPoint
  {
    
     public static void CATMain()
     {
        // Debug entry point, not visible from the host
        CATIA.SystemService.PrintToStdout("Hello, World! C#");
     }
    
  }
}

The I click on the Start button in VS after like 30s VS close itself with no message and nothing is shown in the 3DExp app. Same behaviour with .NET code.

Do you guys know what should I look at ? May be I miss a setup to be able to test my code.

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top