SilverScreen Solid Modeler

record_visibility

record_visibility

Previous topic Next topic  

record_visibility

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void record_visibility ( char *path )

 

char *path;        // path to entity

 

 

 




Synopsis

#include "silver.h"

 

The record_visibility function causes the entity specified by path to record the current state of its visibility. path may be the path to any entity type excluding annotation blocks.

 

 

Parameters

path is a null-terminated string containing the full path name of the entity.

 

 

Return Value

none.

 

 

Comments

The visibility state of the entity may be later restored by reset_visibility .

 

 

See Also

reset_visibility

 

Example

The following allows the user to pick an object from the set of objects defined by the wildcard "!base*". Note that this set of objects is isolated during the pick process, preventing any ob­ject outside the set from being selected.

C / C++ Code

 

 char path[100];

 

 // Record visibility of drawing

 record_visibility ( "\\" );

 

 ss_command ( "silent isolate object !base*" );

 

 if ( pick_entity ( "Select object", BITS_OBJECT, path ) )

    ss_command ( "note Object %s was selected", path );

 else

    ss_command ( "note No object selected"

 

 // Reset drawing visibility
 reset_visibility ( "\\" );