Library | Module

Interface IpfcSelection



Description

This class represents a selection.
Direct Parent Classes:
IpfcObject



Property Summary

PropertyDepthas Double
The depth of the selection
PropertyParamsas IpfcUVParams
The UV parameters
PropertyPathas IpfcComponentPath [optional]
The component path
PropertyPointas IpfcPoint3D
The point
PropertySelItemas IpfcModelItem [optional]
The selected model item
PropertySelModelas IpfcModel [readonly, optional]
The selected model
PropertySelTableCellas IpfcTableCell [optional]
The table cell, or null, if the selection does not represent a drawing table cell selection.
PropertySelTableSegmentas Long [readonly, optional]
The drawing table segment, or null, if the selection does not contain a drawing table.
PropertySelView2Das IpfcView2D [optional]
The drawing view, or null, if the selection does not contain a drawing view.
PropertyTParamas Double [optional]
The T parameter of an edge or curve



Method Summary

SubDisplay ()
Displays the selection. Note that this is a one-time action (the next repaint will erase this display).
SubHighlight (Color as IpfcStdColor)
Highlights the selection in the current window. The selection remains highlighted until you call the Unhighlight() function.
SubSetIntf3DCsys (ReferenceCsys as IpfcSelection [optional])
Set reference CSYS for export file. User should conver IpfcModel to IpfcSelection and then call this method on it. Use method pfcCreateModelSelection() to get IpfcSelection from IpfcModel
SubUnHighlight ()
Removes the highlighting from the selection highlighted by a previous call to the Highlight() function.



Property Detail


PropertyDepthas Double

The depth of the selection

Exceptions thrown (but not limited to):

IpfcXToolkitInvalidPtr - The selection argument is an invalid pointer.






PropertyParamsas IpfcUVParams

The UV parameters




PropertyPathas IpfcComponentPath [optional]

The component path




PropertyPointas IpfcPoint3D

The point

Exceptions thrown (but not limited to):

IpfcXToolkitInvalidPtr - The selection argument is an invalid pointer.






PropertySelItemas IpfcModelItem [optional]

The selected model item

Exceptions thrown (but not limited to):

IpfcXToolkitNotExist - The model item doesn't exist.






PropertySelModelas IpfcModel [readonly, optional]

The selected model

Exceptions thrown (but not limited to):

IpfcXToolkitNotExist - The model item doesn't exist.

IpfcXToolkitNotFound - no associated drawing found






PropertySelTableCellas IpfcTableCell [optional]

The table cell, or null, if the selection does not represent a drawing table cell selection.




PropertySelTableSegmentas Long [readonly, optional]

The drawing table segment, or null, if the selection does not contain a drawing table.




PropertySelView2Das IpfcView2D [optional]

The drawing view, or null, if the selection does not contain a drawing view.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - no associated drawing found






PropertyTParamas Double [optional]

The T parameter of an edge or curve





Method Detail


SubDisplay ()

Displays the selection. Note that this is a one-time action (the next repaint will erase this display).



SubHighlight (Color as IpfcStdColor)

Highlights the selection in the current window. The selection remains highlighted until you call the Unhighlight() function.
Parameters:
Color
The highlight color



SubSetIntf3DCsys (ReferenceCsys as IpfcSelection [optional])

Set reference CSYS for export file. User should conver IpfcModel to IpfcSelection and then call this method on it. Use method pfcCreateModelSelection() to get IpfcSelection from IpfcModel
Parameters:
ReferenceCsys
The reference coordinate system selection. This is Optional argument. Call this method without any argument to set default coordinate system. Reference CSYS is not supported for CADDS and NEUTRAL file types.



SubUnHighlight ()

Removes the highlighting from the selection highlighted by a previous call to the Highlight() function.