cancel
Showing results for 
Search instead for 
Did you mean: 

Add Custom Bar with ActiveX Control

Creator
Creator

Hello,

 

I am looking for a way to add a CustomBar to the Bar.

 

I have found that I can use BlockStyler to acheive this goal but I would like to insert some .Net ActiveX Control and it seems that the BlockStyler cannot acheive that.

 

So is there a way to add a new bar and insert and activex into it just like SolidEdge.

 

Thanks

 

 

 

8 REPLIES

Re: Add Custom Bar with ActiveX Control

Esteemed Contributor
Esteemed Contributor

I believe the only supported way to add resource bars is interactively.

The data is stored as a registry key in Windows (not sure about unix), so in theory you could give users a .REG file to run.

 

What I would suggest (not knowing what you are trying to do) is that you add it to a toolbar (older versions) or Ribbon bar instead.

This can be done using .MEN and/or .TBR/.RTB file.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Add Custom Bar with ActiveX Control

Esteemed Contributor
Esteemed Contributor

And (I don't think) you can mix block styler & Windows "widgets" in the *same* dialog. (you should be able to call "MessageBox" or similar functions to display another, separate, dialog)

If you can't do what you want in block styler, you will probably need to use a WinForms dialog.

Although you might want to ask (here or GTAC) about specific issues - there are alot of subtle ways to use Block Styler to achieve what you want.

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Add Custom Bar with ActiveX Control

Creator
Creator

Thanks a lot Ken I will check in the API how to accomplished it. NX is new to me so I don't know the architecture as all. I am only working on Windows.

 

I have a UserControl that contains already all the UI Logic, it works as a stand alone application.

What I need to accomplish is to integrate it into NX and modify the display data based on the NX item selection.

 

 

 

 

Re: Add Custom Bar with ActiveX Control

Esteemed Contributor
Esteemed Contributor

As you are new to NX, there are a couple things I suggest you check out:

1) The "NXCustom" environment (see post pinned to the top of this forum, then navigate to the link for your version of NX)
This environment is a (more or less) standard way to customize NX in a way that multiple users can share the same customizations.  There is a "readme" at the top level to explain more about it.

2) There are a couple useful documents at GTAC:

https://solutions.industrysoftware.automation.siemens.com/docs/newsletter/NX-Ribbon-Customization-an...

https://solutions.industrysoftware.automation.siemens.com/docs/newsletter/adding-a-custom-ribbon-tab...

3) The Menuscript documentation is also useful:

https://docs.plm.automation.siemens.com/tdoc/nx/11/nx_api/#uid:index_menuscript

 

Hope this helps...Ken

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Add Custom Bar with ActiveX Control

Legend
Legend

There is an example in the solution center showing adding a custom resource bar with assembly tree using MFC.  Below is the link.

https://solutions.industrysoftware.automation.siemens.com/view.php?sort=desc&q=component+attributes&...

 

 

Re: Add Custom Bar with ActiveX Control

Creator
Creator

Thanks a lot that looks exactly whay I need.

I will study all the material.

 

Re: Add Custom Bar with ActiveX Control

Creator
Creator

Hello,

 

Thanks to your guidance I found that example and it works like a charm.

 

https://solutions.industrysoftware.automation.siemens.com/view.php?sort=desc&dt=nx-api&file_type=htm...

 

Thanks a lot for your help.

 

 

 

Re: Add Custom Bar with ActiveX Control

Legend
Legend

Glad it helped.