HyperSizer Support Forum

Software Use => Scripting => Topic started by: dmunk on September 05, 2013, 12:51:14 AM

Title: help setting up groups
Post by: dmunk on September 05, 2013, 12:51:14 AM
Hi,

I'm trying to use the group.VariableMaterial, to apply materials, the group.VariableBounds to apply bounds, and the group.ComponentMembership to apply components to groups in HyperSizer via MATLAB. My problem is I can't find the necessary inputs

I would really appreciate it if someone could show me how to use these functions.

Cheers
 
Title: Re: help setting up groups
Post by: Ryan on September 06, 2013, 06:18:13 AM
VariableBound
http://hypersizer.com/help/#COM/Members/com-group-variable_bound.php

ComponentMembership
http://hypersizer.com/help/#COM/Members/com-group-component_membership.php
I cannot seem to pass the arrays properly in MATLAB when setting this property. An alternative method is Group.GroupMembership(). Here you pass in the component IDs with a string.

componentRange = '1:3,6,8'   % range = [1,2,3,6,8]
group.GroupMembership(componentRange)


VariableMaterial
http://hypersizer.com/help/#COM/Members/com-group-variable_material.php
This has the same problem with ComponentMembership. The only alternative appears to be using GroupDesigns.
http://hypersizer.com/forum/index.php/topic,456.0.html