Drawing and Layout Methods

You can use the methods listed below to manage drawings and layouts.

This page discusses:

DrwDetail.GetDetailChildrenList()

Signature

DrwDetail.GetDetailChildrenList(ChildrenList : List, ChildType : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
ChildrenList In/Out List -
ChildType In String -

ReturnType

Boolean

DrwDetail.GetDetailModifiableTexts()

Signature

DrwDetail.GetDetailModifiableTexts(ModifiableTexts : List) : Boolean

Arguments

Name Input/Output Required? Type Comment
ModifiableTexts In/Out List -

ReturnType

Boolean

DrwDitto.ExposeDetail()

Signature

DrwDitto.ExposeDetail(DetailSheet : ) : Boolean

Arguments

Name Input/Output Required? Type Comment
DetailSheet In -

ReturnType

Boolean

DrwDitto.GetDetail()

Signature

DrwDitto.GetDetail(Detail : ) : Boolean

Arguments

Name Input/Output Required? Type Comment
Detail Out -

ReturnType

Boolean

DrwDitto.GetDittoModifiableTexts()

Signature

DrwDitto.GetDittoModifiableTexts(ModifiableTexts : List) : Boolean

Arguments

Name Input/Output Required? Type Comment
ModifiableTexts In/Out List -

ReturnType

Boolean

DrwDitto.GetLocation()

Signature

DrwDitto.GetLocation(X : LENGTH, Y : LENGTH) : Boolean

Arguments

Name Input/Output Required? Type Comment
X Out LENGTH -
Y Out LENGTH -

ReturnType

Boolean

DrwDitto.SetLocation()

Signature

DrwDitto.SetLocation(X : LENGTH, Y : LENGTH) : Boolean

Arguments

Name Input/Output Required? Type Comment
X In LENGTH -
Y In LENGTH -

ReturnType

Boolean

DrwDrawing.GetStandard()

Signature

DrwDrawing.GetStandard(StandardName : String, StandardParentName : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
StandardName Out String -
StandardParentName Out String -

ReturnType

Boolean

DrwDrawing.ListEmbeddedGVS()

Signature

DrwDrawing.ListEmbeddedGVS(GVSList : List) : Boolean

Arguments

Name Input/Output Required? Type Comment
GVSList Out List -

ReturnType

Boolean

Example

      

DrwDrawing.SetStandard()

Signature

DrwDrawing.SetStandard(StandardName : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
StandardName In String -

ReturnType

Boolean

DrwDrawing.SynchronizeGVS()

Signature

DrwDrawing.SynchronizeGVS(GVSList : List]) : Boolean

Arguments

Name Input/Output Required? Type Comment
GVSList In List -

ReturnType

Boolean

Example

      

DrwSheet.ForceUpdate()

Signature

DrwSheet.ForceUpdate() : Boolean

ReturnType

Boolean

Example

      

DrwSheet.GetFormatName()

Signature

DrwSheet.GetFormatName(FormatName : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
FormatName Out String -

ReturnType

Boolean

DrwSheet.SetFormatName()

Signature

DrwSheet.SetFormatName(FormatName : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
FormatName In String -

ReturnType

Boolean

DrwView.ConvertViewPointToSheetPoint()

Signature

DrwView.ConvertViewPointToSheetPoint(x : Real, y : Real) : Boolean

Arguments

Name Input/Output Required? Type Comment
x In/Out Real -
y In/Out Real -

ReturnType

Boolean

Example

      

DrwView.CreateAnnLabel()

This method, exposed on a view, is used to create a label in the view from a reference object (another label or a 2D component).

Signature

DrwView.CreateAnnLabel(ReferenceObj : , PosX : Real, PosY : Real, DrwLabel : ) : Boolean

Arguments

Name Input/Output Required? Type Comment
ReferenceObj In The label or 2D component
PosX In Real The X coordinate
PosY In Real The Y coordinate
DrwLabel Out The created object

ReturnType

Boolean

DrwView.CreateAnnTable()

This method, exposed on a view, is used to create an annotation table.

Signature

DrwView.CreateAnnTable(PosX : Real, PosY : Real, NbRows : Integer, NbColumns : Integer, CellWidth : Real, CellHeight : Real, DrwTable : ) : Boolean

Arguments

Name Input/Output Required? Type Comment
PosX In Real The X coordinate
PosY In Real The Y coordinate
NbRows In Integer The number of rows
NbColumns In Integer The number of columns
CellWidth In Real The width size
CellHeight In Real The height size
DrwTable Out The created object

ReturnType

Boolean

DrwView.CreateAnnText()

This method, exposed on a view, is used to create an annotation text.

Signature

DrwView.CreateAnnText(PosX : Real, PosY : Real, TextString : String, DrwText : ) : Boolean

Arguments

Name Input/Output Required? Type Comment
PosX In Real The X coordinate
PosY In Real The Y coordinate
TextString In String The text
DrwText Out The created object

ReturnType

Boolean

DrwView.GetASDView()

Signature

DrwView.GetASDView(oASDView : ASDView) : Boolean

Arguments

Name Input/Output Required? Type Comment
oASDView Out ASDView -

ReturnType

Boolean

DrwView.GetAreaFills()

Retrieves the AreaFill objects present on the view.

Signature

DrwView.GetAreaFills(oAreaFills : List) : Boolean

Arguments

Name Input/Output Required? Type Comment
oAreaFills Out List Receives the list of all DrwAreaFill objects defined for the current DrwView object.

ReturnType

Boolean

Returns TRUE if the area fills are successfully retrieved. Returns FALSE if the operation fails.

Example

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

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

DrwView.GetLookingDirection()

Signature

DrwView.GetLookingDirection() : String

ReturnType

String

Example

      

DrwView.GetViewAnnotations()

This methodv exposed on a view, is used to retrieve the list of annotations in the view.

Signature

DrwView.GetViewAnnotations(ListAnnotations : List) : Boolean

Arguments

Name Input/Output Required? Type Comment
ListAnnotations Out List Lists the annotations in the view

ReturnType

Boolean

DrwView.GetViewChildrenList()

Signature

DrwView.GetViewChildrenList(ChildrenList : List, ChildType : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
ChildrenList In/Out List -
ChildType In String -

ReturnType

Boolean

DrwView.GetViewText()

Signature

DrwView.GetViewText(ViewText : ) : Boolean

Arguments

Name Input/Output Required? Type Comment
ViewText Out -

ReturnType

Boolean

DrwView.InstantiateAnnTemplate()

This method, exposed on a view, is used to instantiate a text, a table and a label template in the view.

Signature

DrwView.InstantiateAnnTemplate(ReferenceObj : , PosX : Real, PosY : Real, InstanceObj : ) : Boolean

Arguments

Name Input/Output Required? Type Comment
ReferenceObj In Text, table, label template
PosX In Real The X coordinate
PosY In Real The Y coordinate
InstanceObj Out The created instance

ReturnType

Boolean