ActiveField - QuickField API help

QuickField Student Edition free download     Contacts

ActiveField Technology

Objects Overview

Hierarchy Chart

How to Start: Application Object

How to work with Problems

How to work with Model

How to work with Data

How to Analyze Results

Objects

Properties

Methods

LabelBlock Object

Properties

Methods

Summary

LabelBlock Interface

Details

The LabelBlock object represents very general physical data applicable to the block label.

When you need to change some physical parameters for the block label, you get the LabelBlock object using the Content property of the Label object, modify the LabelBlock object using its properties, and then put it back in the Label object assigning your LabelBlock to the Content property of your Label object. Please see the example for Label object

The exact type of the LabelBlock object you get by the Label.Content property depends upon the problem type as show in the table:

Kind of Analysis

LabelBlock Type

Electrostatic problem

>>

LabelBlockES

DC conduction problem

>>

LabelBlockCF

AC conduction problem

>>

LabelBlockEC

Transient electric problem LabelBlockTV

DC and transient magnetics problem

>>

LabelBlockMS

AC magnetics

>>

LabelBlockHE

Heat transfer problem (static and transient)

>>

LabelBlockHT

Stress analysis problem

>>

LabelBlockSA

The generic LabelBlock object provides only those properties that are common for all specific types of LabelBlocks. These are:

Type

Read-only

Returns the qfBlock value showing that the data are applicable to a block label.

ProblemType

Read-only

Returns the problem type.

Anisotropic

Read-only

Is True if the data contains two coordinate components different from each other.

NonLinear

Read-only

Is True if some physical properties depends on the field value.

Polar

Read and write

Is True when the data components depending upon direction (if any) are given in the polar coordinate system.

Empty

Read-only

Is True when the data are not given for this object.

SetEmpty

Method

Makes the LabelBlock empty.

Each LabelBlock's subtype inherits all the methods and properties of the basic LabelBlock type listed above.

The following example iterates through block labels in the document and turns all anisotropic data to the polar coordinate system:

Dim lb As QuickField.Label
    For Each lb In prb.DataDoc.Labels(qfBlock)
    Dim blockData As LabelBlock
    Set blockData = lb.Content
    With blockData
        If .Anisotropic Then .Polar = True
    End With
    lb.Content = blockData
Next