Cancel
Showing results for 
Search instead for 
Did you mean: 

How to Lock Format of tabular note

Experimenter
Experimenter

Hello Everyone , I am new to NX C++ programming.It would be very helpful if anyone could help me out in this.

 

I have a feature where i select a tube in modelling and switch to drafting and create a tabular note in drafting with parameters of that tube in it using UF_TABNOT_create.I am successful in filling up the tabular note but know there is a requirement to lock the Table format(i.e. Lock Format).I also tried to enable the lock format first and then create the tabular note but it is not getting applied to the table(Don't know why?).

 

Can anyone refer me c++ code for the same.

 

I am using NX 12.

 

Thank you in Advance

1 REPLY 1

Re: How to Lock Format of tabular note

Experimenter
Experimenter

Hello everyone. 

 

Got the solution in nxopen Api. Used UF_TABNOT_ask_nm_sections for getting the no of section and UF_TABNOT_ask_nth_section for selecting the section,the used the journaling code for locking the format.

 

Annotations::TableEditSettingsBuilder *tableEditSettingsBuilder1;
tableEditSettingsBuilder1 = workPart->SettingsManager()->CreateTableEditSettingsBuilder(objects1);

tableEditSettingsBuilder1->TableSection()->SetApplyToAllSections(true);

vector< Drafting::BaseEditSettingsBuilder *> editsettingsbuilders1(1);
editsettingsbuilders1[0] = tableEditSettingsBuilder1;
workPart->SettingsManager()->ProcessForMultipleObjectsSettings(editsettingsbuilders1);

tableEditSettingsBuilder1->TabularNote()->SetLockTableFormat(true);

NXOpen::NXObject *nXObject1;
nXObject1 = tableEditSettingsBuilder1->Commit();

tableEditSettingsBuilder1->Destroy();

 

Thank you