PCL and Customization
Introduction to Customization
Understanding PCL
Steps to Adding a New Functionality to Patran
The PATRAN Command Language (PCL) Introduction
Introduction
Basic Concepts
Patran and PCL
PCL Commands
PCL Comments
PCL Embedded in NOODL Commands and Databoxes
Identifiers
Directives
PCL Variables and Constants
Data Types
Scope
Arrays
Variable Initialization
Argument Declaration
PCL Operators and Expressions
Hierarchy of Operators
Control Statements
Branching
Break and Continue
Simple If Then
If Then Else
Switch and Case
Looping
For
While
Repeat
List
PCL Functions
Structure of a PCL Class
Structure of a PCL Function
Accessing PCL Functions
Libraries
Path Directive
The C Preprocessor
Finding Programming Errors with PCL
Trace Directive
Debug Directive
Initializing the Session
PCL Start-Up File
Session Files Support in PCL
Basic Functions
Intrinsic Functions
Math Functions
String Functions
Block I/O Functions
File Utility Functions
Record I/O Utility Functions
Stream I/O File Utility Functions
String I/O Conversion Utility Functions
Text File I/O Utility Functions
Virtual I/O Scratch File Utility Functions
Console I/O Functions
Message System Functions
Event Manager
Session File Functions
Obsolete File I/O Functions
Graphics Functions
Graphics Manager
Retained Graphics
System and Utility Functions
Spawning a Process
Database Locking
System Functions
User Interface and List Processor Functions
Introduction
General Form Style
General Forms
General Widgets
Box Widgets
Switch
Creating Forms and Widgets Using PCL
widget Function Descriptions
List Processor
File lpenums.i
Example: Creating a Simple Customized Menu and Form
User Interface Functions
Creating New Analysis Forms Using PCL
Introduction
Updating Patran Release 1.1 Analysis Forms
Naming Convention
The Analysis PCL Library
Contents of the Analysis Library
The Main Analysis Form
Main Analysis Form Functions
Changing the Appearance
<analysis_code>_load_aom_data
Subordinate Analysis Forms and Functions
The <apply_class> Class
Fetching Data From “analysis_main”
Modifying the Database Using PCL
Introduction
Querying the Patran Database
Loading Definitions for MSC Supported Preferences
Loading Definitions for User Defined Preferences
Loading Basic Definitions
Adding A New Analysis Preference
Custom Data and Application Region Sub-Forms
Adding New Element Types/Properties
Adding the New Material Properties
Adding New Loads and Boundary Conditions
Adding Custom General Field Functions
Adding Functions to the Database
Evaluator PCL
An Example Case
Adding New Multi-Point Constraint Definitions
Adding Element Verification Parameters
Examples of Modifying the Database
Accessing the Patran Database
Introduction
Syntax of Documented Calls
Calling the Database Access Functions from C and FORTRAN
External Access of the Patran Database
Miscellaneous Database Functions
Groups
Nodes
Exporting Node Data
Importing Node Data
Coordinate Frames
Exporting Coordinate Frame Data
Importing Coordinate Frame Data
Patran Element Topology Codes
Elements
Exporting Element Data
Importing Element Data
Element Properties
Exporting Element Property Data
Importing Element Property Data
Association between Elements and Element Properties
Extracting Association between Elements and Element Properties
Data Fields
Importation of Data Fields
Material Properties
Exportation of Material Data
Importation of Material Data
Exportation of Composite Material Creation Data
Load Cases
Exportation of Load Case Definitions
Loads
Evaluation of Loads on Finite Element Entities
Exportation of Load Data
Importation of Load Data
Multi-point Constraints
Exportation of Multi-point Constraint Data
Importing Results
Drop Results Indexing
Create/Find Loadcases
Associate Global Variables
Create Result Types
Examples of Translation
Results Reader
Extracting Temperature Dependent and/or Non-Linear Material Data
Extracting Transient Load Histories
Forward Moldflow Translator
PATRAN 2.5 Database Compatibility
Introduction
PATRAN 2.5 Compatible Database Functions
Broken, Obsolete, Modified and New Functions
Introduction
Basic Functions (Chapter 3)
System and Utility Functions (Chapter 4)
User Interface and List Processor Functions (Chapter 5)
Possible parm names:
Creating New Analysis Forms Using PCL (Chapter 6)
Modifying the Database Using PCL (Chapter 7)
Accessing the Patran Database (Chapter 8)
PATRAN 2.5 Database Compatibility (Chapter 9)
PCL and Customization
PATRAN 2.5 Database Compatibility (Chapter 9)