Jump to content
Sign in to follow this  
George Cocea

Viewport > advanced properties > black & white only - preference

Recommended Posts

I searched the VW vectorscript appendix for the viewport > advanced properties >

black & white only preference assigned number but I could not find a listing.

I attached a screen capture of the dialog window for info clarity.

Does anybody know if there is a preference available for this option. I want to

create a toggle preference script for this option.

TIA,

George

Share this post


Link to post

Try 1030

This is from the Vectorscript Appendix, Object Selectors, Viewports.

This is a boolean value.

Pat

Share this post


Link to post

Pat,

Thank you, it does not seem to work. BTW, I am using

this single line vs to clarify what I did with the info you provided.

SetPref(1030, NOT GetPref(1030));

George

Share this post


Link to post

Unfortunately it is not a pref.

Try

SetObjectVariableBoolean(FSActLayer,1030, Not GetObjectVariableBoolean(FSActLayer,1030));

Since it is an object variable, you need to provide a handle to the object. FSActLayer is a handle to the first selected object on the active layer.

Regards,

Pat

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×