ViewPoint Operations

xAddViewPoint

Captures current view and adds as specified viewpoint and view path.

bool xAddViewPoint(const String sViewPoint, const String sViewPath, short iViewPathIndex)

return

Returns True, if successful.

sViewPoint

Name of the viewpoint.

sViewPath

View path where the viewpoint to be listed.

Note 1: If it is empty String, the viewpoint will be added in the current viewpath.

Note 2: If the specified viewpath name is not found in the viewpath list, it will create a new viewpath in that name.

iViewPathIndex

Index of a viewpath in the Viewpath List.

Note 3: Index is given higher priority than viewpath name.

If the index is not -1 then viewpath is selected based on an index.

Note 4: To use current viewpath, set iViewPathIndex as -1 and sViewPath as an empty String.

pxGetViewPathList

Gets viewpath list.

List<String> pxGetViewPathList()

return

Returns view path list in an array

pxGetViewPointList

Gets viewpoint names of a viewpath.

List<String> pxGetViewPointList(const String sViewPath, short iViewPathIndex)

return

Returns viewpoint list including Std.Views for given sViewPath or iViewPointIndex

sViewPath

ViewPath name. It can be an empty String if the viewpath name is not known.

iViewPathIndex

Viewpath index in the viewpath list. It can be -1 if the index is not known.

Note 1: if known Viewpath index and viewpath both are passed, viewpath index will be given priority.

Note 2: If both name and index are not known, pass an empty String and -1 to get current viewpath’s viewpoint list.

xSetCurrentViewPath

Sets current view path based on the index in the viewpath list.

bool xSetCurrentViewPath (short iViewPathIndex)

return

Returns True, if successful.

iViewPathIndex

View path index in the view path list.

xGetCurrentViewPathName

Gets current viewpath name.

String xGetCurrentViewPathName()

return

Returns current viewpath name.

xGetCurrentViewPathIndex

Gets the index of the current viewpath in viewpath’s array.

int xGetCurrentViewPathIndex()

return

Returns current viewpath’s index in the viewpath list.

xApplyViewPoint

Sets the specified viewpoint based on the name.

bool xApplyViewPoint (String sViewPoint, String sViewPath, bool bViewPosition=True, bool bViewState=True, bool, bStopViewPointAnimation=False)

return

Returns True, if successful.

sViewPoint

Viewpoint name in the viewpoint list that to be get applied.

sViewPath

The view path which contains the viewpoint. If it is an empty String, the viewpoint will be searched in the current ViewPath.

bViewPosition

If set to False, the viewpoint will not be applied with its captured view position.

bViewState

If set to False, the viewpoint will not be applied with its captured view states.

bStopViewPointAnimation

Set True to disable CAE animation. If the Viewpoint is captured with CAE animation, CAE animation state will be skipped.

xApplyViewPointEx

Sets the specified viewpoint based on the index in the viewpoint list.

bool xApplyViewPointEx(short iViewPointIndex, short iViewPathIndex, bool bViewPosition=True, bool bViewState=True, bool bStopViewPointAnimation=False)

return

Returns True, if successful.

iViewPointIndex

0 based index in the view point list.

iViewPathIndex

0 based index in the view path list. If it is -1 viewpoint will be searched in the current ViewPath.

bViewPosition

If set to False, the viewpoint will not be applied with its captured view position.

bViewState

If set to False, the viewpoint will not be applied with its captured view states.

bStopViewPointAnimation

Set True to disable CAE animation. If the Viewpoint is captured with CAE animation, CAE animation state will be skipped.

xExportViewPath

Exports viewpoint of given Viewpath as image files.

bool xExportViewPath(String sViewPath, String sOutDir, String sExt, bool bCreateDir)

return

Returns True, if successful.

sViewPath

Viewpath name for which viewpoint images to be generated.

Note 1: To generate all viewpath images, Set this value as " ". (a space between two double quotes).

