cancel
Showing results for 
Search instead for 
Did you mean: 

Making table with the Block Styler

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

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

Legend
Legend

look this way :

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

@mkn
Production: NX11.0.2.7,VERICUT 7.3.3
Development: Tcl/Tk, Gnuplot
www.deshors-tiremold.com

Re: Making table with the Block Styler

Esteemed Contributor
Esteemed Contributor

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: NX12.0

How to Get the Most from Your Signature in the Community

Re: Making table with the Block Styler

Solution Partner Genius Solution Partner Genius
Solution Partner Genius
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

Phenom
Phenom

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

Esteemed Contributor
Esteemed Contributor

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: NX12.0

How to Get the Most from Your Signature in the Community

Re: Making table with the Block Styler

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

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

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

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

Re: Making table with the Block Styler

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

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

Esteemed Contributor
Esteemed Contributor

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: NX12.0

How to Get the Most from Your Signature in the Community