SilverScreen Solid Modeler

relative_entry

relative_entry

Previous topic Next topic  

relative_entry

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

void relative_entry( int entry_mode );

 

int entry_mode;   // An integer value

 

 

 




Synopsis

#include "silver.h"

 

The relative_entry function sets the default 3D coordinate entry mode when keying in a 3D point.

 

 

Parameters

entry_mode is an integer whose meaning is as follows:

 

Value

Meaning

0

Coordinate entry mode is absolute

1

Coordinate entry mode is relative

 

 

Return Value

none

 

 

Remarks

When entry_mode is 0, here is the effect on the 3D point entry dialog:

 

relative_e0

 

When entry_mode is 1, here is the effect on the 3D point entry dialog:

 

relative_e1

 

 

See Also

prompt_point

 

 

Example

The following code demonstrates the effect of relative_entry on the 3D point prompting:

 

C / C++ Code

 

#include "silver.h"

 

void main(void)

  {

  SS_XYZ world_xyz;

 

  // Prompt for a point, defaulting the coordinate entry mode to absolute

 

  relative_entry(0);

 

  if ( ! prompt_point("Press = to see the effect of 0") )

     exit(-1);

 

  get_world_xyz(&world_xyz);

  ss_command("at %z", &world_xyz);

 

  // Prompt for a point, defaulting the coordinate entry mode to relative

 

  relative_entry(1);

  prompt_point("Press x to see the effect of 1");

  }