Note 2: To generate images for all CAE results, set sViewPath as one of the following.

"@CAE"
"@CAE@AllInstance"
"@CAE@AllDerived"
"@CAE@AllInstance@AllDerived"

sOutDir

The output directory path where images will be created.

Note: OutDir must exist with write permission.

sExt

Output Image files extension.

Valid entries formats are jpg, bmp, png, tif.

bCreateDir

If True, creates a folder inside OutDir for each ViewPath.

If False, all image files are created in OutDir.

xRenameViewPath

Renames a viewpath.

bool xRenameViewPath(String sOldName, String sNewName)

return

Returns True, if successful.

sOldName

Viewpath that is to be renamed.

sNewName

New viewpath name.

xSetStdView

Sets required standard view for the given Index.

bool xSetStdView( short iView)

return

Returns True, if successful.

iView

Sets required view for the given index. Valid Range 1-7.

1 - Front
2 - Rear
3 - Top
4 - Bottom
5 - Left
6 - Right
7 - IsoMetric

pxGetBestStdViewList

Finds the most area covered standard view and returns its view names in order.

List<String> pxGetBestStdViewList(String sModel, String sPart)

return

Returns standard view names in the best area covered order.

sModel

Model name.

sPart

Part Name.

Note: To get the best view for the current scene, set sModel and sPart as empty strings.

pxGetBestStdViewCamInfo

Gets given view’s camera attributes like position, direction,orientation, upvector, fieldofview, clip distances.

List<float> pxGetBestStdViewCamInfo(String sModel, String sPart, String sStdName)

return

Returns camInfo array of size 21.

Camera Position

Camera position X = camInfo[0]
Camera position Y = camInfo[1]
Camera position Z = camInfo[2]

Camera Angle Axis

axis vector X = camInfo[3]
axis vector Y = camInfo[4]
axis vector Z = camInfo[5]
axis vector Angle in degrees = camInfo[6]

Camera UpVector

Upvector X = camInfo[7]
Upvector Y = camInfo[8]
Upvector Z = camInfo[9]

Camera Orientation

camInfo[10],camInfo[11],camInfo[12],camInfo[13]
Field Of View Y = camInfo[14]
Aspect Ratio = camInfo[15]
Near Clip = camInfo[16]
Far Clip = camInfo[17]

Camera Direction

Director Vector X = camInfo[18]
Director Vector Y = camInfo[19]
Director Vector Z = camInfo[20]

sModel

Model name.

sPart

The part name for the best camera view.

Note: To get best view camera info for the current scene, Set sModel and sPart as empty strings.

sStdName

Viewname provided in `pxGetBestStdViewList <#pxgetbeststdviewlist>`__ for which this camera Info values are returned.

xSetCAEAnimationInCurViewPoint

Sets CAE Animation in current viewpoint.

void xSetCAEAnimationInCurViewPoint(bool bAnimation)

return

None.

bAnimation

Set True to set CAE animation flag in current viewpoint.

xIsViewPointHasCAEAnimation

Checks a viewpoint that has CAE Animation

bool xIsViewPointHasCAEAnimation(String sViewPath, StringsViewPoint)

return

Returns True, if exists CAE Animation.

sViewPath

ViewPath name.

sViewPoint

Viewpoint name.

xAddViewPath

Adds a viewpath in viewpath list.

bool xAddViewPath(const String sViewPath)

return

Returns True, if successful.

sViewPath

New ViewPath name.

xDeleteViewPath

Deletes a viewpath from viewpath list.

bool xDeleteViewPath(String sViewPath)

return

Returns True, if successful.

sViewPath

Viewpath name that to be deleted. Deletes first matching name.

xDeleteViewpoint

Deletes a viewpoint in the given viewpath

bool xDeleteViewpoint(String sViewPath, String sViewPoint)

return

Returns True, if successful.

sViewPath

Viewpath name from where the viewpoint has to be deleted.

