cancel
Showing results for 
Search instead for 
Did you mean: 

Adding controls dynamically in block styler using API

Creator
Creator

Hi All

Is it possible to add controls (like Label, Button) to Block Styler UI dynamically through API.
If so please let me know how

 

Thanking you
Nij

 

3 REPLIES

Re: Adding controls dynamically in block styler using API

Esteemed Contributor
Esteemed Contributor

There is no way to add controls dynamically.

You can add all controls needed and hide them initially, showing them when you need them to be visible.

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: Adding controls dynamically in block styler using API

Creator
Creator

Thank you Stefan

Re: Adding controls dynamically in block styler using API

Siemens Phenom Siemens Phenom
Siemens Phenom
If you use a Snap.UI.BlockForm, you can create blocks at run-time and add them to the form. I wouldn't say this is "dynamic", but at least it gives you some control. The dialog that's created is the usual NX Block Dialog type, which behaves just as you would expect; only the method of constructing it is new/different. You can find out more about the Snap.UI.BlockForm things in the SNAP documentation. In the SNAP Getting Started guide, see Example 6 in chapter 3, and the whole of chapter 13. Also, see the Snap.UI.BlockForm class in the SNAP Reference Guide. Some links: http://docs.plm.automation.siemens.com/tdoc/nx/10/nx_api/#uid:index and http://docs.plm.automation.siemens.com/data_services/resources/nx/10/nx_api/en_US/graphics/fileLibra...
山田
yamada