Properties |
Methods |
LabelBlock Interface
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:
Read-only |
Returns the qfBlock value showing that the data are applicable to a block label. | |
Read-only |
Returns the problem type. | |
Read-only |
Is True if the data contains two coordinate components different from each other. | |
Read-only |
Is True if some physical properties depends on the field value. | |
Read and write |
Is True when the data components depending upon direction (if any) are given in the polar coordinate system. | |
Read-only |
Is True when the data are not given for this object. | |
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