News: Contact us to upgrade your software!

Author Topic: Creating groups in MATLAB  (Read 12688 times)

dmunk

  • Client
  • **
  • Posts: 5
    •  
Creating groups in MATLAB
« 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


Ryan

  • Administrator
  • *****
  • Posts: 145
    •  
Re: Creating groups in MATLAB
« Reply #1 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)

dmunk

  • Client
  • **
  • Posts: 5
    •  
Re: Creating groups in MATLAB
« Reply #2 on: September 01, 2013, 06:20:00 PM »
Thanks Ryan