Method | Description | |
---|---|---|
Activate ( ) : void |
Brings the SmartPlant Review application to the foreground.
|
|
Annotations_Add ( List |
Adds a list of annotations into the Mdb annotation table.
|
|
Annotations_Add ( |
Adds an annotation directly into the Mdb annotation table.
|
|
Annotations_Delete ( string type ) : void |
Prompts a user to delete an annotation in the SmartPlant Review main view.
|
|
Annotations_DeleteAll ( ) : void |
Deletes all the annotations from the active SmartPlant Review session.
|
|
Annotations_DeleteType ( string type ) : void |
Deletes all the annotations of a specified type from the active SmartPlant Review session.
|
|
Annotations_EditLeader ( |
||
Annotations_EditLeader ( int annoNo ) : void | ||
Annotations_Get ( int annoId ) : |
Retrieves the desired annotation from the Mdb text_annotations table.
|
|
Annotations_Place ( |
Toggles annotation display in the SmartPlant Review application main window. Creates a new data field in the Mdb text_annotations table. Returns true if the field already exists. Prompts a user to place a new annotation in the SmartPlant Review main view.
|
|
Annotations_Select ( string type ) : |
Prompts a user to select an annotation in the SmartPlant Review main view.
|
|
Annotations_Update ( |
Updates annotation data directly in the Mdb text_annotations table.
|
|
Annotations_Update ( object stateInfo ) : void |
Updates annotation information directly in the Mdb text_annotations table, queueable from the threadpool.
|
|
Connect ( ) : bool |
Connects to a running instance of SmartPlant Review.
|
|
Dispose ( ) : void |
Releases the connection to the SprApplication.
|
|
Exit ( ) : void |
Exits the SmartPlant Review application.
|
|
Export ( string vueName ) : void |
Exports the current session to a VUE file format. Compatible only with SPR versions 9 and above.
|
|
ExportPdf ( int quality, string path ) : void |
Compatible only with SPR versions 9 and above.
|
|
GetCenterPoint ( ) : SprPoint3D | ||
GetObjectData ( int objectId ) : SprObject |
Uses an Object Id to retrieve detailed object information.
|
|
GetObjectData ( string prompt ) : SprObject |
Prompts a user to select an object inside SmartPlant Review. Retrieves object information from the selected object.
|
|
GetObjectData ( string prompt, bool singleObjects ) : SprObject |
Prompts a user to select an object inside SmartPlant Review. Retrieves object information from the selected object.
|
|
GetObjectId ( string prompt ) : int |
Prompts a user to select an object inside SmartPlant Review. Retrieves the Object Id of the selected object.
|
|
GetObjectId ( string prompt, SprPoint3D &refPoint ) : int |
Prompts a user to select an object inside SmartPlant Review. Retrieves the Object Id of the selected object.
|
|
GetPoint ( string prompt ) : SprPoint3D |
Prompts a user to select a point inside SmartPlant Review. Retrieves the physical point selected on screen.
|
|
GetPoint ( string prompt, SprPoint3D targetPoint ) : SprPoint3D |
Prompts a user to select a point inside SmartPlant Review. Retrieves the physical point selected on screen.
|
|
GlobalOptionsGet ( int option ) : double |
Gets the value of a specified global option in SmartPlant Review.
|
|
GlobalOptionsSet ( int option, int value ) : void |
Sets the value of a specified global option in SmartPlant Review.
|
|
HighlightClear ( ) : void |
Clears all highlighting from the main SmartPlant Review application window.
|
|
HighlightObject ( int objectId ) : void |
Highlights a specified object in the main SmartPlant Review application Window
|
|
HighlightObject ( int objectId, Color color, int width = 2 ) : void | ||
ObjectDataSearch ( string criteria ) : List |
Searches through the active session for objects matching the supplied search criteria.
|
|
Open ( string fileName ) : void |
Attempts to open the specified session in the fileName. Any active session will first be closed.
|
|
RefreshData ( ) : void |
Refreshes the session data as if selected from the application menu.
|
|
SetCenterPoint ( SprPoint3D centerPoint ) : void | ||
SetCenterPoint ( double east, double north, double elevation ) : void | ||
SetEyePoint ( SprPoint3D eyePoint ) : void | ||
SetEyePoint ( double east, double north, double elevation ) : void | ||
SprApplication ( ) : System |
Creates a new SprApplication class. Will automatically connect to a single SmartPlant Review process if available.
|
|
TakeSnapshot ( string imageName, string outputDir, |
Captures the active SmartPlant Reviews session main view and writes it an image of the given filename and format.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
CheckIsBusy ( ) : bool | ||
GetDesignFiles ( ) : List |
||
GetMdbDatabase ( ) : |
||
GetMdbPath ( ) : string | ||
GetNextAnnotation ( ) : int | ||
GetNextTag ( ) : int | ||
GetProcessId ( ) : |
||
GetSessionName ( ) : string | ||
GetVersion ( ) : string | ||
RefreshRow ( string tableName, object id ) : |
||
RefreshTable ( string tableName ) : |
||
SetNextAnnotation ( int annoId ) : void | ||
SetNextTag ( int tagId ) : void | ||
UpdateRow ( string tableName, object id ) : void | ||
UpdateTable ( string tableName ) : void |
public Annotations_Add ( List |
||
annotations | List |
List of SprAnnotation to be added to the annotation table. |
return | void |
public Annotations_Add ( |
||
anno | SprAnnotation containing the annotation information. | |
return | void |
public Annotations_Delete ( string type ) : void | ||
type | string | The string type of the annotation to delete. |
return | void |
public Annotations_DeleteType ( string type ) : void | ||
type | string | The string type of the annotations to delete. |
return | void |
public Annotations_EditLeader ( |
||
annotation | ||
return | void |
public Annotations_EditLeader ( int annoNo ) : void | ||
annoNo | int | |
return | void |
public Annotations_Get ( int annoId ) : |
||
annoId | int | Unique Id of the annotation to retrieve. |
return |
public Annotations_Place ( |
||
anno | Reference SprAnnotation containing the annotation information. | |
return | void |
public Annotations_Select ( string type ) : |
||
type | string | The string type of the annotation to be selected. |
return |
public Annotations_Update ( |
||
anno | SprAnnotation containing the annotation information. | |
return | bool |
public Annotations_Update ( object stateInfo ) : void | ||
stateInfo | object | SprAnnotation passed as an object per WaitCallback requirements. |
return | void |
public Export ( string vueName ) : void | ||
vueName | string | The full path of the vue file to be exported. |
return | void |
public ExportPdf ( int quality, string path ) : void | ||
quality | int | |
path | string | |
return | void |
public GetObjectData ( int objectId ) : SprObject | ||
objectId | int | The ObjectId that is looked up inside SmartPlant Review. |
return | SprObject |
public GetObjectData ( string prompt ) : SprObject | ||
prompt | string | The prompt string to be displayed in the application text window. |
return | SprObject |
public GetObjectData ( string prompt, bool singleObjects ) : SprObject | ||
prompt | string | The prompt string to be displayed in the application text window. |
singleObjects | bool | Indicates if SmartPlant Review locates grouped objects individually. |
return | SprObject |
public GetObjectId ( string prompt ) : int | ||
prompt | string | The prompt string to be displayed in the application text window. |
return | int |
public GetObjectId ( string prompt, SprPoint3D &refPoint ) : int | ||
prompt | string | The prompt string to be displayed in the application text window. |
refPoint | SprPoint3D | The returned reference point representing the selected point. |
return | int |
public GetPoint ( string prompt ) : SprPoint3D | ||
prompt | string | The prompt string to be displayed in the application text window. |
return | SprPoint3D |
public GetPoint ( string prompt, SprPoint3D targetPoint ) : SprPoint3D | ||
prompt | string | The prompt string to be displayed in the application text window. |
targetPoint | SprPoint3D | The point used to calculate depth. |
return | SprPoint3D |
public GlobalOptionsGet ( int option ) : double | ||
option | int | The integer value of the option to retrieve. |
return | double |
public GlobalOptionsSet ( int option, int value ) : void | ||
option | int | The integer of the global option to set. |
value | int | The integer value to set the global option to. |
return | void |
public HighlightObject ( int objectId ) : void | ||
objectId | int | Object Id of the of the entity to be highlighted. |
return | void |
public HighlightObject ( int objectId, Color color, int width = 2 ) : void | ||
objectId | int | |
color | Color | |
width | int | |
return | void |
public ObjectDataSearch ( string criteria ) : List |
||
criteria | string | The search criteria used to find matching objects. |
return | List |
public Open ( string fileName ) : void | ||
fileName | string | The full path of the session to load. |
return | void |
public SetCenterPoint ( SprPoint3D centerPoint ) : void | ||
centerPoint | SprPoint3D | |
return | void |
public SetCenterPoint ( double east, double north, double elevation ) : void | ||
east | double | |
north | double | |
elevation | double | |
return | void |
public SetEyePoint ( SprPoint3D eyePoint ) : void | ||
eyePoint | SprPoint3D | |
return | void |
public SetEyePoint ( double east, double north, double elevation ) : void | ||
east | double | |
north | double | |
elevation | double | |
return | void |
public TakeSnapshot ( string imageName, string outputDir, |
||
imageName | string | Name of the final output image. |
outputDir | string | Directory to save the snapshot to. |
snapShot | SprSnapshot containing the snapshot settings. | |
return | Image |