Software Use > Scripting

Creating groups in MATLAB

(1/1)

dmunk:
Hi,

I'm trying to import my FEM model into HyperSizer through MATLAB and then size it. The issue I am having is setting the groups for all the components. How do you set the groups in MATLAB? I'm getting this error when its trying to size:

Error using Interface.359EAB0B_1281_4C2C_9135_ECA5247E39CB/Size
Invoke Error, Dispatch Exception:
Source: Project
Description: Sizing Failed, unable to analyze model, there are no sizing groups defined.
Please use the Sizing Form to define sizing groups for the components in this project.

Cheers

Ryan:
Groups are created using the Create() method of the GroupCol object (project.Groups). After you create the group you will need to apply materials (group.VariableMaterial), variable bounds (group.VariableBound), concepts (group.Option), and assign components (group.ComponentMembership).

-Ryan

    bpfCorrugatedStiffenedPanelFamily = 3;
   
    groupId = 106;
    familyId = bpfCorrugatedStiffenedPanelFamily;   
    index = project.Groups.Create(groupId, familyId);
   
    group = get(project.Groups, 'Item', index);
    disp(group.GroupName)

dmunk:
Thanks Ryan

Navigation

[0] Message Index

Go to full version