![]() |
【转帖】problem about prevent dim block recompute
problem about prevent dim block recompute
problem about prevent dim block recompute hi, i use the following code to prevent oddbdimenison's object from being recomputed when export dwg file. //export ...... oddbblocktablerecordptr ptroddbblock = modelspaceid.safeopenobject(oddb::kforwrite); ...... ...... ptroddbentity = oddbrotateddimension::createobject(); //set dimension data ....... ptroddbblock->appendoddbentity(ptroddbentity); ptroddbentity->recordgraphicsmodified(false); ... but, there are some problem, it always is that the last dimension didn't recompute, the other dimensions are recomputed! (see the attached picture, the orgin.jpg is the origin file's image, the exporterror1.jpg and exporterror2.jpg are exported file's image.) why? attached images hi, this is dd bug in notification processing. we'll fix it in a next maintenance release. as workaround you can use next code before appending new dimensions to database (or right after dd initialization). code: oddbdimension::desc()->delx(oddbevalwatcherpe::desc()); regards, sergey vishnevetsky thanks best regards! |
所有的时间均为北京时间。 现在的时间是 08:17 PM. |