aDimensionStyle->ArrowAspect()->SetLength( theLength / 20.0 );
aDimensionStyle->LineAspect()->SetWidth( w );
- aDimensionStyle->SetHorizontalTextAlignment( Prs3d_HTA_Center );
+ aDimensionStyle->MakeText3d( Standard_False );
+ aDimensionStyle->SetTextHorizontalPosition( Prs3d_DTHP_Center );
+ aDimensionStyle->SetTextVerticalPosition( Prs3d_DTVP_Center );
+ aDimensionStyle->MakeArrows3d( Standard_True );
anIO->SetFlyout( 0.0 );
anIO->SetDimensionAspect( aDimensionStyle );
aDimensionStyle->ArrowAspect()->SetLength( (theAngle * M_PI / 180.0) * (aLength / 20.0) );
aDimensionStyle->LineAspect()->SetWidth( w );
+ aDimensionStyle->SetTextHorizontalPosition( Prs3d_DTHP_Center );
+ aDimensionStyle->SetTextVerticalPosition( Prs3d_DTVP_Center );
+ aDimensionStyle->MakeText3d( Standard_False );
+ aDimensionStyle->MakeArrows3d( Standard_True );
anIO->SetDimensionAspect( aDimensionStyle );
int w = resMgr->integerValue( "Geometry", "measures_line_width", 1 );
aDimensionStyle->LineAspect()->SetWidth( w );
- aDimensionStyle->SetHorizontalTextAlignment( Prs3d_HTA_Center );
+ aDimensionStyle->SetTextHorizontalPosition( Prs3d_DTHP_Center );
+ aDimensionStyle->SetTextVerticalPosition( Prs3d_DTVP_Center );
+ aDimensionStyle->MakeText3d( Standard_False );
+ aDimensionStyle->MakeArrows3d( Standard_True );
anIO->SetDimensionAspect( aDimensionStyle );
aDimensionStyle->ArrowAspect()->SetLength( aDist / 20.0 );
aDimensionStyle->LineAspect()->SetWidth( w );
- aDimensionStyle->SetHorizontalTextAlignment( Prs3d_HTA_Center );
+ aDimensionStyle->SetTextHorizontalPosition( Prs3d_DTHP_Center );
+ aDimensionStyle->SetTextVerticalPosition( Prs3d_DTVP_Center );
+ aDimensionStyle->MakeText3d( Standard_False );
+ aDimensionStyle->MakeArrows3d( Standard_True );
anIO->SetFlyout( 0.0 );
anIO->SetDimensionAspect( aDimensionStyle );