anderson - design - custom designlogic functions
TRANSCRIPT
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
1/21
NX Ex ressions Your Wa
(Making Custom DesignLogic Functions)
Ta lor Anderson
NX Product Manager
(DesignLogic, Knowledge Fusion and Validation)
Wednesday, June 4th, 2008
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
UGS Connection Conference
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
2/21
Page 2
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
3/21
The Expressions Dialog: ,
Page 3
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
4/21
This became possible at the same time as the new Expressions dialog
(and more importantly, the introduction of Knowledge Fusion in the
background behind model expressions) in NX 3.
..and we havent changed the syntax at all, so
Page 4
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
new functions move forward very reliably.
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
5/21
Demonstration
Page 5
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
6/21
Contents of:
_ .
Page 6
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
7/21
Contents of:
_ .
First, this filename
determines the
category name in
the Insert Function
dialog.
(If you put multiplefunctions in one
file, they will
appear under the
same Category.)
Page 7
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
8/21
Contents of:
_ .
Knowledge Fusion
version statement(This needs to
a ear onl once,
and must be in the
first line of the file.)
Page 8
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
9/21
Contents of:
_ .
Name of yournew function
This is OUTSIDE
the comments.)
Page 9
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
10/21
Contents of:
_ .
States that this
be visible to
DesignLogic
(should show up.
If this equals no,
then the function
to Knowledge
Fusion.
Page 10
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
11/21
Contents of:
_ .
The #. .# syntax
identifies the
Description here.
This description
will be visible in
the Insert Function
dialog
Page 11
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
12/21
Contents of:
_ .
The #. .# syntax
identifies the
Description here.
..and also in the
Function
Arguments dialog.
Page 12
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
13/21
Contents of:
_ .
These three lines
are identifying the
inputs to thisfunction.
Again, the #. .#
syntax identifies
text that will be
displayed at thebottom of the
Insert Function
dialog.
Page 13
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
14/21
Contents of:
_ .
These three lines
are identifying the
inputs to thisfunction.
and in the
detailed Function
Arguments dialog.
Page 14
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
15/21
Contents of:
_ .
The code inside
the procedural
block @{ } here iswhere the rubber
hits the road.
The three inputs
are combined tocreate an out ut
value
Page 15
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
16/21
Contents of:
_ .
We set the returnun s o e va ue o
be an Angle
Page 16
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
17/21
Contents of:
_ .
an e
Knowledge Fusion
to send back a
floating point
num er.
(as opposed to a
string or a vector,
Page 17
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
or ns ance.
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
18/21
Contents of:
_ .
also automatically
displayed in the
Insert Function
,
the return value.
Page 18
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
19/21
Contents of:
_ .
and functions
listed under the
See Also:
ea ng wpopulate the
Related
Functions button.
Page 19
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
20/21
Another
emons ra on
Page 20
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software
-
8/13/2019 Anderson - Design - Custom DesignLogic Functions
21/21
www.siemens.com/plm
2008. Siemens Product Lifecycle Management Software Inc. All rights reserved
Siemens PLM Software