Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

NX Open C delete part family member

Legend
Legend

How to delete part family member from spreadsheet?

 

I tried UF_FAM_delete_member with UF_MODL_update

 

UF_MODL_update doesnt work, member record still exist in the family table, also I tried UF_TABNOTE_update

- result is the same

 

As I've found on GTAC that it's a probably bug. Is there decision?

14 REPLIES

Re: NX Open C delete part family member

Phenom
Phenom

Tried this sample code from solution center

 

https://solutions.industrysoftware.automation.siemens.com/view.php?sort=desc&q=uf_fam*&dt=nx-api&fil...

 

Works fine.

Suresh
Production: NX10.0.3 Developing: NX11.0.2.7, NX12.0.1
Development: C++, C# .Net, VB .Net, KF

Re: NX Open C delete part family member

Legend
Legend

I saw this sample. Nothing useful. This code didnt work. My code is similar.

Re: NX Open C delete part family member

Phenom
Phenom

I created a part family with a smiple part.  Created 4 family members. Saved the family.  Ran this code and deleted a member.  It worked fine for me.

 

Did this on NX10.0.3.5 MP8

Suresh
Production: NX10.0.3 Developing: NX11.0.2.7, NX12.0.1
Development: C++, C# .Net, VB .Net, KF

Re: NX Open C delete part family member

Legend
Legend

You mean  after run this code the row (by family member index) in the spreadsheet was deleted successfully?

Re: NX Open C delete part family member

Phenom
Phenom

Yes.  The selected row was deleted from the spreadsheet.  Tried now again with another row and it did too.

Suresh
Production: NX10.0.3 Developing: NX11.0.2.7, NX12.0.1
Development: C++, C# .Net, VB .Net, KF

Re: NX Open C delete part family member

Legend
Legend

May be reason is installed corresponding MP patch..  I use NX 10.0.3.5 MP11

Re: NX Open C delete part family member

Legend
Legend

I noticed that GTAC sample code work fine in internal mode, but I make an external Open C program (.exe) and in external mode this code not working

Re: NX Open C delete part family member

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Have you checked the NXOpen reference that all functions used are supported for external use?

/****************************************************************************
*   Get the information about an Open C Program
*
*   This routine can be used to gather the system information of an Open C
*   program, like the machine name, Operating System information etc., and is
*   useful in benchmarking, where you want to record the information about
*   the machine the benchmark was run on.
*
*   This routine outputs the data through the structure UF_system_info_t.
*
*   Once the data is no longer needed, the memory allocated to the fields
*   of this structure should be freed by a corresponding call to the routine
*   UF_free_system_info.
*
*   Environment: Internal and External
*
*   See Also:
*    UF_free_system_info
*    UF_system_info_t
*
*   History: Released in V18.0, modified in NX 6.0 to return used bundles
****************************************************************************/

If the line with the environment doesn't list external, you cannot use the function without an interactive NX session.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: NX Open C delete part family member

Legend
Legend

Yes, environment for functions is internal and external.

The program in external mode executed successfully but without needed result