Public Member Functions | List of all members
AssemblyLinearPattern Class Reference

AssemblyLinearPattern Class
The commands in the AssemblyLinearPattern class are described below.
. More...

Inherits ItemObject.

Public Member Functions

virtual void AddPropertyByReference (String &name, ReferenceObject *value)
 Adds ReferenceObject object to a specified variable. More...
 
ReferenceObjectGetDirection1 ()
 Returns the direction 1. More...
 
ReferenceObjectGetDirection2 ()
 Returns the direction 2. More...
 
int GetInstance1 ()
 Returns total number of solid and regions to be created in direction 1. More...
 
int GetInstance2 ()
 Returns total number of solid and regions to be created in direction 2. More...
 
ItemObjectGetItem (Variant &value)
 Returns an item displayed in the [Model Manager] tree such as assembly, part and sketch. Index is numbered in the order of the each items shown in the tree. More...
 
bool GetMerge ()
 Returns whether or not to merge the solid and regions. More...
 
String GetName ()
 Returns a name. More...
 
virtual Variant GetProperty (String &name)
 Returns the value of the property with the specified name. More...
 
bool GetReverse1 ()
 Returns True when the direction1 is reversed. More...
 
bool GetReverse2 ()
 Returns True when the direction2 is reversed. More...
 
String GetScriptTypeName ()
 Returns the name of the object type as a string. More...
 
double GetSpacing1 ()
 Returns the interval between solid and regions to be created in the direction 1. More...
 
double GetSpacing2 ()
 Returns the interval between solid and regions to be created in the direction 2. More...
 
StringList GetTargetList ()
 Returns a list of solid and region IDs to copy. More...
 
virtual bool IsValid ()
 Returns True if an object is valid. More...
 
int NumItems ()
 Returns the number of items. More...
 
void SetDirection1 (ReferenceObject *value)
 Specifies direction 1. More...
 
void SetDirection2 (ReferenceObject *value)
 Specifies direction 2. More...
 
void SetInstance1 (int value)
 Specifies the number of solid and regions to be created in the direction 1. More...
 
void SetInstance2 (int value)
 Specifies the number of solid and regions to be created in the direction 2. More...
 
void SetMerge (bool value)
 Specifies whether or not to merge the solid and regions. More...
 
void SetName (String &name)
 Specifies a name. More...
 
virtual void SetProperty (String &name, Variant &value)
 Specifies a value of property. More...
 
virtual void SetPropertyByReference (String &name, ReferenceObject *value)
 Specifies the values in properties by ReferenceObject object. More...
 
void SetReverse1 (bool value)
 Specifies whether or not to reverse direction 1. More...
 
void SetReverse2 (bool value)
 Specifies whether or not to reverse direction 2. More...
 
void SetSpacing1 (double value)
 Specifies the interval between solid and regions to be created in the direction 1. More...
 
void SetSpacing2 (double value)
 Specifies the interval between solid and regions to be created in the direction 2. More...
 
void SetTargetList (StringList &value)
 Specifies a list of solid and region IDs to copy. More...
 

Detailed Description

AssemblyLinearPattern Class
The commands in the AssemblyLinearPattern class are described below.
.

The AssemblyLinearPattern class includes the commands for the following operation.

For more information about the properties for this class, see here .

Member Function Documentation

void ItemObject::AddPropertyByReference ( String &  name,
ReferenceObject value 
)
virtualinherited

Adds ReferenceObject object to a specified variable.

Parameters
nameProperty name
valueReferenceObject object (target)
ReferenceObject * AssemblyLinearPattern::GetDirection1 ( )

Returns the direction 1.

Returns
ReferenceObject object
ReferenceObject * AssemblyLinearPattern::GetDirection2 ( )

Returns the direction 2.

Returns
ReferenceObject object
int AssemblyLinearPattern::GetInstance1 ( )

Returns total number of solid and regions to be created in direction 1.

Returns
Total number of solid and regions to be created in direction 1
int AssemblyLinearPattern::GetInstance2 ( )

Returns total number of solid and regions to be created in direction 2.

Returns
Total number of solid and regions to be created in direction 2
ItemObject * ItemObject::GetItem ( Variant &  value)
inherited

