160 likes | 406 Views
CATIA import through CATScript. Catia import through CATScript.
E N D
Catia import through CATScript • If the environment variable SET CATIA_IMPORT_METHOD=THROUGH_STEP_CONVERSION is set in vp_init.bat, then the CATIA files will be imported into SimLab by converting it into STEP file through CATIA Script. The “Parameters” and “Selection Sets” defined in CATIA file will be imported into SimLab as design variables and groups respectively. The following variables are also to be set in vp_init.bat to define the batch(Ex:Catia.bat) file which will be spawned from SimLab to start CATSTART.exe. User need to create the catia.bat file to spawn CATSTART.exe. This catia.bat is to be kept in CATIA_SCRATCH_DIR. CATIA_SCRATCH_DIR can point to any of user defined scratch directory with write permission. • SET CATIA_SCRATCH_DIR=E:\Users\CATIA Dir\Scratch • SET CATIA_CMD=catia.bat • SET PATH=%CATIA_SCRATCH_DIR%;%PATH%
Catia import through CATScript (Contd.) • catia.bat - should spawn CATSTART.exe following with the arguments to define the settings for licensing feature. Example catia.bat • “C:\Apps\Catia\R19\intel_a\code\bin\CATSTART.exe” -run "%1" -env CATIA.V5R19_APPS.B19 - direnv "C:\Apps\Catia\R19 \CATEnv" • Note: Change the path for CATSTART.exe, variable for -direnv and -env according to the installation.
CATIA – Knowledge ware • CATIA knowledge ware allows to create parameters and assign it to features. SimLab gives access to these parameters and allows the definition of parameters inside SimLab to study there influence in results without redesigning the CAD model.
Creating parameters in CATIA • Step 1. Clicking the icon will display the dialog box. • Step 2. To create a new parameter, click “New Parameter of type” after selecting its type(Length). The new parameter appears in the “Edit name” field. Define its name, value and click “Apply”
Create the following two parameters • BigEndRadius=26.0 • SmallEndRadius=10.0
The new parameter will be listed in the specification tree. User can create any number of parameters with predefined value.
Parameters and Relations in Specification tree • Tools | options | Infrastructure | Part infrastructure | Display tab provides options for customizing the display of elements in the specification tree. Checking “Parameters” and “Relations” will display those in specification tree
Using parameters • This is an example to show how the parameters is associated to a feature. In this example the radius of big end is associated to a parameter “BigEnd_Radius”. • Step 1. Clicking the icon (from Knowledge tool bar) will display the dialog box. • Step 2. Select Pad.1/Sketch.1 from specification tree and select the dimension for big end radius. The selected dimension will be highlighted in the formula dialog
Using parameters (Contd.) • Step 3. Select Add Formula
Using parameters (Contd.) • Step 4. Select parameter “BigEnd_Radius” from specification tree and click “OK”
Using parameters (Contd.) • The new relation will be listed in the specification tree
CATIA – Selection Sets • Selection Sets allows to group set of entities. While importing CATIA part into SimLab, SimLab will create corresponding face group for each selection set. The name of SimLab group will be the name of CATIA selection set. These groups are used to assign loads and boundary condition. The entities in selection set will remain unchanged when the design parameters are modified. This will facilitate the process of assigning load and boundary condition through SimLab script after regenerating the part.
CATIA – Selection Sets (Contd.) • Clicking the icon (Edit/Selection Sets Edition) will display the dialog box. • Click “Create Set”, define name in “Name” field, check “Select a face, an edge, an axis or a vertex” and select the faces. Click “OK” to create the set
Step export settings • To export the “Selection Sets” defined in CATIA file as STEP group, the application protocol is to be set as “214 iso” Select Tools | Options | General | Compatibility | STEP and set “Application Protocol(AP) to “214 iso” and click “OK”. This will enable the user to import the selection sets as “SimLab group” while importing Catia files into SimLab through STEP conversion.