Script Author: Ian Rivard

 

Description:

Round-trips FEMAP groups, layers, property colors, layer colors, and freebody definitions through a single text file or Patran .ses session file. Handles export and import in both formats. Useful for migrating model organization between FEMAP installs, preserving setup across model variants, or feeding Patran-prepared organization data into FEMAP.

 

Use Instructions:

Run the tool. Pick Import or Export. Pick the entity types to include via checkboxes (Groups / Layers / Mat'l Colors / Prop Colors / Layer Colors / Freebodies). For Patran .ses output, check the format radio. Browse for an output filename or input file. Confirm.

 

Requirements:

Open FEMAP model. For .ses (Patran session) input, the file must be a valid PCL session that defines groups via ga_group_create / ga_group_entity_add.

 

Notes:

v2.7 added rich error diagnostics: when an export fails mid-run, the message window prints the phase (groups / layers / freebodies / property colors / layer colors), the specific item being processed (e.g., “layer 17 - bracket bushings”), the VBA error number and description, and the output filename. Replaces the v2.6 generic “Export hit an error” with no context.

v2.8 adds Layer Color save/load mirroring the existing Property Colors feature. Pairs with Set Layer Colors on the producer side.

 

Advanced Users:

The Patran PCL parser handles continuation-line concat correctly per PCL semantics (no inserted space between fragments).

To our users: We appreciate feedback on our tools and encourage you to modify them to your specific needs. If you make an improvement you feel would be valuable to others, please submit it through our contribution page.