SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
Functions
sds2.breakapart Namespace Reference

Functions

def BreakApartMaterials

Function Documentation

def sds2.breakapart.BreakApartMaterials (   args)
 object BreakApartMaterials(*args) : 
 
 Create one or more broken apart members from the specified material list
 arguments.
 
 Each argument to the function is a list of materials. There is *no*
 requirement that each material list be hosted by a single member.
 As such, each argument can generate more than one new broken apart
 member. There will be one for each unique host in the material list.
 Thus, the function returns a list for each material list argument
 despite the likelihood of each material list being hosted on one member.
 
 Breaking one member into multiple new members is possible by passing
 multiple material list arguments to the function.
 
 The function will throw an exception if it cannot complete the
 transaction for any reason. Upon successful return, any remaining
 references to materials on members that were broken apart, including the
 material arguments, are invalid.
 
 Example: Break two materials off member 1 and one material off member 2
 a, b = model.member(1).materials[1:3]
 c = model.member(2).materials[1]
 ((broken1, broken2), (broken3,)) = BreakApartMaterials((a, c), (b,))