sViewPoint

Viewpoint’s name. Deletes first matching viewpoint.

xRenameViewpoint

Renames an existing viewpoint of a viewpath.

bool xRenameViewpoint(String sViewPath, String sOldName, String sNewName)

return

Returns True, if successful.

sViewPath

ViewPath name where the viewpoint exists.

sOldName

Old viewpoint name.

sNewName

New viewpoint name.

xSetViewPointEditMode

Set Viewpoints Edit mode. If this mode is set, it will ask the user to update the current viewpoint when another viewpoint is selected.

void xSetViewPointEditMode(bool bEditMode)

bEditMode

Set True, to enable viewpoint edit mode.

xGetViewPointEditMode

Get flag for Viewpoint Edit mode.

bool xGetViewPointEditMode()

return

Returns True if viewpoint edit mode is set.

xExportViewPoint

Exports viewpoint into .vpt file of the given path.

String xExportViewPoint(String sVptFilePath)

return

Returns saved file path. If sVptFilePath is invalid it saves in default path and returns the value.

sVptFilePath

Path of file to be saved.

xInsertViewpoint

Captures the current scene as a viewpoint with a new name and inserts before a particular viewpoint of given viewpath index.

void xInsertViewpoint(String sViewPointName, int iViewPointIndex, String sViewPathName, int iViewPathIndex)

return

None.

sViewPointName

Viewpoint name to be inserted(new name).

iViewPointIndex

Viewpoint index, where to be inserted.

sViewPathName

ViewPath name.

iViewPathIndex

Requires view path index also, as ViewPath name is not unique.

pxGetViewpointCamInfo

Gets camera data captured in a given ViewPath and ViewPoint names.

List<float> pxGetViewpointCamInfo(String sViewPath, String sViewPoint)

return

Returns empty value array if failed.

Returns an array of size 13 if success.

retArray[0], retArray[1], retArray[2] = X, Y and Z coordinates of camera position
retArray[3], retArray[4], retArray[5] = X, Y and Z components of camera Direction vector
retArray[6], retArray[7], retArray[8] = X, Y and Z components of camera Up Vector
retArray[9]  = Vertical Field of View in degrees
retArray[10] = Viewport Aspect ratio
retArray[11] = Near plane distance
retArray[12] = Far plane distance

sViewPath

Given ViewPath name.

sViewPoint

Given ViewPoint name.

pxGetViewpointCamInfoEx

Gets camera data captured in a given named ViewPath index and ViewPoint index.

List<float> pxGetViewpointCamInfoEx(int iViewPathIndex, int iViewPointIndex)

return

Returns empty value array if failed.

Returns an array of size 13 if success.

retArray[0], retArray[1], retArray[2] = X, Y and Z coordinates of camera position
retArray[3], retArray[4], retArray[5] = X, Y and Z components of camera Direction vector
retArray[6], retArray[7], retArray[8] = X, Y and Z components of camera Up Vector
retArray[9]  = Vertical Field of View in degrees
retArray[10] = Viewport Aspect ratio
retArray[11] = Near plane distance
retArray[12] = Far plane distance

iViewPathIndex

Given ViewPath index.

iViewPointIndex

Given ViewPoint index.

pxGetViewPointCAEResultInfo

Gets result names captured in a given ViewPath and ViewPoint names.

List<String> pxGetViewPointCAEResultInfo (String sViewPath, String sViewPoint)

return

Returns empty String array, if failed.

Returns a String array of size 3, if success.

retArray[0] = Result Name
retArray[1] = Instance Name
retArray[2] = Derived Type Name

sViewPath

Given ViewPath name.

sViewPoint

Given ViewPoint name.

pxGetViewPointCAEResultInfoEx

Gets Result name, Instance name and Derived type name in a given ViewPath index and ViewPoint index.

List<String> pxGetViewPointCAEResultInfoEx (int iViewPointIndex, int iViewPathIndex)

