Type: BCS.Sym3.ISym3DesignerEditor
Sym3 Designer Editor
Properties
ActiveView3DHostControl
- Description: gets the active IView3DHostControl. It will return the user control that contains the view3d panel, the toolbar and status bar (if available)
- Type: IView3DHostControl
- Access: Read
AlwaysDropProductInMiddle
- Description: Options: if true: in 3D view, always drop product in middle of transporter otherwsie will apply a lateral offset to the product.
- Type: Boolean
- Access: Read and Write
ApplicationOpenFilter
- Description: Gets the file open filter
- Type: String
- Access: Read
ApplicationSaveFilter
- Description: Gets the file save filter
- Type: String
- Access: Read
EditMode3D
- Description: Enables/disables the 3d edit mode. Same as ActionEnable3DEditMode method.
- Type: Boolean
- Access: Read and Write
IsInEquipmentDragMode
- Description: Flag for the selected equipment is/are being draged
- Type: Boolean
- Access: Read and Write
Logger
- Description: Gets the logger
- Type: ILogger
- Access: Read
PanelProjectExplorer
- Description: Returns the object responsible for the project explorer panel.
- Type: IPanelProjectExplorer
- Access: Read
ReplayRecordingEnabled
- Description: Check if recording is enabled
- Type: Boolean
- Access: Read
Version
- Description: Get editor build version
- Type: IVersionInfo
- Access: Read
Methods
ActionAddUserMessage(BCS.LogType,System.String)
Displayes user message
- Parameters:
- type:
- text:
ActionBrowseOpcServer
Opens the OPC Server browser window
ActionBTSImport
Imports BTS using Sym3 extraction file
ActionCloseAllView3D
Closes all view 3d
ActionCloseProject
Closes current project
ActionCloseProject(System.Boolean)
Closes current project with confirmation to save or not
ActionDataSourceIOExport(System.String)
- Parameters:
- fileName:
ActionDataSourceIOImport(System.String)
- Parameters:
- fileName:
ActionDeleteAllDeviceIOs
Deletes all existing Device IOs
ActionDeleteAllTags
Deletes all existing tags
ActionDeleteDataSourceIOs(System.Collections.ICollection)
- Parameters:
- items:
ActionDeleteDeviceIOs(System.Collections.ICollection)
- Parameters:
- items:
ActionDeviceIOConfigurationExport(System.String)
- Parameters:
- fileName:
ActionDeviceIOConfigurationImport(System.String)
- Parameters:
- fileName:
ActionDevicePingIP(BCS.Sym3.IDevice)
- Parameters:
- plc:
ActionDevicePingMessage(BCS.Sym3.IDevice)
- Parameters:
- plc:
ActionEditProperties(System.Collections.Generic.List{BCS.IBaseObject}@,System.Boolean)
Edit properties of a list of object. That will display their properties in the PropertyEditor
- Parameters:
- items:
- forceOpen:
ActionEditProperties(System.Object)
Edit properties of an object. That will display its properties in the PropertyEditor
- Parameters:
- item:
ActionEnable3DEditMode(System.Boolean)
Enables/disables the 3d edit mode
- Parameters:
- value:
ActionEnable3DRendering(System.Boolean)
Enables/disables the 3d rendering
- Parameters:
- value:
ActionExecuteMacroFile(System.String)
Execute the macro contained in a file
- Parameters:
- Name: Macro file to execute
ActionExitApplication
Exits application
ActionExportEquipmentProperties(System.String)
- Parameters:
- typeName:
ActionExportProperties(System.String)
- Parameters:
- typeName:
ActionExportPropertiesDataSources
Exports datasource properties
ActionExportPropertiesTags
Exports tag properties
ActionExportTags
Exports tags
ActionImportModel(System.String)
Imports a model
- Parameters:
- fileType: type to file to import. Values can be “Virtual Airport Model” or “CAD Template”
ActionImportPropertiesDataSources
Imports datasource properties
ActionImportPropertiesTags
Imports tag properties
ActionImportSchedules
Import product schedules. Will ask for excel file.
ActionImportSchedules(System.String)
Import product schedules
- Parameters:
- fileName: Excel file to import
- Returns:
- Number of product schedules imported.
ActionImportTags
Imports tags
ActionLocateEquipment(System.Collections.Generic.List{BCS.IBaseObject}@)
Locate equipment in 3D view
- Parameters:
- items:
ActionLocateObjectInProjectExplorer(System.Collections.Generic.List{BCS.IBaseObject})
- Parameters:
- objects:
ActionManageTags
Opems/Closes tag manager
ActionMergeProject(System.Boolean)
Open a second project to merge with
- Parameters:
- showMergeWindow: Show the conflicts window
ActionMergeProject(System.String,System.String,System.Boolean)
Merges to a project
- Parameters:
- fileA: LEFT file for merge
- fileB: RIGHT file for merge
- showMergeWindow: Show conflict resolution window
ActionNewComponent3D(System.String)
Creates a new equipment
- Parameters:
- typeName: type of the equipment to create
ActionNewDatabaseDevice
Actions for creating a new database device.
ActionNewDataSource
Creates a new datasource
ActionNewDevice
Actions for creating a new device.
ActionNewMessage
Actions for creating a new message
ActionNewProject
Creates a new project
ActionNewProject(BCS.DistanceUnit)
Creates a new project with a specified unit
- Example:
This example shows you how to create a project with a specified unit
Editor.ActionNewProject(BCS.DistanceUnit.Metrics);
ActionNewProject(BCS.DistanceUnit,System.Boolean)
Creates a new project with a specified unit and optionally enable version control
- Example:
This example shows you how to create a project with a specified unit and enable version control
Editor.ActionNewProject(BCS.DistanceUnit.Metrics, true);
ActionNewSystemProperty
Actions for creating system property.
ActionNewUDT
Actions for creating udt.
ActionNewView3D
Create a new 3d view
ActionOpenMessageManager
Actions for opening the message manager
ActionOpenProject
Opens an existing project
ActionOpenProject(System.String)
Opens a project
- Parameters:
- fileName: project to open
ActionOpenProjectExplorer(System.Boolean)
- Parameters:
- open:
ActionOpenPropertyPanel(System.Boolean)
- Parameters:
- open:
ActionPauseResumeSimulation
Pauses/resumes simulation
ActionRealTime
Sets simulation at real time.
ActionRedoTo(System.Int32)
Redoes all changes up to and including the change with the given id
- Parameters:
- id: Id of the change in the the undo buffer to stop at
ActionRunThrough
Simulation run through
ActionSaveProject
Saves current project
ActionSaveProjectAs(System.String)
Saves current project as
- Parameters:
- fileName: If fileName is null, an dialog will ask user to choose the file name to save to.
ActionStartSimulation
Starts the simulation
ActionStartSimulationAndRecord
Starts the simulation and record it. Use Replay application to replay the recorded simulation.
ActionStartSimulationAndRecordAt
Starts the simulation at a specified time and record it. Use Replay application to replay the recorded simulation.
ActionStartSimulationAt
Starts the simulation at a specified time
ActionStartStopSimulation
Toggles the simulation state (started or stopped)
ActionStopSimulation
Stops simulation
ActionTestDatabaseConnection(BCS.Sym3.IDatabase)
- Parameters:
- databaseDevice:
ActionTimeWarp(System.Double)
Sets simulation time warp
- Parameters:
- value: Simulation time warp
ActionUndoTo(System.Int32)
Undoes all changes down to and including the change with the given id
- Parameters:
- id: Id of the change in the the undo buffer to stop at
ActionUpdateMyEquipmentExistingIntances(System.String)
Updates and show progress for existing MyEquipment Instances
- Parameters:
- value:
ActionValidateDeviceIOConfig(System.Collections.Generic.List{System.String}@,System.Collections.Generic.List{System.String}@)
- Parameters:
- errors:
ActionValidateTagConfig(System.Collections.Generic.List{System.String}@)
- Parameters:
- errors:
GetGitCommitMessage(System.String@)
Opens Git Commit Message window and returns the commit message
- Parameters:
- initialMessage: Optional initial message
LogDebug(System.String)
Log a debug message in MessageViewer
- Parameters:
- text: Text to log
- Example:
How to log a debug in Message Viewer
LogError(System.String)
Log an error message in MessageViewer
- Parameters:
- text: Text to log
- Example:
How to log an error in Message Viewer
LogInfo(System.String)
Log an info message in MessageViewer
- Parameters:
- text: Text to log
- Example:
How to log an info in Message Viewer
LogWarn(System.String)
Log a warning message in MessageViewer
- Parameters:
- text: Text to log
- Example:
How to log a warning in Message Viewer
TakeScreenshot(BCS.Sym3.IBaseEquipment,System.String)
Take a screenshot of an equipment in the active view and save it in specified PNG file on disk. If equipment is outside the view (not visible), the screenshot will be blank. If equipment is partially outside the view (partially visible), the screenshot will be partially blank.
- Parameters:
- equipment: The equipment to take a screenshot
- fullPathImageFilePng: the full path of the PNG image to save the screenshot
- Returns:
- true is success
- Example:
This example shows how to take a screenshot of 'Conveyor1' and save the image in tmp folder:
var cc1 = Project.Equipment.Get("Conveyor1");
Editor.TakeScreenshot(cc1, "c:\\tmp\\cc1.png");
UndoKeyDownHandler(System.Object,System.Windows.Input.KeyEventArgs)
Undo key event handler. To enable undo/redo, attach this to the key down event handler of the desired window.