You can copy individual ACP objects between models using Python scripting. These methods work whether ACP runs within the Ansys Workbench application (including across projects) or in standalone mode.
Method 1: Use serialize() in ACP
Use the serialize() method to generate Python code that creates an
ACP object. You can copy and paste this code between Python script shells or include
it in a reusable script. You can also extend the script to copy an entire layup
definition.
Example: Get the create command for an edge set
db.active_model.edge_sets['EdgeSet'].serialize()
Example output:
db.models['ACP Model'].create_edge_set(name='EdgeSet.1', edge_set_type='By
Reference', origin=(1.0, 0.0, 0.0), element_set=db.models['ACP
Model'].element_sets.get('DECK'), limit_angle=-1.0)Method 2: Use recursive_copy() in PyACP
The recursive_copy() function in PyACP provides another way to copy ACP objects. This method
gives you control over whether to include linked objects. For example, when copying a
modeling ply, you can choose whether to also copy the linked fabric.
For details on how to use recursive_copy(), see Copy tree objects — PyACP.