HyperSizer Support Forum

Software Use => Scripting => Topic started by: dmunk on August 29, 2013, 11:43:53 PM

Title: Creating groups in MATLAB
Post by: dmunk on August 29, 2013, 11:43:53 PM
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

Title: Re: Creating groups in MATLAB
Post by: Ryan on August 30, 2013, 04:27:13 PM
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)
Title: Re: Creating groups in MATLAB
Post by: dmunk on September 01, 2013, 06:20:00 PM
Thanks Ryan