hexagon logo
  • Open word document from PCL

    Hi, I could not open word document from below PCL commands. Please suggest. sys_get_env ( "CAPA_PATH", exe_path) exe_path = exe_path//"Help.docx" cmd2 = "cmd //c " // exe_path utl_process_spawn(cmd2, FALSE)
  • Getting Started with PCL

    Welcome to the new MSC Communities Forum for PCL and Patran Customization. This post provides a short list of key PCL documentation available on MSC's SimCompanion website. Every PCL developer should have these documents at their fingertips. Most questions…
  • PCL; Is there a PCL function which adjust FEM viewing to show location of some selected property eg. max Von Mises.

    Hello! I would like Patran to automaticaly adjust FEM viewing (by rotation and view fit) to show max Von Mises. Is there already PCL function which does the job?
  • How to import Patran Random results using PCL?

    Is it possible to import Patran random results (*.pat) using PCL? Patran random import does not produce ses log that I could repeat.
  • PCL; res_db_create_subcase_c; How to specify the first argument?

    Hello! I am trying to write a script for results derivation and I have a problem with the first argument of function: res_db_create_subcase_c( 2, "Demo", res_create_demo_scid, res_create_demo_rcid ) How to find the correct value?…
  • PCL; Patran Random - "random_randps_input.create_randps_file" input variables

    Hello! I am trying to execute Patran Random through PCL but I have a problem with 6th input parameter - an array with some integer: [3152] : random_randps_input.create_randps_file( out_rnd_name, 1, fresp_case_id_buf, fresp_case_id_buf…
  • PCL; function to skin solid elements by group using jd_create_elem_skin()

    Hello! I am trying to write a function which will skin solid elements by group using undocumented jd_create_elem_skin() . It looks like jd_create_elem_skin() takes as input: element IDs, face IDs, number of elements and some boolean. I tried…
  • PCL; How to get shell element normal vector?

    Hello! Is there a PCL function which outputs shell element normal vector? something like that: shell_get_normal(element_ID, norm_vec)
  • PCL; How to get field ID created with fields_create() ?

    Hi! I am trying to run Patran Random through PCL but I have a problem with ASD input: random_randps_input.create_randps_file( "sx.rnd", 1, [1], [1], [1.], [0.], [ 3002 ], FALSE, ["log"], ["log"] ) 3002 - looks like ID of ASD profile…
  • PCL; How to write long strings (>200 chars) as a single line to a file?

    Hello! I am using text_write() to write results to a file but it has line length limited to 197 chars. Is it possible to override this and write longer string in a single line? Maybe there is other function which can do this?
  • PCL; How to get result data title?

    Hello! How to get the data title string? Is there a function "get_res_data_title"? The ideal solution would be to have each section of the title in a separate string variable.
  • PCL; function which exports current group to bdf

    Hello! I am trying to write a function which will export current group to bdf. I tried to follow jou file produced during Patran export but it is difficult for me to find the essential input to pat3nas. Could you help to find out what is wrong with…
  • PCL; convert a picklist to an integer array

    Hello! Is there a function which converts a vstring to an array and does reverse action to app_int_array_to_vstring()?
  • PCL; how to sort 2D array?

    I am trying to sort node IDs by position. I created 2D REAL array where 1st column is node ID and second is position. Next I use mth_sort_column to sort by position column. However, it does not produce expected result. The first problem is that I cannot…
  • Translation and Rotation Report Write

    Hello, what i am trying to do is report translation and Rotation forces into a single file so that i can then put them into excel. i have been messing around with the PCL code but i can not figure out how to keep the translational…
  • I recieve a PATRAN internal error (internal unknown opcode) while creating a point on an already existing point during my PCL run.

    I use overridemessage to create a point on an already existing point like below: ui_override_message(1000034, "YESTOALL") I have this situation in my routine in several places and it Works well. The following is a part of the session…
  • Get the latest result values

    Hi, I am importing the results using below PCL code and the file names remains same and value in the files are changed. But in the results case names are created as filename_1, filemane_2...Please suggest a method to get the latest case name…
  • Error while Creating pressure using fields. please see error description.

    FUNCTION field_pr() ## Variable Declaration STRING s_name[32] STRING type[32] STRING elm_type[32] INTEGER e_dim STRING a_kind[32] STRING elm[256](1) STRING ap_region[32] STRING field_name[256](1) STRING…