×
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

A Database name was required ( What it means )

A Database name was required ( What it means )

A Database name was required ( What it means )

(OP)
Hi

Do someone can explaine this GIGO

Platform : NX MANAGER 8.5

Clone type : Clone operation
Clone action : Retain
Clone Default Naming : UserName

========================= This code ===================
ufs.Clone.Iterate(input_part_name)

Try
ufs.Clone.SetAction(input_part_name, UFClone.Action.Clone, "")
ufs.Clone.setNaming(input_part_name, UFClone.NamingTechnique.UserName, output_part_name)
Catch e As Exception
lw.WriteLine("On Catch - input_part_name = " & input_part_name)
lw.WriteLine("On Catch - output_part_name = " & output_part_name)
lw.WriteLine("The process failed: {0}." & e.ToString())
Exit Sub
End Try

===================== Give this ListingWindow output =================

On Catch - input_part_name = @DB/2000AB12345-0021/-
On Catch - output_part_name = @DB/a1_2000AB12345-0021/-

The process failed: {0}.NXOpen.NXException: A Database name was required and
an O/S file name received
at NXOpen.UF.UFClone.SetNaming(String input_part_name, NamingThechnique naming_thechnique, String output_part_name)
at app path in line 120
=========================================================================

My problem is that @DB/a1_2000AB12345-0021/- is this is not A Database name

So wy I get this error ?

Thanks in advanced

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