DWF

Reply
Contributor
geotavros
Posts: 15
Registered: ‎03-27-2012
Message 1 of 1 (182 Views)

How does TK_Visibility work?

182 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. 

Doc:

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

 

Notes

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
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.