×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Nxopen with VB 2010 - error

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?

RE: Nxopen with VB 2010 - error

sidclei,

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

Hi Sidiclei,

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

(OP)
Thank you very very much for your infomation

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources