Dress up Methods

You can use the methods listed below to manage dress-up elements.

This page discusses:

DrwAreaFill.GetColoringPattern()

Retrieves the ColoringPattern associated with the DrwAreaFill object. The method provides the coloring pattern information that is the color and comment.

Signature

DrwAreaFill.GetColoringPattern(ColoringPattern : ColoringPattern) : Boolean

Arguments

Name Input or Output Required? Type Comment
ColoringPattern Out ColoringPattern Output parameter that receives the current ColoringPattern that includes the color and comment.

ReturnType

Boolean

Returns TRUE if a coloring pattern is successfully retrieved; otherwise, returns FALSE.

Example

// Define lists to store X and Y coordinates of the contour
let ContourX (List)
let ContourY (List)

// Define list to store number of points per contour
let Contours (List)

// Initialize contour coordinates
ContourX = List(10, 10, 70, 70)
ContourY = List(10, 60, 60, 10)

// Specify one contour with 4 points
Contours = List(4)

// Declare a DrwAreaFill object to store the created area fill
let CreatedAreaFill (DrwAreaFill)

// Create the drawing area fill using the contour definitions
View.CreateDrwAreaFill(ContourX, ContourY, Contours, CreatedAreaFill)

// Set the coloring pattern on the area fill
// Color is passed as a 32-bit integer (ABGR format: 0xAABBGGRR)
// 65535 corresponds to a valid ABGR color value
// "Hello" is the comment associated with the coloring pattern
CreatedAreaFill.SetColoringPattern("65535", "Hello")

// Declare a ColoringPattern object to retrieve the applied coloring pattern
let ColoringPattern1 (ColoringPattern)

// Retrieve the coloring pattern from the area fill
CreatedAreaFill.GetColoringPattern(ColoringPattern1)

// Display the comment stored in the coloring pattern
Notify(ColoringPattern1.Comment)

DrwAreaFill.GetDottingPattern()

Retrieves the DottingPattern associated with the DrwAreaFill object. The method outputs all dotting pattern attributes.

Signature

DrwAreaFill.GetDottingPattern(DottingPattern : DottingPattern) : Boolean

Arguments

Name Input/Output Required? Type Comment
DottingPattern Out DottingPattern Receives the current DottingPattern object. The object contains the ZigZag, Color, Pitch, and Brightness attributes.

ReturnType

Boolean

Returns TRUE if the dotting pattern is successfully retrieved; otherwise, returns FALSE.

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
    CreatedAreaFill.SetDottingPattern()
}

Let DottingPattern1 (DottingPattern) 
CreatedAreaFill.GetDottingPattern(DottingPattern1)

Notify("DottingPattern1.Pitch : ",DottingPattern1.Pitch)

DottingPattern1.Pitch =10 

let l(List)
View.GetViewChildrenList(l,"HlrView")
let hlr(HlrView)
for hlr inside l
{
	hlr->ForceUpdate()
}

DrwAreaFill.GetHatching()

Retrieves the hatching pattern and its associated attributes from the DrwAreaFill object. This method is useful when accessing individual hatching element from an area fill containing multiple hatchings.

Signature

DrwAreaFill.GetHatching(iIndex : Integer, oHatching : HatchingPattern) : Boolean

Arguments

Name Input/Output Required? Type Comment
iIndex In Integer Specifies the index of the hatching element to retrieve from the DrwAreaFill object.
oHatching Out HatchingPattern Receives the HatchingPattern object at the specified index. The object contains the attributes of the corresponding hatching element, including Thickness, Angle, Color, Pitch, Offset, and Texture.

ReturnType

Boolean

Returns TRUE if the hatching pattern at the specified index is successfully retrieved; otherwise, returns FALSE.

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
  CreatedAreaFill.SetHatchingPattern("alu 30")
 }

 let HatchingPattern1(HatchingPattern)
 CreatedAreaFill->GetHatching(1,HatchingPattern1)

DrwAreaFill.GetListOfHatching()

Retrieves the list of hatching patterns associated with the DrwAreaFill object.

Signature

DrwAreaFill.GetListOfHatching(oListOfHatching : List) : Boolean

