Jump to content
Developer Wiki and Function Reference Links Read more... ×
VectorBits.org

How to retrieve detail level in PIO

Recommended Posts

hi, does anyone know how to implement detail level inside a PIO?

Cannot find any function related to detail level in VW2019.

thanks

Share this post


Link to post

It appears to be ObjectVariableBoolean

 

Visible at XXX level of detail

 

750=High

751=Medium

752=Low

 

So SetObjectVariableBoolean(Handle, 750, True) would make an object visible at high level of detail.

 

If you also set 751 and 752 then it would be visible at all three levels of detail.

 

GetObjecVariableBoolean(Handle,750) should return the if the object referenced by Handle displays at High detail level.

Share this post


Link to post

A couple of things to note:

 

1. You need to set the 3 levels of detail for each object as there is no assumption that if an object is visible at one level, it will automatically be visible at another.

 

2. If the PIO contains groups, you need to set the detail level for each object within the group as setting it for the group itself will have no effect.

Share this post


Link to post

thank you both for the quick answer.

Maybe my question was not very clear (English is not my mother language). What I was trying to ask, in fact, is how to implement inside the code of a PIO, to redraw itself according to the layer or viewport detail level.

I program my custom door and wardrobe objects and I would like to get them displayed according to the detail level of the viewport or scale of te parent layer.

 

 

Share this post


Link to post

I think you have to set the three object variables for each item that you wish to be controlled by the detail level.

 

So for an object that will show in Low, Medium, and High Detail, you would need to set all three (750,751,752) all to true.

 

For an object to display only at Low, you would set 752 to True and 750, 751 to False.

 

For an object to display only at High you would set 750 to True and 751, 572 to False.

 

Try this on a simple object and see if it does what you expect.

Share this post


Link to post

Great! now I get it. I didn't realise I had to set the preference for all the objects I create in the PIO.

Thanks!!!

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

 

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.

×