cancel
Showing results for 
Search instead for 
Did you mean: 

NX Open C delete part family member

Genius
Genius

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

Legend
Legend

Re: NX Open C delete part family member

Genius
Genius

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

Re: NX Open C delete part family member

Legend
Legend

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

Re: NX Open C delete part family member

Genius
Genius

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

Legend
Legend

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

Re: NX Open C delete part family member

Genius
Genius

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

Re: NX Open C delete part family member

Genius
Genius

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

Esteemed Contributor
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.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: NX Open C delete part family member

Genius
Genius

Yes, environment for functions is internal and external.

The program in external mode executed successfully but without needed result