Arguments

Name Input/Output Required? Type Comment
oListOfHatching Out List Receives the list of all hatching patterns defined for the current DrwAreaFill object. Each list element is a HatchingPattern object that encapsulates the attributes of an individual hatching element, including Thickness, Angle, Color, Pitch, Offset, and Texture. For complex hatchings, the list contains one HatchingPattern object for each hatching element.

ReturnType

Boolean

Returns TRUE if the list of hatching patterns is successfully retrieved; otherwise returns FALSE (for example, if no hatching patterns are defined for the area fill).

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
  CreatedAreaFill.SetHatchingPattern("alu 30")
 }

  Let lst(List)
  CreatedAreaFill->GetListOfHatching(lst)
  Notify("Size Of List : ", lst.Size())

  let HatchingPattern1(HatchingPattern)
  for HatchingPattern1 inside lst
  {
    Notify("Texture ",HatchingPattern1.Texture)
    Notify("Offset ",HatchingPattern1.Offset)
  }

DrwAreaFill.GetMotifPattern()

Retrieves the MotifPattern associated with the DrwAreaFill object. The method outputs all motif pattern attributes.

Signature

DrwAreaFill.GetMotifPattern(MotifPattern : MotifPattern) : Boolean

Arguments

Name Input/Output Required? Type Comment
MotifPattern Out MotifPattern Receives the current MotifPattern object. The object contains the MotifAngle and MotifScale attributes.

ReturnType

Boolean

Returns TRUE if the motif pattern is successfully retrieved. Returns FALSE if no motif pattern is defined.

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
    CreatedAreaFill. SetMotifPattern()
}

Let MotifPattern1 (MotifPattern) 
CreatedAreaFill.GetMotifPattern(MotifPattern1)

Notify("MotifPattern1.MotifAngle : ", MotifPattern1. MotifAngle)

MotifPattern1. MotifAngle =90 

let l(List)
View.GetViewChildrenList(l,"HlrView")
let hlr(HlrView)
for hlr inside l
{
	hlr->ForceUpdate()
}

DrwAreaFill.GetNbHatching()

Returns the number of hatching elements in the DrwAreaFill object.

Signature

DrwAreaFill.GetNbHatching(oNbHatching : Integer) : Boolean

Arguments

Name Input/Output Required? Type Comment
oNbHatching Out Integer Receives the number of hatching elements defined for the current DrwAreaFill object.

ReturnType

Boolean

Returns TRUE if the number of hatching elements is successfully retrieved; otherwise returns FALSE (for example, if no hatching information is defined).

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
  CreatedAreaFill.SetHatchingPattern("alu 30")
 }

Let NumberOfHatching(Integer)
CreatedAreaFill.GetNbHatching(NumberOfHatching)
Notify ("Number Of Hatching: ",NumberOfHatching)

DrwAreaFill.GetVectorPattern()

Retrieves the VectorPattern associated with the DrwAreaFill object. The returned object contains all vector pattern attributes.

Signature

DrwAreaFill.GetVectorPattern(VectorPattern : VectorPattern) : Boolean

Arguments

Name Input/Output Required? Type Comment
VectorPattern Out VectorPattern Receives the current VectorPattern object, including the Description, Angle, Scale, Thickness, Color, and LineType attributes.

ReturnType

Boolean

Returns TRUE if the vector pattern is successfully retrieved; otherwise, returns FALSE.

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
    CreatedAreaFill.SetVectorPattern()
}

Let VectorPattern1 (VectorPattern) 
CreatedAreaFill.GetVectorPattern(VectorPattern1)

Notify("VectorPattern1.LineType : ", VectorPattern1.LineType)

VectorPattern1. LineType = 2  

let l(List)
View.GetViewChildrenList(l,"HlrView")
let hlr(HlrView)
for hlr inside l
{
	hlr->ForceUpdate()
}

DrwAreaFill.SetColoringPattern()

Assigns a ColoringPattern to the DrwAreaFill object by explicitly specifying a color and an associated comment.

This method applies the specified coloring information to the drawing area fill.

Signature

