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

Gears Esteemed Contributor Gears Esteemed Contributor
Gears 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.1, 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: 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 | KF
Production: [NX8.5.3.3 MP11 64bit] Testing: [NX12.0.0.27 MP1]

Re: Making table with the Block Styler

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

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

 

00_TreeWithoutNodeHierarchy.PNGTree without Node Hierarchy

 

 

01_TreeWithNodeHierarchy.PNGTree with Node Hierarchy

 

 

 

 

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, 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: Making table with the Block Styler

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

With icons and menus:

save_manager_picture.jpgSave 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

Gears Esteemed Contributor Gears Esteemed Contributor
Gears 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.1, 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