return

Returns empty String array, if failed.

Returns a String array of size 3, if success.

retArray[0] = Result Name
retArray[1] = Instance Name
retArray[2] = Derived Type Name

iViewPointIndex

Given ViewPoint index.

iViewPathIndex

Given ViewPath index.

xApplyViewPointEx2

Applies the ViewPoint is given by ViewPath and ViewPoint indices.

bool xApplyViewPointEx2(int iViewPointIndex, int iViewPathIndex, bool bViewPosition, bool bViewState)

return

Returns False, if failed.

Returns True, if success.

iViewPointIndex

Given ViewPoint index.

iViewPathIndex

Given ViewPath index.

bViewPosition

Applies only camera position and orientation if True.

bViewState

Applies only View states if True.

xGetOrthoCameraWindowWidth

Gets ortho camera window width.

float xGetOrthoCameraWindowWidth()

return

Returns 0, if failed.

Returns non-zero real value, if success.

xSetOrthoCameraWindowWidth

Sets ortho camera window width.

bool xSetOrthoCameraWindowWidth (float fWidth)

return

Returns False, if failed.

Returns True, if success.

fWidth

Ortho Camera Window Width.

xGetViewpointOrthoWindowWidth

Gets ortho window width value captured in a viewpoint.

float xGetViewpointOrthoWindowWidth(int iViewPointIndex, int iViewPathIndex)

return

Returns 0, if failed.

Returns a non-zero real value, if success.

sViewPointIndex

Given ViewPoint index.

sViewPathIndex

Given ViewPath index.

xIsViewPointHasCAEAnimationEx

Gets information on, if given viewpoint has CAE animation or not.

bool xIsViewPointHasCAEAnimationEx(int iViewPointIndex, int iViewPathIndex)

return

Returns False, if failed or given viewpoint does not have any CAE animation.

Returns True, if given viewpoint has CAE animation.

iViewPointIndex

Given ViewPoint index.

iViewPathIndex

Given ViewPath index.

pxGetCurrentViewPoint

Gets viewpoint and viewpath index of current applied viewpoint.

List<int> pxGetCurrentViewPoint()

return

Returns integer array of 2.

retArray[0] = Viewpoint index
retArray[1] = Viewpath index

xUpdateCurViewPoint

Updates current selected viewpoint as current state in the scene.

bool xUpdateCurViewPoint()

return

Returns True, if successful.

xIsVaildViewPoint

Checks if ViewPoint is a valid or not.

int xIsVaildViewPoint(String sViewPath, String sViewPoint)

return

Returns 1, if successful and 0 when failed.

sViewPath

ViewPath name.

sViewPoint

ViewPoint name.

xCopyViewPoints

Copies selected viewpoints from one viewpath to another viewpath using viewpoint indices.

bool xCopyViewPoints(List<int> viewpointIndexArray, String sFromViewPath, String sToViewPath, int iInsertIndex)

return

Returns True if successfully copied the viepoints from the given viewpath to destination viewpath.

Returns False otherwise.

viewpointIndexArray

Viewpoint indices of sFromViewPath.

sFromViewPath

Name of Viewpath, from which viewpoints are copied.

sToViewPath

Name of Viewpath, to which viewpoints are copied.

iInsertIndex

Not used. For Future case.

xMoveViewPoints

Moves selected viewpoints from one viewpath to another viewpath using viewpoint indices.

bool xCopyViewPoints(List<int> viewpointIndexArray, String sFromViewPath, String sToViewPath, int iInsertIndex)

return

Returns True if successfully moved the viepoints from the given viewpath to destination viewpath.

Returns False otherwise.

viewpointIndexArray

Viewpoint indices of sFromViewPath.

sFromViewPath

Name of Viewpath, from which viewpoints are to be moved.

sToViewPath

Name of Viewpath, to which viewpoints are moved.

iInsertIndex

Not used. For Future case.