Returns an item displayed in the [Model Manager] tree such as assembly, part and sketch. Index is numbered in the order of the each items shown in the tree.

Parameters
valueItem name or index
Returns
ItemObject object
bool AssemblyLinearPattern::GetMerge ( )

Returns whether or not to merge the solid and regions.

Returns
Whether or not to merge
String ItemObject::GetName ( )
inherited

Returns a name.

Returns
Item name
Variant ItemObject::GetProperty ( String &  name)
virtualinherited

Returns the value of the property with the specified name.

Parameters
nameProperty name
Returns
Value of properties
bool AssemblyLinearPattern::GetReverse1 ( )

Returns True when the direction1 is reversed.

Returns
Whether or not the direction 1 is reversed
bool AssemblyLinearPattern::GetReverse2 ( )

Returns True when the direction2 is reversed.

Returns
Whether or not the direction 2 is reversed
String ItemObject::GetScriptTypeName ( )
inherited

Returns the name of the object type as a string.

Returns
Type name of object
double AssemblyLinearPattern::GetSpacing1 ( )

Returns the interval between solid and regions to be created in the direction 1.

Returns
Interval in direction 1
double AssemblyLinearPattern::GetSpacing2 ( )

Returns the interval between solid and regions to be created in the direction 2.

Returns
Interval in direction 2
StringList AssemblyLinearPattern::GetTargetList ( )

Returns a list of solid and region IDs to copy.

Returns
List of solid and region IDs
bool ItemObject::IsValid ( )
virtualinherited

Returns True if an object is valid.

Returns
Whether or not the object are valid

Reimplemented in Sketch, Part, SketchItem, and MeshPart.

int ItemObject::NumItems ( )
inherited

Returns the number of items.

Returns
Item count
void AssemblyLinearPattern::SetDirection1 ( ReferenceObject value)

Specifies direction 1.

Parameters
valueReferenceObject object
void AssemblyLinearPattern::SetDirection2 ( ReferenceObject value)

Specifies direction 2.

Parameters
valueReferenceObject object
void AssemblyLinearPattern::SetInstance1 ( int  value)

Specifies the number of solid and regions to be created in the direction 1.

Parameters
valueTotal number of solid and regions to be created in direction 1
void AssemblyLinearPattern::SetInstance2 ( int  value)

Specifies the number of solid and regions to be created in the direction 2.

Parameters
valueTotal number of solid and regions to be created in direction 2
void AssemblyLinearPattern::SetMerge ( bool  value)

Specifies whether or not to merge the solid and regions.

Parameters
value
True=on : Merge
False=off : Do not merge
void ItemObject::SetName ( String &  name)
inherited

Specifies a name.

Parameters
nameItem name
void ItemObject::SetProperty ( String &  name,
Variant &  value 
)
virtualinherited

Specifies a value of property.

Parameters
nameProperty name
valueValue of properties

Reimplemented in SketchItem.

void ItemObject::SetPropertyByReference ( String &  name,
ReferenceObject value 
)
virtualinherited

Specifies the values in properties by ReferenceObject object.

Parameters
nameProperty name
valueReferenceObject object (target)
void AssemblyLinearPattern::SetReverse1 ( bool  value)

Specifies whether or not to reverse direction 1.

Parameters
value
True=on : Reverse
False=off : Do not reverse
void AssemblyLinearPattern::SetReverse2 ( bool  value)

Specifies whether or not to reverse direction 2.

Parameters
value
True=on : Reverse
False=off : Do not reverse
void AssemblyLinearPattern::SetSpacing1 ( double  value)

Specifies the interval between solid and regions to be created in the direction 1.

Parameters
valuePattern interval in direction 1
void AssemblyLinearPattern::SetSpacing2 ( double  value)

Specifies the interval between solid and regions to be created in the direction 2.

Parameters
valuePattern interval in direction 2
void AssemblyLinearPattern::SetTargetList ( StringList &  value)

Specifies a list of solid and region IDs to copy.

Parameters
valueList of solid and region IDs

For more information about the commands of string array type, see "Example of the String Array Type."