Thanks for the reply. I really wanted to see if that's possible. As for the .exe you mentioned, I have done it by using Window forms and NXOpen to control "Expressions" so I thought I would be able to do more code like that by incorporating the modelling functionality as well. Perhaps not.
Thanks for the reply.
I'm not sure where to assign the .ShowDialog or .Show to.. I just want to display the "Curve" dialog menu?
So having the theSession.SetUndoMarkVisibility(Id2, "Curve", NXOpen.Session.MarkVisibility.Visible);
How I show the dialogue "Curve"?
Regards,
Zoe
Hi there,
Any ideas mapping menu buttons to c# with NXOpen? I thick I'm on the right track but I'm not sure. The code below tries to map the menu button "Create Rectangle" to a window forms button:
namespace sth
{
public partial class Someform : Form
{
public NXOpen.UI theUI =...
Hi there,
I have an NX Open .exe code running (simple Window forms in c#) and I cannot seem to refocus or return or reactivate the UGS NX design environment/session from my app. Is just hanging there.. Has anybody came across this? Any ideas to resolve that?
Thank you,
Zoes
Perhaps need to clarify things by saying action button;
The idea is to create a custom toolbar.exe which will have some menus existing already in UGS NX (e;g like sketch, colour palette etc.).
Is that possible? I do know the path making custom menus and toolbars (.men .tlr) but this time using...
Hi there,
I was wondering if the action of hitting a menu button, can be identified in code instead of having a commentary?
"// Menu: Insert->Sketch Curve->Circle..."?
public static void Main(string[] args)
{
Session theSession = Session.GetSession();
Part workPart =...
Thanks for the reply
I have tried that but still have an error for overload method.
...
public FeatureGroup featureGroup1;
public FeatureGroup featureGroup2;
public Feature features1;
public Feature features2;
public Feature errorFeatures1;
public Feature errorFeatures2;
...
public...
Hi
I have radio buttons that when checked supress or unsupress features
In vb.net it works!
Dim features1(0) As Features.Feature
Dim featureGroup1 As Features.FeatureGroup = CType(workPart.Features.FindObject("FEATURE_SET(43)"), Features.FeatureGroup)
Dim errorFeatures1() As...
Hi,
I was wondering if any of the members have load two window forms in NX at the same time.
My code loads and shows both forms but then produces and error ufsr. The log file is not very helpful for identifying and fixing the problem.
Thanks in advance
Z.
Hi,
Wondering how can I extend the code bellow to recognise all design features in a model?
Will be quite useful for a simple model to recognise that there is a block and then validate its dimensions for example.
Thank you in advance [smile2]
Option Strict Off
Imports System
Imports NXOpen...
Thank you for the reply.
Do you have any idea how we use the debugger of Visual Studio for Nx Open applications?
Also do you know anything about threads in NXOpen? I have the windows forms .exe (instead of using the journal) running and the moment when I change an expression the part changes...
Hi all,
I have written the code bellow but while trying to execute it gives me an error message: "Error in the external library. See syslog for details ... Function name ufusr".
The form is supposed to load the existing expressions of breadth and thickness and assign them to two textboxes...
Hi,
Would like to know how/if I could load an external .dll into a journal???
For example I produced a UI styler based code with an action button and a vb.net "hello class" with the intention when I hit the button a hello msg will appear..
Journal:
If block Is button0 Then
Dim s As New...
Thank you!
Can I further ask if you know the attribute for making the string visible/hidden?
I was looking to find the state of the string and change it.. but nothing similar appears in the library.