Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

help of journal compiling to dll error

Status
Not open for further replies.

Ehaviv

Computer
Jul 2, 2003
1,012
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: [b]'SetUserAttribute' is not a member of 'NXOpen.Part'[/b].

Please need helpe in this

Thank you in advanced


 
Replies continue below

Recommended for you

[pre][/pre]Is there a conflict between nxopen and system ?
 
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".
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor