Jump to content

vplayer freeze by lisp if another layer is frozen


pmayer

Recommended Posts

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?

Link to comment
Share on other sites

  • 3 weeks later...

What I need to do is to check the vplayerstate of a specific layer before contolling the vplayerstate.

Thank you for your feedback.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Works perfectly Thank you!

 

(setq vplayer-LIST (ACET-VIEWPORT-FROZEN-LAYER-LIST (ACET-CURRENTVIEWPORT-ENAME)))

(if (MEMBER "Layer1" vplayer-LIST)(command "VPlayer" "FREEZE" "Layer2" "" ""))

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...