Nxopen with VB 2010 - error
Nxopen with VB 2010 - error
(OP)
When I make a Debug appear this message: a project with an output type of class library cannot be started directly
How can I solve this problem?
How can I solve this problem?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
Nxopen with VB 2010 - error
|
RE: Nxopen with VB 2010 - error
I had the same issue a few days ago. Are you using a complete version of Visual Studio, or the Express Version? If you're using complete version, I believe you can't solve it by attaching to the ugraf.exe process. I think this option should be under "Debug > Attach to process"... or something like that, I'm not sure since I'm using the Express Version, and it seems that "Attach to process" is not supported for Express... Anyway, there's a workaround for this version... You need to open the project directory, and edit the .vbproj USER file. Add this code:
<PropertyGroup>
<StartAction>Program</StartAction>
<StartProgram>%UGII_BASE_DIR%\UGII\ugraf.exe</StartProgram>
</PropertyGroup>
Then you should be able to run your code. Anyway I still have some problems compiling to dll, but that's a different story hehe...
RE: Nxopen with VB 2010 - error
I believe your output extension is ".dll". And you cannot run a .dll file from visual studio. Instead Open NX->press ctrl + u-> navigate to your .dll file.
If you want to debug then use tools-> attach to process-> select ugraf.exe and dont forget to add breakpoints in your code.
In love with NX,
Nikhil
RE: Nxopen with VB 2010 - error