SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
Functions
AllOrNoneGraphical Namespace Reference

Helper routines for the default 'all or nothing' graphical behavior for plugins. More...

Functions

def ActiveMembers
def FilterByCreator
def FindAllModifiedMembers
def GetAllLinkedMembers
def IsUnfrozenMember
def SetPluginSystemGenerated
def SetSystemGenerated

Detailed Description

Helper routines for the default 'all or nothing' graphical behavior for plugins.

Specifically, 'all or nothing' means when the component is not graphical then all the materials, bolts, and welds that the component creates are system. Hence all of them will be regenerated each time through process. When the component is graphical then all of the parts of the component are user. Thus, none of them are recreated during process. See the Graphical and Process sections of the Component module for more details.

Function Documentation

def AllOrNoneGraphical.ActiveMembers (   args)
 Convert each member number in the specified list to a member object or
 None and return the resulting list
def AllOrNoneGraphical.FilterByCreator (   args)
 Return a list of Uuid.Uuid objects representing the guid for each
 element in the first argument if it was created by the Uuid specified as
 the second argument
def AllOrNoneGraphical.FindAllModifiedMembers (   args)
 return sum(map(GetAllLinkedMembers, ActiveMembers(member_numbers)), [])
def AllOrNoneGraphical.GetAllLinkedMembers (   args)
 Return a list of members that are part of a broken apart member
def AllOrNoneGraphical.IsUnfrozenMember (   args)
 return mem is not None and not model.IsPartOfFrozenMember(mem)
def AllOrNoneGraphical.SetPluginSystemGenerated (   args)
 Set the custom member or component to the specified graphical state (or
 techinically 'system' state which is the opposite of graphical)
def AllOrNoneGraphical.SetSystemGenerated (   args)
 Set the sys_gened property of materials, bolts, and welds on each
 member in members list (arg2) that was created by the the specified uuid (arg1)