I have a very simple code below to get CATIA object. When I create a project with NET Framework 4.8
, there is no issue, I can get the CATIA application and start working with it. However, when I use NET 6.0
project, I get “Object reference not set to an instance of an object
Dim CATIA as Object
CATIA = GetObject(,"CATIA.APPLICATION")
MessageBox.Show(CATIA.ActiveDocument.Name)
Does anyone have some idea if this can be fixed with NET 6.0
or I will stuck with NET Framework
?