how can i display dimentions

hi how can i display dimentions.... i mean if i create dims like using AIS_DiameterDimention so how can i display it.... any available class like for displaying text i ve Graphics2dtext class but what @ dims....

Svetlozar Kostadinov's picture

Dimension classes derive from AIS_Relation, and AIS_Relation in its turn derives from AIS_InteractiveObject. You could probably use AIS_Relation::SetText() to display text with your dimension. Then you can display the dim. by calling Display() method of AIS_InteractiveContext. AIS_xxxDimension's are usual AIS objects.