Layer tools: _layfrz using on xref

We have some problem using _layfrz to freeze layers on xrefs.
- we works with lot of xrefs
- when cleaning xref - after we use _layfrz whole xref going to be unseen
- it's look like there is no _regen after use freeze and need to be started manually

Is that OK to be so or there is something wrong whit that - in briscad v11 was fine, no we have got 10 license of v12 and everybody bitching abut using layers freeze on xrefs


Comments

  • No this in not the way it should be. It is definitely a bug. The _-LAYER command has the same problem: If you freeze a layer in an xref or block the whole insert becomes invisible.
  • If this is true then we need to fix this asap. Please create a supportrequest with a drawing so we can reproduce the problem.
  • SR has been sent.
    The lisp below is a workaround. Note: regen is still required but the lisp does it for you. So the lisp will be slow on big DWGs.
    [code](defun c:AltLayFrz ( / ename layElist layName)
      (while (setq ename (car (nentsel)))
        (setq layName (vla-get-layer (vlax-ename->vla-object ename)))
        (if (= (strcase layName) (strcase (getvar 'clayer)))
          (princ (strcat "\nLayer " layName " is the CURRENT layer. It cannot be frozen. "))
          (progn
            (vla-put-freeze (vlax-ename->vla-object (tblobjname "layer" layName)) :vlax-true)
            (vla-regen (vla-get-activedocument (vlax-get-acad-object)) acactiveviewport)
          )
        )
      )
      (princ)
    )[/code]
  • My post #2 is not correct regarding xrefs.
    If I use _layfrz on a layer in an xref the command prompts: "This layer has been frozen: ...".
    But the selected layer is still visible. So a _regen is required to make the freeze action visible.
    The xref insert as a whole does NOT become invisible.
  • So this is a problem of a manual regen being required in order to get the correct display.  After regen the display will be correct. This problem occurred in all of V11 and V12. This is not the critical issue I feared it was but we'll look into it.
  • Alexander, I apologize for confusing the issue.

    The scenario described is my post #2 is correct for entities 'directly' nested in xrefs and blocks.
    The scenario described is my post #5 is correct for entities that are part of a block nested in an xref.

    I have updated the SR.
  • I have send SR;
    ID: 33786
    Subject: XREF problem
    Date: 2012-03-06 08:43:40

  • Hallo there
    Is there any progress about this? I just downloaded last version and works it for blocks as was written :-( . Only after manual regen is correct.
    BTW - how can I see not only my SR?
    Thanks
    Have a nice day
This discussion has been closed.