xInterpolateViewpointCamera

Interpolates camera position and orientation between two viewpoints for fraction.

bool xInterpolateViewpointCamera(String start_vp, String end_vp, float fraction, String sViewpath)

return

Returns True if succeeeds

Returns False otherwise.

start_vp

Starting viwpoint.

end_vp

Ending viewpoint.

fraction

Interpolating fraction

sViewpath

Viewpath which has both start_vp and end_vp.

xInterpolateViewpointStates

Interpolates the viewing states like part transformation, material transparency between two viewpoints.

bool xInterpolateViewpointStates(String start_vp, String end_vp, float fraction, String sViewpath, vector<int> modules)

return

Returns True if successfully creates the interpolated scene.

Returns False otherwise.

start_vp

Starting viwpoint.

end_vp

Ending viewpoint.

fraction

Interpolating fraction.

sViewpath

Viewpath which has both start_vp and end_vp.

modules

Currently it is an array of size 2.

modules[0] = A flag (0 or 1) to interpolate pick and move transformations
modules[1] = A flag (0 or 1) to interpolate transparency of parts

This can be extended to other modules in future.

xRenameViewpointEx

This is index based alternate to the function xRenameViewpoint(). It helps to rename a viewpoint specified by Viewpath index and Viewpoint index.

bool xRenameViewpointEx(short iViewpointIndex, short iViewpathIndex, String sNewName)

return

Returns True if succeeds. Returns False otherwise.

iViewpointIndex

Index of the Viewpoint

iViewpathIndex

Index of the Viewpath

sNewName

New name to the viewpoint.

xUpdateViewpointEx

This is index based alternate to the function xUpdateViewpoint(). It helps to update the viewpoint with current scene.

bool xUpdateViewpointEx(short iViewpointIndex, short iViewpathIndex)

return

Returns True if succeeds. Returns False otherwise.

iViewpointIndex

Index of the Viewpoint

iViewpathIndex

Index of the Viewpath

xDeleteViewpointEx

This is index based alternate to the function xDeleteViewpoint(). It helps to delete the viewpoint.

bool xDeleteViewpointEx(List <int> viewpointIndexList, short iViewpathIndex)

return

Returns True if succeeds .Returns False otherwise

viewpointIndexList

List of viewpoint indices to be deleted. It has to be in ascending order.

iViewpathIndex

Index of the Viewpath

*Note: Once a viewpoint is deleted, the viewpoint indices are changed. Redefine the indices once a viewpoint is deleted.

xApplyViewStateEx

This is index based alternate to the function xApplyViewState(). It helps to apply the view state.

bool xApplyViewStateEx(short iViewpointIndex, short iViewpathIndex)

return

Returns True if succeeds. Returns False otherwise

iViewpointIndex

Index of the Viewpoint

iViewpathIndex

Index of the Viewpath

xIsVaildViewPointEx

This is index based alternate to the function xIsVaildViewPoint(). It helps to validate the viewpoint if it exists and valid user viwpoint.

int xIsVaildViewPointEx(short iViewpointIndex, short iViewpathIndex)

return

Returns 1 if succeeds

Returns 0 otherwise

iViewpointIndex

Index of the Viewpoint

iViewpathIndex

Index of the Viewpath

xCopyViewPointsEx

This is index based alternate to the function xCopyViewPoints(). It helps to get image file associated with the viewpoint background.

bool xCopyViewPointsEx(List <int> viewpointIndexArray, short iFromVPathIndex, short iToVPathIndex, int iInsertIndex)

return

Returns True if succeeds

Returns False otherwise

viewpointIndexArray

List of viewpoint indices to be copied.

iFromVPathIndex

Index of the viewpath, from which viewpoints to be copied.

iToVPathIndex

Index of the viewpath, to which viewpoints to be pasted.

iInsertIndex

For future use. Currently viewpoints are appended in the iToVPathIndex.

xMoveViewPointsEx

