Working with Design Sequences in Enterprise Knowledge Language

In the GeometricTypes knowledge package, you can access the parameters of a Design Sequence through the attributes of the DesignSequence type.

This page discusses:

DesignSequence Type

Inheritance Path

ObjectType
 Feature
  DesignSequence

Attributes

Name Type Comment
Activity Boolean Read/Write

Controls the update of a Design Sequence.

  • If the activity is False, the Design Sequence does not update anymore.
  • If the activity is True, the Design Sequence is updated when needed.

InputParametersValuePointers List Read-only

Returns a list of value pointers that reference the input parameters of a Design Sequence.

Note: The attribute is read-only but, if an input is not driven by a relation, you can modify it using the Feature.SetAttributeReal() method.
OutputParametersValuePointers List Read-only

Returns a list of value pointers that reference the output parameters of a Design Sequence.

PublishedLists List Read-only

Returns a list of lists.

Example

let ds (DesignSequence)
set ds = `Design Sequence.1`
Notify("", ds.Activity)

// integrate design table to update mechanism
ds.Activity = True

// modify input parameter called Radius
ds.SetAttributeReal("Radius", 10mm)

// display all input parameters name and their value
let l (List)
l = ds.InputParametersValuePointers
let vp (ValuePointer)
for vp inside l
	Notify("# #", vp.Name, vp.Value)

// display all published parameters and their value
l = ds.OutputParametersValuePointers
for vp inside l
	Notify("# #", vp.Name, vp.Value)

// display all published list names and their size
// Recommandation: use Feature type because the list affectation loses the initial name
l = ds.PublishedLists
let f (Feature)
for f inside l
{
	let l2 (list)
	set l2 = f
	Notify("#  size : #", f.Name, l2.Size())
}