Getting Started with Nxopen
Total Page:16
File Type:pdf, Size:1020Kb
Getting Started with NX Open Update January 2019 © 2019 Siemens Product Lifecycle Management Software Inc. All rights reserved. Unrestricted Table of Contents Chapter 1: Introduction ....................................... 1 Chapter 8: Simple Solids and Sheets ............... 64 What Is NX Open .............................................................................................. 1 Creating Primitive Solids ........................................................................... 64 Purpose of this Guide ..................................................................................... 1 Sections ............................................................................................................. 65 Where To Go From Here ............................................................................... 1 Extruded Bodies ............................................................................................ 67 Other Documentation .................................................................................... 2 Revolved Bodies ............................................................................................ 68 Example Code .................................................................................................... 3 Chapter 9: Object Properties & Methods .......... 69 Chapter 2: Using the NX Journal Editor ............. 4 NXObject Properties .................................................................................... 69 System Requirement — The .NET Framework ................................... 4 Curve and Edge Properties ....................................................................... 71 Typographic Conventions ............................................................................ 4 Face Properties .............................................................................................. 74 Licensing ............................................................................................................. 4 The Guide Functions ....................................................................................... 5 Chapter 10: Feature Concepts .......................... 76 Example 1: Hello World ................................................................................ 5 What is a Feature ? ....................................................................................... 76 Example 2: Collections ................................................................................... 6 Types of Features .......................................................................................... 76 Example 3: Creating Simple Geometry ................................................... 8 Feature Display Properties ....................................................................... 77 Example 4: Reading Attributes .................................................................. 9 Using Features and Bodies ........................................................................ 78 Example 5: WinForms (The Hard Way) .............................................. 11 Units ................................................................................................................... 78 What Next? ...................................................................................................... 14 Expressions ..................................................................................................... 79 Creating Expressions ................................................................................... 81 Chapter 3: Using Visual Studio Express .......... 15 Using Expressions to Define Features .................................................. 82 Installing Visual Studio ............................................................................... 15 Installing NX Open Templates ................................................................. 16 Chapter 11: Assemblies ..................................... 84 Licensing Issues Again ................................................................................ 16 Introduction .................................................................................................... 84 Example 1: Hello World Again ................................................................. 16 The Obligatory Car Example ..................................................................... 84 Example 2: Declaring Variables .............................................................. 19 Trees, Roots, and Leaves ............................................................................ 84 Example 3: WinForms Again .................................................................... 20 Components and Prototypes .................................................................... 85 Example 4: Hello World Yet Again (the Hard Way) ........................ 23 Cycling Through An Assembly ................................................................. 87 Example 5: Editing a Recorded Journal ............................................... 25 Indented Listings........................................................................................... 88 Debugging in Visual Studio ....................................................................... 28 Component Positions & Orientations ................................................... 88 Object Occurrences ...................................................................................... 89 Chapter 4: The Visual Basic Language ............ 29 Creating an Assembly .................................................................................. 91 The Development Process ......................................................................... 29 More Advanced Positioning ...................................................................... 93 Structure of a Visual Basic Program...................................................... 29 Changing Reference Sets ............................................................................ 95 An Example Program .................................................................................. 30 Other Topics .................................................................................................... 95 Lines of Code ................................................................................................... 31 Built-In Data Types ...................................................................................... 32 Chapter 12: Drawings & Annotations ............... 97 Declaring and Initializing Variables ...................................................... 32 Drawings........................................................................................................... 97 Omitting Variable Declarations ............................................................... 33 Dimensions ...................................................................................................... 98 Notes .................................................................................................................. 99 Data Type Conversions ............................................................................... 34 Arithmetic and Math .................................................................................... 34 Chapter 13: CAM............................................... 100 Logical Values & Operators....................................................................... 35 Cycling Through CAM Objects................................................................100 Arrays ................................................................................................................ 35 Editing CAM Objects ..................................................................................101 Other Types of Collections ........................................................................ 36 CAM Views .....................................................................................................102 Strings................................................................................................................ 36 Creating a Tool .............................................................................................103 Enumerations ................................................................................................. 37 Nothing.............................................................................................................. 37 Chapter 14: Block-Based Dialogs ................... 104 Decision Statements .................................................................................... 38 When to Use Block-Based Dialogs ........................................................104 Looping ............................................................................................................. 38 How Block-Based Dialogs Work ...........................................................105 Functions and Subroutines ....................................................................... 39 The Overall Process....................................................................................105 Classes ............................................................................................................... 40 Using Block UI Styler .................................................................................106 Shared Functions .......................................................................................... 41 Template Code .............................................................................................107