Posts: 15
Registered: ‎03-27-2012
Message 1 of 1 (188 Views)

How does TK_Visibility work?

188 Views, 0 Replies
05-08-2013 08:24 AM

I have a DWF file. When I open it in Design Review I see a 3D model. When I open it in my application I see a 3D model and lots of lines, circles and arcs. 


I assume that TK_Visibility is the entity that is responsible for setting which types of geometry shouldn't be drawn. When I read TK_Visibility I get these integers: mask = 1, value = 254. 

int mask = this->GetGeometry();

int val = this->GetValue();


This doesn't make much sence. According to the docs it means that we shouldn't draw faces. 


mask bitmask of affected geometry. bit definitions are here
value bitmask indicating which geometry types are visible.



This is the visibility which will apply to geometry in the currently opened segment. A bit in the value indicates that the segment has a setting for the corresponding geometry type. The matching bit in the value then indicates whether that geometry type is visible (if set) or invisible.



Is this a bug in the toolkit or in documentation? Or may be I didn't understand it correctly? 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.