hexagon logo
  • PCL; What is function to get list of CIDs associated to nodes?

    Hello! Is there a function which does the same thing like utilities->list->node/CID lists->CIDs Associated to nodes?
  • PCL; How to get max array value?

    PCL; How to get max array value?
  • String settings to run process

    cmd string is formed using below commands. Process is not executed properly due to spaces in the path. Please suggest. ​exe_path = "C:\Program Files (x86)\test\1.0\CAPA1.exe" filename = "C:\Disck D\Patran/test4.bdf" ​ cmd = exe_path…
  • Fringe Label modifications

    In Fringe plot legend, Maximum value & its element number is displayed. Is there any option to change to minimum value and its element number? Attached Files (1)
  • Identify layer position name

    I am using res_data_load_dbresult command to load the results and I could not find the layer positions in the active model. Please suggest a method to get active payer position to pass it as argument to res_data_load_dbresult command ​e.g (NON_LAYERED_4…
  • Creating session file for pressure load mapping using PCL.

    Hi, I have a query regarding load and boundary conditions syntax using PCL. Problem definition: I am creating a session file for GFEM to DFEM pressure mapping using PCL commands. My query is, how patran is writing PLOAD cards for…
  • PATRAN Fringe color modification

    I am plotting my custom results using elemental format in PATRAN and fringe plots are created. Normally lowest value shall be in Blue color and highest value shall be in red color. Is there any option to reverse the color contour to have red for lowest…
  • Folder selection using ui_file_create

    I would like to select a folder PCL methods, I have used "ui_file_create" but its selecting only the files. Please suggest a method to select the folder.
  • 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; mass_prop_create_detailed() - APP error

    Hello! I am trying t write a function which will summarize mass and volume of each mesh group using mass_prop_create_detailed(). The function runs first loop but the next prints out following error. Could you help to debug the function? Is there…
  • [PCL] How to get "bush orientation"? CSYS ID?

    Hello! I am trying to write a script which will list all FEM cbush elements and their orientation CSYS ID. What PCL function can extract this property from "region_id"?
  • PCL; utilities - skin solid elements. How to assure skin normals outside the solid elements?

    Hello! I am using utility skin solid elements which suppose to create shells with normals pointing outside solids. I noticed that for some solid meshes, produced skin has mixed normals. Is there a utility which can fix normals to point out without…
  • PCL; Utilities/Views Based On CoordX - is it possible to execute with PCL?

    Hello! I am investigating possibilities for result display adjustment and I found Utilities/Views Based On CoordX . Running this utility does not produce any PCL output. Is it possible to run this through PCL?
  • I want to override the following Patran action using PCL fem_create_mesh_curv_1(): $# Warning reported from application Database $# A conflict in ELEMENT ids starting with number 282012 was encountered. $# Ids will continue at 282136.

    There is no YES/NO issued otherwise I would add ui_answer_message(13000235, "NO" ). According to PCL reference guide 13000235 is the code corresponding to the warning. How do I override action? PCL is part of a session file used to create a model (Nastran…
  • Loading Dynamic Link Library(DLL) into Patran

    Since Patran 2013, some useful PCL functions such as ​ utl_dyn_lib_open(), utl_dyn_pass_ptr_access(), ​ have been provided for users to load DLLs into Patran. However, similar functions were not provided in earlier Patran versions…
  • How to develop Patran UI using Qt?

    Since the new version of Patran has transplanted the user interface from PCL to Qt, how to use Qt to develop Patran's user interface in secondary development?
  • String Length of db_get_beam_section_name()

    db_get_beam_section_name() is not documented. It seems to truncate the returned names to 32 characters. Can this be confirmed? I set the value using elementprops_modify() through the property_data string (max 256 per docs). If the…
  • 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…
  • Is it possible to create product of two results using Create->Results tool

    Is it possible to use Create>Results for creating a new result case from two existing results case, so that the new result contains values produced by multiplication or division of the existing results? Something like Results>Combine, only that the Combine…
  • Fast built in function like a "list_create_elems_ass_edges"

    I can write my own function in straight PCL, but wondering if something like this already exists... I need it super fast (execution wise )so thought I would ask.. I need a function to which I send a list of element edges (ie. elem 1.1 2.3) and get back…
  • PATRAN gets stuck when playing .ses file

    I am trying to play a session file. The file is quite big (contain PCL functions for about 350+ contact definitions) but my system gets first slow and then irresponsive when it reaches 100 above contacts although system details show only 7 % processor…
  • PCL commands to import CSV data

    Please suggest a methods to create a flie dialog to import the csv and read the contents. I would like to add the button to import in my widget. Please suggest.
  • What is the fastest way to get access to hdf5 results data?

    Currently I am using res_utl_extract_nodal_results to extract the result. But in case of huge models and many loadcases the performance is slow. Does anyone have an idea how to increase the performance significantly? Is there an alternative faster call…
  • Determine variable type

    Determine variable type