This is index based alternate to the function xMoveViewPoints(). It helps to get image file associated with the viewpoint background.

bool xMoveViewPointsEx(List<int> viewpointIndexArray, short iFromVPathIndex, short iToVPathIndex, int iInsertIndex)

return

Returns True if succeeds

Returns False otherwise

viewpointIndexArray

List of viewpoint indices to be copied.

iFromVPathIndex

Index of the viewpath, from which viewpoints to be moved out.

iToVPathIndex

Index of the viewpath, to which viewpoints to be pasted

iInsertIndex

For future use. Currently viewpoints are appended in the iToVPathIndex.

xGetImageBackgroundFileNameEx

This is index based alternate to the function xGetImageBackgroundFileName(). It helps to get image file associated with the viewpoint background.

String xGetImageBackgroundFileNameEx(short iViewpointIndex, short

iViewpathIndex)

return

Returns Image file path name. Returns empty string otherwise

iViewpointIndex

Index of the Viewpoint

iViewpathIndex

Index of the Viewpath

xShowViewPointSlideGUI

Allows user to show or hide the viewpoint slide user interface displayed at the right-bottom corner of the viewport.

bool xShowViewPointSlideGUI(bool bShow)

return

Returns True if succeeds. Returns False otherwise.

bShow

Set True to display Viewpoint slide gui, False to hide.

xIsViewPointSlideGUIVisible

Gets the information whether the viewpoint slide user interface is displayed or not.

bool xIsViewPointSlideGUIVisible()

return

Returns True if the viewpoint slide is displayed.Returns False otherwise

xPreInterpolateViewpointCamera

This function must be called before calling xInterpolateViewpointCamera.

void xPreInterpolateViewpointCamera()

xPostInterpolateViewpointCamera

This funciton must be called after calling xInterpolateViewpointCamera.

void xPostInterpolateViewpointCamera()

xInterpolateViewpoints

Interpolates Viewpoints using Viewpoint IDs.

bool xInterpolateViewpoints(size_t iSrcViewPtID, size_t iDestViewPtID, float fraction, size_t iViewPathID,bool bCamera,bool bState, std::vector<int> stateModules)

return

Returns True, if successful.

iSrcViewPtID

Source Viewpoint ID.

iDestViewPtID

Destination Viewpoint ID.

fraction

Interpolation fraction.

iViewPathID

Viewpath ID. If null Current viewpath will be considered.

bCamera

Set True to interpolate Camera positions.

bState

Set True to interpolate view states.x

stateModules

Array of size 3, that indiates specific states that to be interpolated.

Valid values in the array is 0 or 1 for True or False.

index [0] : Sets flag for Tranformations State. Like Pick move, Group Node Transfromation and Explode
index [1] : Sets flag for Transparency state
index [2] : Sets flag for Cutsection Plane position state.

xInterpolateViewpointsEx

Interpolates Viewpoints and save images for each frame.

int xInterpolateViewpointsEx(size_t iSrcViewPtID, size_t iDestViewPtID, int iFrames, bool bCamera, bool bState, List<int> stateFlags,String sImageFile,int iImageStartSuffix,int iFramesMode)

return

Returns new start suffix. i.e. iImageStartSuffix+ Number of images generated.

iSrcViewPtID

Source viewpoint ID. If NULL, current camera position and states are used.

iDestViewPtID

Target Viewpoint ID.

iFrames

Number of frames to be interpolated.

bCamera

If True, camera will be interpolated.

bState

If True, states mentioned in stateFlags will be animated. Otherwise ignored.

stateFlags

Array of size 3. that indicates specific states that to be interpolated.

Valid values in the array is 0 or 1 for True or False.

index [0] : Sets flag for Tranformations State. Like Pick move, Group Node Transfromation and Explode
index [1] : Sets flag for Display mode Transparency state.
index [2] : Sets flag for Cutsection Plane position state.

