Hello, my name's Paul Bevan from Siemens Digital Industry Software, and in this
demonstration I'm gonna show you the Algorithmic Modeling side of NX can help
me generate the display values for the flow control dial in this shower unit.
So I'm gonna start by isolating the shower cover, and you can see I have a curve that
defines the placement position for the.
Now I could use the text feature in NX to create my display.
Simply pick on the face, pick on the curve where I want the text to be positioned.
I can move it around.
I can change what's in the text itself, and that's fine for this part.
But I really want something a bit more dynamic and something
that either myself or colleagues can reuse for other component.
And to do this, I'm gonna look at using algorithmic modeling.
Now, if we take a look at the part navigator, I already have a partially
defined algorithmic feature, and we are gonna use this to complete
the generation of the display.
So I'm gonna edit the feature Definit.
And by doing that, it takes me into the Logic Editor environment with my rules,
window graphics window and Node Explorer.
I'll just zoom into the display area and the graphics window.
And now let's take a look at the rule.
You can see we have a text on face node.
This is a new node in the latest release of NX and one that we'll
use to develop the dynamic.
If I preview what we currently have in notice, there's a single
block of text that's positioned halfway along the guide curve.
Now I really want to create a dynamic display, so let's see how we can do that.
First thing I'm going to do is to search for an applicable node to
create my range once I find it and.
then I can start to create my inputs.
So we have a start and an end input for the range.
I type in some values.
And finally I'm going to divide my range.
So I create an input for the division's port, and you'll notice
that NX is smartly predicted nodes that I may well want to use.
And this is based on previous workflows and really helps speed up rule.
So I'll select the subtract option.
I'm gonna delete the preconfigured inputs because I want to use my own, namely
the start and end values I just created.
And when we take a look at the output from the range, you'll see that
I have a list with five objects.
I'm just gonna refine the range output by removing all the trail and zeros.
Just gonna add.
Truncate node to the output of the range.
And now when we take a look at the list, you'll see that
those zeros have been removed.
Now much of the effort when creating rules involves working with and managing lists.
To further develop my rule, I'm gonna need to merge three lists
together so I find the applicable node, bring it into my rules window.
And then start to define the inputs.
The first input is going to be the lowest value for my display.
I can rename the node to reflect that and type in a value.
You can copy and paste nodes to speed up rule creation.
Here.
I'm going to define the highest value for my display and
again, input the text for that.
All I need to do now is to.
The other two lists to the node, and when we take a look at the output
from the merged node, you can see we have off, we have the range in
between and then the highest value max.
Now that I have the output from the merge list, I'm gonna use it to help
define the spacing for the figures in the display to start the process.
I'm gonna generate a list length, and this list length gives me a
figure that I can use to help define the spacing around the guide curve.
You can see from the output that I have one object with a value of
seven, which is exactly the same as the number of figures in my display.
So I'm gonna use the output from that node to create some points on the guide.
Find the appropriate node, bring it into the rule window,
and start to connect the ports.
So I'll start by connecting the curve port and then the output from my list length
will be connected to the divisions port.
Now that the node has been fully satisfied, we can preview the points
in the graphics window as you can.
Now that we have the equally spaced points around the guide curve,
we can use them to divide it.
So I'll search for the divide curve at point node.
Once I find it, I can bring it into the rule window and start to connect
the ports again, connect the curve port, and then the points port using
the output from the points on curve.
When you look at the connection for the guide curve on the text on Face note,
it's connected to the original curve, which isn't gonna give me what I need.
I need to connect it to my divided curve.
So I simply delete the original connection and reconnect the guide
curve to the divided curves output.
And you notice immediately that the preview of the display update.
It now shows seven text blocks around the guide curve.
I have one more modification of the rule to see the correct figures in the
display, and that's to delete the original text and reconnect the merge list to
the text port in the text on face node.
And you can see now that we have the correct figure.
And as I said right at the beginning, the whole reason for creating this
rule was to get a dynamic display.
And as I change the value of the range, you'll see I have
more figures in the display.
If I revert back to the original value, then again it updates to reflect
that, to finish the rule creation.
All I need to do now is to create the output, and there we have it.
Our rule is now.
Not only do we have a reusable rule, but during the rule creation process,
NX has automatically been generating the dialogue for the rule in the
background, and it's a dynamic dialogue.
So if I change the tech size, for example, and okay, the command, the preview
updates, another important aspect of the dialogue is that it's fully consider.
You can hide certain groups within the dialogue.
You can change the title of groups within the dialogue as well, so you get the
dialogue exactly the way that you want it to be presented to yourself and to
other users within the organization.
And you can preview the configure dialogue to make sure it's correct.
And if you're happy with.
, you can then save the rule either to the reuse library for others to use,
or as in this case, I'm just saving it directly within the part file.
So I've got my dynamic display.
What I'm gonna do now is to extrude the figures as solids
and add them to the shower cover.
Now, this could have been part of the rule and I may go back in later.
And modify the rule to include the extrude.
So let's go ahead and edit the rule and update the model.
Select the feature, mix the modifications to the dynamic range.
We are gonna change the maximin values for the flow control, and you
see the immediate dynamic update.
Let's go back to the shower casing.
I'll make a design change in the context of the assembly.
We access the algorithmic feature.
Again, we make a change to the dynamic range and also to the max
min values and update the model, and you can see it updates immediately.
So just to recap what you've seen, you saw me create a rule driven.
For a shower flow control, which had dynamic content using algorithmic
modeling within the logic edited environment, you saw how we were able
to create the dynamic range merge lists and define the equal spacing for the
text around the display guide curve.
Finally, we looked at how you could reconfigure the automatically generated
dialogue for the algorithmic feature so that you're only presented with
the information that you need to see.
I'd like to thank you for your time and attention.