Library | File

Class pfcUDFOrientations

# include <pfcUDFCreate.h>

class pfcUDFOrientations
 : public xobject
{
    xdeclare(pfcUDFOrientations)
    ...
};
This is a COMPACT class.



Description

An array of enums that provides answers to Creo Parametric prompts that use a flip arrow.

The user can access elements by their integer index (position) in the list. Sequence provides methods for positional (indexed) access to its elements. Sequences are zero based.



Method Summary

voidappend (optional pfcUDFOrientation value)
Appends an element with the specified value to the end of the sequence.
voidclear ()
Removes all the elements from the sequence.
static pfcUDFOrientations *create ()
Creates a new empty sequence.
static pfcUDFOrientations *createCapacity (xint count)
Creates a new empty sequence with a specified initial capacity. Capacity is the number of elements, that can be added to the sequence without having to reallocate its internal buffers.
optional pfcUDFOrientationget (xint idx)
Returns the value of the sequence element with the specified index. If the index is out of range, this method throws exception cipXInvalidSeqIndex.
xintgetarraysize ()
Returns current number of elements in the sequence.
voidinsert (xint idx, optional pfcUDFOrientation value)
Inserts an element with the specified value in front of the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index.
voidinsertseq (xint idx, xtbsequence<pfcUDFOrientation> *seq)
Inserts elements from the list passed as the second argument in front of the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index.
voidremoverange (xint frominc, xint toexcl)
Removes elements in the specified range from the sequence. The first argument specifies the index of the first element to be removed. The second argument specifies the index of the element immediately after the last in the range to be removed.
voidset (xint idx, optional pfcUDFOrientation value)
Assigns a value to the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index.



Method Detail

xintgetarraysize ()

Returns current number of elements in the sequence.
Returns:
Current number of elements.



optional pfcUDFOrientationget (xint idx)

Returns the value of the sequence element with the specified index. If the index is out of range, this method throws exception cipXInvalidSeqIndex.
Parameters:
idx
Index of requested sequence element.
Returns:
Value of the element at the specified index.



voidset (xint idx, optional pfcUDFOrientation value)

Assigns a value to the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index.
Parameters:
idx
Index of the element to be assigned.
value
Value to be assigned.
Returns:



voidremoverange (xint frominc, xint toexcl)

Removes elements in the specified range from the sequence. The first argument specifies the index of the first element to be removed. The second argument specifies the index of the element immediately after the last in the range to be removed.
Parameters:
frominc
Index of the first element to be removed.
toexcl
Index of the element following the last element to be removed.
Returns:



voidappend (optional pfcUDFOrientation value)

Appends an element with the specified value to the end of the sequence.
Parameters:
value
Value to be appended.
Returns:



voidinsert (xint idx, optional pfcUDFOrientation value)

Inserts an element with the specified value in front of the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index.
Manual References:
Features: Creating a Custom UDF
Parameters:
idx
Index for an element to be inserted at.
value
Value to be inserted.
Returns:



voidinsertseq (xint idx, xtbsequence<pfcUDFOrientation> *seq)

Inserts elements from the list passed as the second argument in front of the sequence element with the specified index. If the index is out of range, the sequence is expanded to include this index.
Parameters:
idx
Index at which the first new element should be inserted.
seq
Sequence of elements to be inserted.
Returns:



voidclear ()

Removes all the elements from the sequence.
Returns:



static pfcUDFOrientations *create ()

Creates a new empty sequence.
Manual References:
Features: Creating a Custom UDF, Features: Creating a Custom UDF
Returns:
Created sequence.



static pfcUDFOrientations *createCapacity (xint count)

Creates a new empty sequence with a specified initial capacity. Capacity is the number of elements, that can be added to the sequence without having to reallocate its internal buffers.
Parameters:
count
Returns:
Created sequence.