pmayer Posted February 15, 2017 Share Posted February 15, 2017 I have already created a lisp that verify if a layer is frozen. If true, an other layer is frozen too. (if (= (vla-get-Freeze layer1) :vlax-true) (command "VPlayer" "FREEZE" "layer2" "" "")) How can I do that in vplayer? it doesnt seem to work the same? Quote Link to comment Share on other sites More sharing options...
pmayer Posted March 9, 2017 Author Share Posted March 9, 2017 Is my question clear? Nobody would have an idea? Quote Link to comment Share on other sites More sharing options...
broncos15 Posted March 9, 2017 Share Posted March 9, 2017 If I understand you correctly, I think http://forums.augi.com/showthread.php?83721-Viewport-layer-states-controled-by-LISP will be helpful. If you need more explanation/this is not what you're looking for, let me know. Quote Link to comment Share on other sites More sharing options...
pmayer Posted March 14, 2017 Author Share Posted March 14, 2017 What I need to do is to check the vplayerstate of a specific layer before contolling the vplayerstate. Thank you for your feedback. Quote Link to comment Share on other sites More sharing options...
tombu Posted March 14, 2017 Share Posted March 14, 2017 VPlayers.lsp - http://jtbworld.com/autocad-vplayers-lsp By Jimmy Bergmark - Copyright © 1997-2006 JTB World, All Rights Reserved Website: http://www.jtbworld.com - E-mail: info@jtbworld.com DESCRIPTION c:SaveVPlayers - Save frozen viewport layers to file c:LoadVPlayers - Load and restore frozen viewport layers from file c:CopyVPlayers - Select one viewport and get the layersettings then select the destination viewport(s) to inherit these Quote Link to comment Share on other sites More sharing options...
pmayer Posted March 15, 2017 Author Share Posted March 15, 2017 Works perfectly Thank you! (setq vplayer-LIST (ACET-VIEWPORT-FROZEN-LAYER-LIST (ACET-CURRENTVIEWPORT-ENAME))) (if (MEMBER "Layer1" vplayer-LIST)(command "VPlayer" "FREEZE" "Layer2" "" "")) 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.