Yes, you are Right, thanks.
In addition, I didn´t mentioned it in my first post: If equal faces or similar faces were found, than certain faces attributes and/or properties linke face name should be copied from the one face (like a seed face) to the other face (a Kind of target face, that has...
Hello all.
I need to find and determine equal or similar (with a certain tolerance) faces between two different bodies.
I have already a Code where I can achieve this with single sheet bodies (with one face each).
Now I am Looking for a similar way to do this for Solid Bodies (Maybe also for...
Hello Steph.
You can find the definition of the functions in the Online-Help of NX under
Simcenter 3D - Simcenter Motion - Motion Solvers - ADAMS - General Adams functions.
For the Step-Function the meaning of the variables are:
x: independet variable, e.g. Time
x0: x Value at the beginning...
Thank you very much. It works perfectly. I added a few lines to round the coordinates to 3 decimals:
Dim X_Pos_N As Double = Math.Round(compPt.X,3)
Dim Y_Pos_N As Double = Math.Round(compPt.Y,3)
Dim Z_Pos_N As Double = Math.Round(compPt.Z,3)
and then
workPart.Expressions.Edit(x_pos...
Your assumption was wright: I need the component postions as numerical expressions in NX as Inputs for a sketch.
I can use the truncated whole numbers of my first way to use these values directly as numerical expressions. But when there are decimals I receive this Syntax error message when I try...
A copy-Paste-Mistake:
Code-Lines for second Way should be:
'Second Way: Create String expressions and make conversion in NX
workPart.Expressions.Edit(x_pos, """" & compPt.X.ToString & """")
workPart.Expressions.Edit(y_pos, """" & compPt.Y.ToString & """")...
Hello cowski.
I figured out two Ways: First one is to truncate the Positions to whole numbers, which will be enough for one of my UseCases.
Second Way is to bring these values as strings to NX and make the conversion there:
Imports System
Imports NXOpen
Imports NXOpen.UF
Imports...
Hello all.
With the Journal below I can select a Component and the Journal gives out the Position in an Information Windows and is also editing existing expressions in the work part.
It works fine for coordinates as whole numbers. But if one coordinate is not a whole number the Journal do not...
In summary the code look now like this:
'Search for Components, Highlight Components, Modify Coloring
Option Strict Off
Imports System
Imports System.Collections.Generic
Imports System.IO
Imports NXOpen
Imports NXOpen.Assemblies
Imports NXOpen.UF
Imports NXOpen.Utilities
Module...
Hello petulf.
Thanks for the reply.
I tried it, but I received an error message: "Explicit initialization is not permitted for Arrays declared with ecplicit bounds."
Olaf
NX11.0.0
Hello Ronald.
Thanks for hint.
Here is the code again:
'Search for Components, Highlight Components, Modify Coloring
Option Strict Off
Imports System
Imports System.Collections.Generic
Imports System.IO
Imports NXOpen
Imports NXOpen.Assemblies
Imports NXOpen.UF
Imports NXOpen.Utilities
Module...
Hello all.
I´m looking for a way, to Change the Color of components automatically. My idea is, to run through an assembly structure, search for a certain component name and change the color of this component to a defined color. I tried it with some bits and pieces from other scripts, I´m able to...
A 3D Contact do not apply, if one Link (here: the cylinder) of this pair has a driven joint. This is also mentioned in the Online-Help.
One Workaround would be to use two markers and a sensor with an if-function, that says: if the marker, which is related to the driven cylinder, reaches the...
In the function Manager at NX Motion I can use Motion variables (e.g.ACCM, ACCX,...).
The purposes of the two entries in the Magnitude variables, e.g. ACCM( , ) is clear.
Does anyone knows the prupose of the third entry when a variable based on an axis (e.g. ACCX( , , ) )will be used?
Thanks in...
Use the Animation window. Activate Measures under the Packaging Options and let the Motion run (don´t close the window). Select the "i"-Icon behind Measures (List Measurements). An info-Window appears with all measures. Store this as a txt-File and open this file in Excel with option fixed withs...