CreateMachiningFeatureCreatePatternUsageSignatureCreatePatternUsage(Pattern : MfgPatternUsage) : Boolean Arguments
ReturnTypeBoolean ExampleLet MOperation(ManufacturingOperation) Let MFeature(MfgPatternUsage) [...] Set MOperation = MP.AppendOperation("Drilling", False ) CreatePatternUsage(MFeature) MOperation.SetPatternUsage( MFeature )" CreateSeqMotionCreates a sequential motion object. SignatureCreateSeqMotion(Type : String, Feature : MfgSeqMotionPPWord) : Boolean Arguments
ReturnTypeBoolean Examplelet MPtSite(MfgPtToPtSite) let MPtSitePPWord(MfgSeqMotionPPWord) let MGoStd(MfgSeqMotionLatheBase) [...] CreateSeqMotion("MfgPtToPtSite",MPtSite) CreateSeqMotion("MfgSeqMotionPPWord", MPtSitePPWord) CreateSeqMotion("MfgSeqMotionLatheDelta",MGoStd) CreateSeqMotionSignatureCreateSeqMotion(Type : String, Feature : MfgPtToPtSite) : Boolean Arguments
ReturnTypeBoolean ExecuteAutoSequence
Executes the auto-sequence and sequences the specified
operations using the active rules defined in the current rule set.
You can modify the active rules of the current auto-sequence
using
Rules Manager from the
Programming section or the
action bar
or using the
Arguments
ReturnTypeBoolean ExampleLet ActivityList(List) Let Program(ManufacturingProgram) // code for getting Program or it can also be input argument ActivityList.Append(Program) ExecuteAutoSequence(ActivityList, true) Example: Restoring the Previous RulesInitAutoSequenceOperationTypePriorities() // Note: Above function call is needed because of the rule: “Sort_by_Activity_Type” Let OrigRuleNames(List) Let OrigRulePriorities(List) GetActiveAutoSequenceRules(OrigRuleNames, OrigRulePriorities) Let RuleNames(List) RuleNames.Append("Sort_by_Distance") RuleNames.Append("Sort_by_Activity_Type") Let RulePriorities(List) RulePriorities.Append(40) RulePriorities.Append(30) SetActiveAutoSequenceRules(RuleNames, RulePriorities) Let ActList(List) ActList.Append(Program) ExecuteAutoSequence(ActList, true) SetActiveAutoSequenceRules(OrigRuleNames, OrigRulePriorities)
GetActiveAutoSequenceRulesReturns the active rules from the current auto-sequence rule set. Specify the current auto-sequence rule set before calling this function. Alternatively, you can specify the current auto-sequence rule set by selecting the "..." icon in > . If no rule set is present in the database, first import a rule set and then set it as the current auto-sequence rule set. Arguments
ReturnTypeBoolean ExampleLet RuleNames(List) Let RulePriorities(List) GetActiveAutoSequenceRules(RuleNames, RulePriorities) GetPriorityReturns the priority value of the operation type for auto-sequencing. Before calling the function, call
The values persist in session only. You can modify them by calling the
Arguments
ReturnTypeInteger ExampleLet Operation(ManufacturingActivity) Let PriorityValue(Integer) Let OpType(String) Operation->GetType(OpType) [...] set PriorityValue = GetPriority(OpType) InitAutoSequenceOperationTypePrioritiesInitializes the auto-sequencing of operations with priority values for all the operation types. The values initialized are the same than the ones displayed in the panel that appears when clicking Rules Manager from the Programming section of the action bar. For a "Sort_by_Activity_Type" rule, call the
SignatureInitAutoSequenceOperationTypePriorities() : Boolean ReturnTypeBoolean ExampleLet Operation(ManufacturingActivity) Let PriorityValue(Integer) Let OpType(String) Operation->GetType(OpType) [...] set PriorityValue = GetPriority(OpType) SetActiveAutoSequenceRulesSets the active rules and their priorities to the current auto-sequence rule set. Specify the current auto-sequence rule set before calling this function. Alternatively, you can specify the current auto-sequence rule set by using the "..." icon in > . It no rule set is present in the database, import a rule set first and set is as the current auto-sequence rule set. Arguments
ReturnTypeBoolean ExampleLet RuleNames(List) Let RulePriorities(List) RuleNames.Append("Sort_by_Distance") RuleNames.Append("Sort_by_Tool_Change") // add some more rules if needed RulePriorities.Append(40) RulePriorities.Append(80) // add priorities for some more rules if needed SetActiveAutoSequenceRules(RuleNames, RulePriorities) Recommendations:
SetPrioritySets the operation type priority value for auto-sequencing. The values persist in session only. Calling
Arguments
ReturnTypeInteger ExampleLet Operation(ManufacturingActivity) Let OpType(String) Let PriorityValue(Integer) [...] Operation->GetType(OpType) set PriorityValue = 50 SetPriority(OpType, PriorityValue) NCMachiningTemplate.CreateMachiningProcess()Creates a machining process in a task template. SignatureNCMachiningTemplate.CreateMachiningProcess() : MachiningProcess ReturnTypeMachiningProcess Example/* Let NCMTemplate be the input argument of type NCMachiningTemplate*/ Let MMachiningProcess(MachiningProcess) [...] Set MMachiningProcess = NCMTemplate.CreateMachiningProcess() NCMachiningTemplate.GetMachiningProcessList()Returns the machining process contained in a task template. SignatureNCMachiningTemplate.GetMachiningProcessList(List of Machining Process : List) : MachiningProcess Arguments
ReturnTypeMachiningProcess Example/* Let NCMTemplate be the input argument of type NCMachiningTemplate*/ Let listMP(List) [...] Set MMachiningProcess = NCMTemplate.GetMachiningProcessList(listMP) VPMInstance.AddConfig()Creates an FSConfig feature on a tool, tool assembly and insert, with the given keys. SignatureVPMInstance.AddConfig(Key1 : String, Key2 : String, Key3 : String, FS Configuration : MfgFSConfiguration) : Boolean Arguments
ReturnTypeBoolean ExampleLet Tool(VPMInstance) Let FSConfig(MfgFSConfiguration) [...] Tool.AddConfig("KeyOne", "KeyTwo", "KeyThree", FSConfig) VPMReference.AddConfig()SignatureVPMReference.AddConfig(Key1 : String, Key2 : String, Key3 : String, FS Configuration : MfgFSConfiguration) : Boolean Arguments
ReturnTypeBoolean |