×
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

help of journal compiling to dll error

help of journal compiling to dll error

help of journal compiling to dll error

(OP)
Hi

The journal run OK but give error in compiling to dll

Using nx8.5 and compiling with nx8.5 dll lib files

The imports lines
and the codes lines that cause the error are:

CODE -->

Option Strict Off

Imports System
Imports System.IO
Imports NXOpen
Imports NXOpen.UF
Imports System.Text.RegularExpressions
-----------------------------------------------------
  p = s.Parts.Display
  p.SetUserAttribute("NativePartName", -1, p.Leaf & sfx_eh, Update.Option.Now)
-----------------------------------------------------
  ufs.Assem.SetWorkPartQuietly(sparts(i).Tag, last_wp)
  sparts(i).SetUserAttribute("NativePartName", -1, sparts(i).Leaf & sfx_eh, Update.Option.Now)
-----------------------------------------------------
The error is:

: error BC30456: 'SetUserAttribute' is not a member of 'NXOpen.Part'. 

Please need helpe in this

Thank you in advanced


RE: help of journal compiling to dll error

(OP)
 
Is there a conflict between nxopen and system ?

RE: help of journal compiling to dll error

(OP)
No hint ?

RE: help of journal compiling to dll error

Your code doesn't show us where the "sparts" variable came from, so it's hard to help you.

Another tip: finding bugs is easier if you declare your variables. The declarations will require less typing if you use "Option Infer On".

RE: help of journal compiling to dll error

(OP)
No sory I was making this error a second time
And I hop that I'll don't make it any more.

I compiled with the wrong ugdll lib
In nx8.5 session I used nx6 lib


I'm thank you a lot
For the help you intended
to give me.

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