DrwAreaFill.SetColoringPattern(Color : Integer, Comment : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
Color In String Specifies the color value as a 32-bit integer in ABGR format, stored as a string. (0xAABBGGRR).
Comment In String Associates the descriptive comment with the coloring pattern.

ReturnType

Boolean

The function returns a Boolean value. It returns TRUE if the operation succeeds; otherwise, it returns FALSE.

DrwAreaFill.SetDottingPattern()

Assigns a DottingPattern to the DrwAreaFill object using a predefined pattern name.

The corresponding dotting attributes are retrieved from the standard definition associated with the specified pattern name and applied to the drawing area fill. If no pattern name is specified, the default standard dotting pattern is applied.

Signature

DrwAreaFill.SetDottingPattern(PatternName : String]) : Boolean

Arguments

Name Input/Output Required? Type Comment
PatternName In String Specifies the name of the predefined dotting pattern to apply. If no pattern name is specified, the default standard dotting pattern is used.

ReturnType

Boolean

Returns TRUE if the dotting pattern is successfully applied; otherwise, returns FALSE.

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
    CreatedAreaFill.SetDottingPattern()
}

DrwAreaFill.SetHatchingPattern()

Applies a hatching pattern to the DrwAreaFill object by explicitly specifying all hatching-related attributes.

Signature

DrwAreaFill.SetHatchingPattern(PatternName : String]) : Boolean

Arguments

Name Input/Output Required? Type Comment
PatternName In String Specifies the name of the predefined hatching pattern to apply. If omitted, the default standard hatching pattern is used.

ReturnType

Boolean

Returns TRUE if the hatching pattern is successfully applied; otherwise returns FALSE if the operation fails.

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
  CreatedAreaFill.SetHatchingPattern("alu 30")
}

DrwAreaFill.SetMotifPattern()

Assigns a MotifPattern to the DrwAreaFill object using a predefined pattern name.

The method retrieves the corresponding motif pattern attributes from the standard definition associated with the specified pattern name and applies them to the drawing area fill. If no pattern name is specified, the method applies the default standard motif pattern.

Signature

DrwAreaFill.SetMotifPattern(PatternName : String]) : Boolean

Arguments

Name Input/Output Required? Type Comment
PatternName In String Specifies the name of the predefined motif pattern to apply. If no pattern name is specified, the default standard motif pattern is used.

ReturnType

Boolean

Returns TRUE if the motif pattern is successfully applied. Returns FALSE if the operation fails.

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
    CreatedAreaFill.SetMotifPattern()
}

DrwAreaFill.SetNonePattern()

Assigns a None Pattern state to the DrwAreaFill object. This method is used to clear any existing hatching, dotting, vector, or motif patterns from the area fill and apply a no-pattern state.

Signature

DrwAreaFill.SetNonePattern() : Boolean

ReturnType

Boolean

Returns TRUE if the pattern is successfully applied. Returns FALSE if the operation fails.

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
    CreatedAreaFill.SetNonePattern()
}

DrwAreaFill.SetVectorPattern()

Assigns a VectorPattern to the DrwAreaFill object using a predefined pattern name.

The corresponding vector pattern attributes are retrieved from the standard definition associated with the specified pattern name and applied to the drawing area fill. If no pattern name is specified, the default standard vector pattern is applied.

Signature

DrwAreaFill.SetVectorPattern(PatternName : String]) : Boolean

Arguments

Name Input/Output Required? Type Comment
PatternName In String Specifies the name of the predefined vector pattern to apply. If no pattern name is specified, the default standard vector pattern is used.

ReturnType

Boolean

Returns TRUE if the vector pattern is successfully applied. Returns FALSE if the operation fails.

Example

Let listOfAreaFill(List)
View->GetAreaFills(listOfAreaFill)

let CreatedAreaFill(DrwAreaFill)
for CreatedAreaFill inside listOfAreaFill
{
    CreatedAreaFill.SetVectorPattern()
}

DrwThread.IsThreadAssociative()

Signature

DrwThread.IsThreadAssociative(IsAssociative : Boolean) : Boolean

Arguments

Name Input/Output Required? Type Comment
IsAssociative Out Boolean -

ReturnType

Boolean