Showing results for 
Search instead for 
Do you mean 
Reply

Making table with the Block Styler

Hello everyone!

 

How can I use Block Styler to create a custom menu with the table like this one?

 

2017-07-11 (5).png

13 REPLIES

Re: Making table with the Block Styler

look this way :

...\UGOPEN\SampleNXOpenApplications\C++\BlockStyler\EditExpression\EditExpression.dlx

@mkn

Re: Making table with the Block Styler

The widget similar to a spreadsheet is a tree list, see the NXOpen API reference for more information.

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: Making table with the Block Styler

Hmm, in the descirption is goes like this: "The Tree List block creates a tree-node structure representing a node hierarchy". Is it really for the spreadsheet-like appearance?

Re: Making table with the Block Styler

You can make it have a spreadsheet like appearance. From the TreeList documentation:

The combination of tree properties and node insertion mechanism allows the tree to behave like a table.

This can be achieved by setting the ShowExpandCollapseMarker property on the tree to False and inserting a node whose parent node is null.

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5

Re: Making table with the Block Styler

The images below use both a tree list one without and one with a node hierarchy.

 

Tree without Node HierarchyTree without Node Hierarchy

 

 

Tree with Node HierarchyTree with Node Hierarchy

 

 

 

 

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: Making table with the Block Styler

With icons and menus:

Save ManagerSave Manager

Attila Szepesi, Application Engineer, graphIT Ltd.
Production: NX11.0.2 | TcUA 11.2 MP2 Patch 1 (11.2.2.1)
Development: VB.NET Testing: NX12.0

Re: Making table with the Block Styler

Thank you all! I will have a look at this.

Re: Making table with the Block Styler

Do I get it right that the tree list can only be filled during runtime? Or can I prepare the list in advance in the Block Styler?

Re: Making table with the Block Styler

You must fill it at runtime, there is no way to prepare it.

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