jhadams82 Posted August 9, 2018 Share Posted August 9, 2018 I wrote a short lisp to toggle a layer between frozen/thawed based on this post by Lee Mac: http://www.cadtutor.net/forum/showthread.php?68095-LISP-for-If-layer-is-frozen-thaw-it-and-vice-versa It works as expected for the most part, but something about our company's layer states is messing it up. If I start from a layer state where everything is thawed, the lisp works. But if I start from a layer state where my target layer is frozen then I use the lisp to toggle it to thawed, freestanding polylines do not show up, but polylines of that layer that are inside a block do show up. What's even weirder is that if I undo the command then redo it, then everything shows up. I'm completely baffled, so if anyone has any advice or suggestions I'd greatly appreciate it. toggle test.dwg togglelayer.lsp Layer States - DXR.lsp Quote Link to comment Share on other sites More sharing options...
Roy_043 Posted August 10, 2018 Share Posted August 10, 2018 You have posted (almost) the same question here: https://www.theswamp.org/index.php?topic=54364.0 The solution to your problem: you have to regenerate after thawing layers. See kpblc's answer. The undo/redo sequence triggers an automatic regeneration. Quote Link to comment Share on other sites More sharing options...
jhadams82 Posted August 10, 2018 Author Share Posted August 10, 2018 Actually, that wasn't it. Of course when I saw it wasn't working as I expected, RE and REA were the very first things I tried. So I just now went back to the original thread to see if I missed something and, sure enough, I had. The drawing didn't need to be regenerated, the entities needed to be updated after entmod. I still don't understand why or even what updating an entity even means, lol. Ultimately, it's working now and that's what I care about. But if anybody can shed some light on what's going on here, I'd love to hear about it. Especially why plines inside blocks were updated after entmod but free standing ones weren't. Thaaaanks Quote Link to comment Share on other sites More sharing options...
Roy_043 Posted August 11, 2018 Share Posted August 11, 2018 Well, BricsCAD shows a different, the expected?, behavior here. After thawing a layer with togglelayer.lsp both nested and non-nested entities on that layer remain invisible until the viewport is regenerated. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.