Jump to content

How to retrieve detail level in PIO

Recommended Posts

It appears to be ObjectVariableBoolean


Visible at XXX level of detail






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

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.

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.


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.

  • Create New...