sImageFile

Image file name with path. Eg. “”D:/My Folder/MyImageName.png”.

Pass empty string to do only interpolation animation without image generation.

iImageStartSuffix

Start image name suffix. Generated image is started with this suffix and incremented for each frames

Eg: “”D:/My Folder/MyImageName0.png”, “”D:/My Folder/MyImageName1.png” …“”D:/My Folder/MyImageNameN.png”

iFramesMode

Frame mode specifies which frames to skip.

Valid frame mode values are 0 , 1, 2 and 3

Frame mode 0: Skips no frames, will generate all frames.(0.0 <= fraction <= 1.0)
Frame Mode 1: Skips both first and last frames. (0.0 < fraction < 1.0)
Frame Mode 2: Skips the last frame, but generates the first frame. (0 <= fraction < 1)
Frame Mode 3: Skips the first frame, but generates the last frame (0 < fraction <= 1)

Note: Frame mode 1 is useful to avoid duplicate image generation for the fractions 0 and 1, When Source viewpoint and Destination viewpoints are applied using ApplyViewpoint calls

xGetViewPathID

Gets Viewpath ID from viewpath name.

size_t xGetViewPathID(String sViewPath)

return

Returns Viewpath ID.

sViewPath

Valid viewpath name.

xGetViewPathIDEx

Gets Viewpath ID from viewpath index.

size_t xGetViewPathIDEx(int iViewPathIndex)

return

Returns Viewpath ID.

iViewPathIndex

Valid viewpath Index.

xIsVaildViewPathID

Validates user viewpath ID.

bool xIsVaildViewPathID(size_t iViewPathID)

return

Returns True if it’s a valid viewpath ID.

iViewPathID

Viewpath ID to validate.

xGetViewPointID

Gets Viewpoint ID for viewpoint name.

size_t xGetViewPointID(String sViewPath, String sViewPoint)

return

Returns viewpoint ID

sViewPath

View pathname

sViewPoint

Viewpoint name.

xGetViewPointIDEx

Gets Viewpoint ID for viewpoint index.

size_t xGetViewPointIDEx(int iViewPathIndex, int iViewPointIndex)

return

Returns viewpoint ID

iViewPathIndex

Valid ViewPath index. If -1 is passed it will check in current path.

iViewPointIndex

Valid viewpoint index.

xIsVaildViewPointID

Validates Viewpoint ID.

bool xIsVaildViewPointID(size_t iViewPathID,size_t iViewPointID)

return

Returns True if it’s a valid ID.

iViewPathID

For Future use. pass 0;

iViewPointID

Valid Viewpoint ID.

xGetCurrentViewPointID

Gets current viewpath’s ID.

size_t xGetCurrentViewPointID()

return

Returns current Viewpath’s ID.

xGetCurrentViewPathID

Gets Current Viewpoint’s ID

size_t xGetCurrentViewPathID()

return

Returns current Viewpoint’s ID.

xSetCurrentViewPointID

Sets Current Viewpoint using ID. But it wont applies the viewpoint.

bool xSetCurrentViewPointID(size_t iViewPointID)

return

Returns True, if it’s a valid ID

iViewPointID

Valid viewpoint ID. Set this as Current Viewpoint. To Apply need to call Apply Viewpoint.

xSetCurrentViewPathID

Sets Current Viewpath using ID

bool xSetCurrentViewPathID(size_t iViewPathID)

return

Returns True, if it’s a valid ID

iViewPathID

Valid View path ID

pxGetViewpointSectionPlane

Gets Section plan Equation(ax+by+cz+d=0) set in the given viewpoint.

List<float> pxGetViewpointSectionPlane(size_t iViewPointID = 0)

return

Returns list size of 4, if section is On.

Returns empty list, if section is off.

[0]:a
[1]:b
[2]:c
[3]:d

iViewPointID

Viewpoint ID. If it is set to 0 will apply to current viewpoint.