CString str = _t ("Dimension Style"); CString strtmp (_t ("")); ////Get the callout style sheet for the current drawingacdbdimstyletable*pdimstyletbl; Acdbhostapplicationservices ()->workingdatabase ()getdimstyletable (PDIMSTYLETBL, acdb::kforwrite); ////Whether it already contains if(pdimstyletbl->has (str)) {Acdbdimstyletablerecord*Pdims; Pdimstyletbl-getAt (Acdb_model_space, Pdims, acdb::kforwrite); DoubleDtxtheight = Pdims->dimtxt ();////height of dimension textStrtmp.format (_t (". 1f"), dtxtheight); M_strtexthigh= strtmp;////height of dimension text inti = Pdims->dimadec ();//Get Master Unit PrecisionAcdbobjectid Idtextstyle = Pdims->dimtxsty ();//Text StyleAcdbtextstyletable *ptexttable; if(Acdbopenobject (ptexttable, Idtextstyle, acdb::kforread) = =Acad::eok) {ptexttable->getat (M_strtextstyle,idtextstyle);//get Text style string} pdimstyletbl-Close (); return; }
OBJECT ARX gets dimension style information