unfrozen layer
unfrozen layer
hi,
i have a problem with frozen layers.
if you unfreeze a layer, layer's entities don't appear.
i think i could fix that if had odgsbasevectorizeview::updateextents method.
(odgsgeomportion->m_player is not filled when the layer is frozen)
thank you.
hi,
you can simply call 'regen' after layer unfreezing (or after enabling off-layer).
hi,
thank for your answer, but if you work on huge dwg it's not really appropriate.
hi,
the proper fix is little more complex than modification in odgsbasevectorizeview::updateextents method.
actually odgsgeomportion is not created for entities without geometry or m_player of the first odgsgeomportion remains null. geometry portions managed into odgsbasemodel:

ntraitsmodified method, but ontraitsmodified called only if any geometry available for rendering in entity.
so proper solution is to add new method to odgsbasemodel which will be manage geometry portions (create new portions if layer changed even if no metafile created inside current geometry portion). good place for this method call is in odgsbasevectorizeview::affecttraits method. of course some minor modifications in other parts of code also will be needed.
last edited by amark; 28th january 2009 at 06:09 amfff">. reason: smiles removed
quote:
if you unfreeze a layer, layer's entities don't appear.
fix will be available in next release.
thank you very much.
hi,
i finally find a solution.
in blockreference, i add odgsgeomportion in odgsentitynode metafile with frozen odgslayernode.
else i change the metafile->m_first->m_player.
i have one question :
in blockreference i add odgsgeomportion in metafile.m_first.m_pnext with a new odgsgeomportion that i filled myself. is the new odgsgeomportion will be destructed with metafile ??
thank. (and excuse my english)
hi,
yes, all geometry portions in chain will be deleted in metafile destructor.