Home > Net >  Vb.net for catia secondary development
Vb.net for catia secondary development

Time:09-30

you a great god, and the younger brother is learning to use vb.net for catia secondary development, some problems in the process, please everyone a great god answers,
This is the first half of the younger brother code:

Operation interface is as follows:
At runtime, click create after the following problems:
Error point is:
Check some information online is not instantiate objects, should be in before the variable type to add New
But vs2015 tip New cannot be used on the interfaces,

Don't know is how this earlier, please everyone a great god can help the younger brother to solve it

CodePudding user response:


 
Dim partDocument As partDocument=New partDocument ()

CodePudding user response:

Hello, after the revisions according to your problem still exists, still say New cannot be used on the interfaces,
I the value of the variable partDocument1 for nothing, what is this you know?

CodePudding user response:

reference 1st floor Imaor response:
 
Dim partDocument As partDocument=New partDocument ()

Hello, after the revisions according to your problem still exists, still say New cannot be used on the interfaces,
I the value of the variable partDocument1 for nothing, what is this you know?

CodePudding user response:

Your code has a problem, in the Error code should be CreatObject,
Code logic should be such,
Get CATIA object, because your computer does not have to open the CATIA so we won't be able to Get, then can produce errors,
If an error, will Create CATIA object,
Because you wrote the Get inside the err code, so the laptop or not CATIA. Application

CodePudding user response:

And if it is to use vb.net, it is suggested that using the try Catch one rror instead

CodePudding user response:

The object set up outside a layer to
In the class below form1
To public partDocument As New partDocument ()
  • Related