C# Class CyPhyMetaLink.CyPhyMetaLinkAddon

Show file Open project: metamorph-inc/meta-core

Public Properties

Property Type Description
IdCounter int
SearchPathStr String
TestMode bool
bridgeClient CyPhyMetaLinkBridgeClient.MetaLinkBridgeClient
syncedComponents SyncedComponentData>.Dictionary

Protected Properties

Property Type Description
designIdToCadAssemblyXml string>.Dictionary
interactiveMode bool

Private Properties

Property Type Description
AddComponent void
AddConnection void
AddSearchPathToEnvironment void
CloseConnection bool
ConnectionClosed void
CopyResources void
CreateComponentEditMessage edu.vanderbilt.isis.meta.Edit
CreateOrUpdateConnector void
ExeStartupFailed void
GMERegister void
GMEUnRegister void
GenerateCADAssemblyXml void
GetBrowser object
GetCadModelPath string
GetProjectDir string
GetStartupParams string
GetSyncedCompDataByInstanceId SyncedComponentData
HighlightInTree void
HighlightInTree void
ModifyCADParameter void
PostMessage IntPtr
PrepareMetaLinkData void
ProcessAVMComponentCreate void
ProcessAVMComponentUpdate void
ProcessAnalysisPointMessage void
ProcessConnect void
ProcessEditDiscard void
ProcessEditInsert void
ProcessEditMessage void
ProcessEditSelect void
ProcessInsertComponentConnector void
ProcessQueuedEditMessages void
ProcessResync void
RefreshManufacturingResources void
RestartAssemblySync void
RestartAssemblySyncAtEndOfTransaction void
SaveCadAssemblyXml void
SendCadAssemblyXml void
SendCadAssemblyXml void
SendComponentList void
SendDisinterest bool
SendInterest bool
SetSelected void
ShowStartupDialog void
StartAssemblyExe void
StartComponentEdit void
StartComponentEditAction void
VerifyAssembly bool
VerifyCADResources void

Public Methods

Method Description
AddComponentProtoBufMsg ( ISIS.GME.Dsml.CyPhyML.Interfaces componentRef ) : edu.vanderbilt.isis.meta.Edit
CallCyPhy2CADWithTransaction ( MgaProject project, MgaFCO toplevelAssembly, int param ) : void
CyPhyMetaLinkAddon ( ) : System
EditMessageReceived ( edu.vanderbilt.isis.meta message ) : void
Enable ( bool newval ) : void
EstablishConnection ( ) : bool
GlobalEvent ( globalevent_enum @event ) : void
Initialize ( MgaProject project ) : void
Invoke ( MgaProject Project, MgaFCOs selectedobjs, int param ) : void
InvokeEx ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, int param ) : void
ObjectEvent ( MgaObject subject, uint eventMask, object param ) : void

Called when an FCO or folder changes

ObjectsInvokeEx ( MgaProject Project, MgaObject currentobj, MgaObjects selectedobjs, int param ) : void
StartCreoEmpyMode ( ) : void
StartEditingComponent ( ISIS.GME.Dsml.CyPhyML.Interfaces component, MgaFCO cadModel, bool createNewComponent ) : void
UpdateComponentNameProtoBufMsg ( ISIS.GME.Dsml.CyPhyML.Interfaces componentRef, string newName ) : edu.vanderbilt.isis.meta.Edit
get_ComponentParameter ( string Name ) : object
set_ComponentParameter ( string Name, object pVal ) : void

Protected Methods

Method Description
CreateAddConstraintProtoBufMsg ( string in_ComponentInstanceID, CyPhy2CAD_CSharp.DataRep.Datum>.List constraintPairs ) : edu.vanderbilt.isis.meta.Edit
ModifyCADParameterProtoBufMsg ( string in_ComponentInstanceID, CADParameter in_CADParameter ) : edu.vanderbilt.isis.meta.Edit

Private Methods

Method Description
AddComponent ( MgaObject mgaComponentRef ) : void

A component has been added.

AddConnection ( MgaObject subject ) : void

A connection has been added.

AddSearchPathToEnvironment ( ISIS.GME.Dsml.CyPhyML.Interfaces component, edu.vanderbilt.isis.meta env ) : void
CloseConnection ( ) : bool
ConnectionClosed ( Exception e ) : void
CopyResources ( string cadResourcesAbsPath, XmlDocument doc, XmlNamespaceManager manager, List notcopied, bool update ) : void

Copy the resources to the directory of the created/updated component

CreateComponentEditMessage ( string instanceId, ISIS.GME.Dsml.CyPhyML.Interfaces component, ISIS.GME.Dsml.CyPhyML.Interfaces cadModel ) : edu.vanderbilt.isis.meta.Edit
CreateOrUpdateConnector ( ISIS.GME.Dsml.CyPhyML.Interfaces component, List datumList, List datumNames, List datumAligns, ISIS.GME.Dsml.CyPhyML.Interfaces connector = null, String connectorName = null ) : void

Create a new or update an existing connector

ExeStartupFailed ( ) : void
GMERegister ( Type t ) : void
GMEUnRegister ( Type t ) : void
GenerateCADAssemblyXml ( MgaProject project, MgaFCO currentobj, int param ) : void
GetBrowser ( ) : object
GetCadModelPath ( ISIS.GME.Dsml.CyPhyML.Interfaces component ) : string
GetProjectDir ( ) : string
GetStartupParams ( string assemblyGUID ) : string
GetSyncedCompDataByInstanceId ( string instanceid ) : SyncedComponentData
HighlightInTree ( IMgaObject item, int highlight ) : void
HighlightInTree ( ISIS item, int highlight ) : void
ModifyCADParameter ( ISIS.GME.Dsml.CyPhyML.Interfaces cyphycadparam ) : void

A parameter has been modified

PostMessage ( IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam ) : IntPtr
PrepareMetaLinkData ( CyPhy2CAD_CSharp data, ISIS.GME.Dsml.CyPhyML.Interfaces assembly, String prefix ) : void
ProcessAVMComponentCreate ( string component_xml, string instanceId ) : void

Create a new component

ProcessAVMComponentUpdate ( string componentId, string component_xml ) : void

Update an existing component

ProcessAnalysisPointMessage ( string avmid, edu.vanderbilt.isis.meta action ) : void

Create analysis point(s)

ProcessConnect ( string assemblyguid, string connectorguid1, string comprefguid1, string connectorguid2, string comprefguid2 ) : void

Connect 2 components

ProcessEditDiscard ( string assemblyId, edu.vanderbilt.isis.meta action ) : void

Remove a component from a design

ProcessEditInsert ( string componentAssemblyGuid, edu.vanderbilt.isis.meta action ) : void

Add AVM component to design

ProcessEditMessage ( edu.vanderbilt.isis.meta message ) : void

The main dispatch handler for incoming messages

ProcessEditSelect ( string assemblyId, edu.vanderbilt.isis.meta action ) : void

Select a component within a design

ProcessInsertComponentConnector ( string avmid, edu.vanderbilt.isis.meta action ) : void

Add a new AVM component to an existing assembly

ProcessQueuedEditMessages ( ) : void
ProcessResync ( string id ) : void

Resync: re-send the whole assembly information again

RefreshManufacturingResources ( ISIS.GME.Dsml.CyPhyML.Interfaces component, string path ) : void
RestartAssemblySync ( ) : void
RestartAssemblySyncAtEndOfTransaction ( ISIS.GME.Dsml.CyPhyML.Interfaces design ) : void
SaveCadAssemblyXml ( string xml, string assemblyGuid ) : void
SendCadAssemblyXml ( string instanceId, string assemblyGuid, bool clear ) : void
SendCadAssemblyXml ( string instanceId, string xml, string assemblyGuid, bool clear ) : void
SendComponentList ( string instanceId ) : void
SendDisinterest ( bool removeInterest ) : bool
SendInterest ( Action noticeaction ) : bool
SetSelected ( IMgaFCO fco, bool selected ) : void
ShowStartupDialog ( bool show ) : void
StartAssemblyExe ( CreoOpenMode mode, string guid, bool isComponentAssembly, string exeparams, string workingDir = null ) : void
StartComponentEdit ( string avmid, bool transaction = true ) : void
StartComponentEditAction ( edu.vanderbilt.isis.meta message ) : void
VerifyAssembly ( ISIS.GME.Dsml.CyPhyML.Interfaces assembly, List errorList ) : bool
VerifyCADResources ( ISIS.GME.Dsml.CyPhyML.Interfaces component, List errorList ) : void

Method Details

AddComponentProtoBufMsg() public method

public AddComponentProtoBufMsg ( ISIS.GME.Dsml.CyPhyML.Interfaces componentRef ) : edu.vanderbilt.isis.meta.Edit
componentRef ISIS.GME.Dsml.CyPhyML.Interfaces
return edu.vanderbilt.isis.meta.Edit

CallCyPhy2CADWithTransaction() public method

public CallCyPhy2CADWithTransaction ( MgaProject project, MgaFCO toplevelAssembly, int param ) : void
project MgaProject
toplevelAssembly MgaFCO
param int
return void

CreateAddConstraintProtoBufMsg() protected method

protected CreateAddConstraintProtoBufMsg ( string in_ComponentInstanceID, CyPhy2CAD_CSharp.DataRep.Datum>.List constraintPairs ) : edu.vanderbilt.isis.meta.Edit
in_ComponentInstanceID string
constraintPairs CyPhy2CAD_CSharp.DataRep.Datum>.List
return edu.vanderbilt.isis.meta.Edit

CyPhyMetaLinkAddon() public method

public CyPhyMetaLinkAddon ( ) : System
return System

EditMessageReceived() public method

public EditMessageReceived ( edu.vanderbilt.isis.meta message ) : void
message edu.vanderbilt.isis.meta
return void

Enable() public method

public Enable ( bool newval ) : void
newval bool
return void

EstablishConnection() public method

public EstablishConnection ( ) : bool
return bool

GlobalEvent() public method

public GlobalEvent ( globalevent_enum @event ) : void
@event globalevent_enum
return void

Initialize() public method

public Initialize ( MgaProject project ) : void
project MgaProject
return void

Invoke() public method

public Invoke ( MgaProject Project, MgaFCOs selectedobjs, int param ) : void
Project MgaProject
selectedobjs MgaFCOs
param int
return void

InvokeEx() public method

public InvokeEx ( MgaProject project, MgaFCO currentobj, MgaFCOs selectedobjs, int param ) : void
project MgaProject
currentobj MgaFCO
selectedobjs MgaFCOs
param int
return void

ModifyCADParameterProtoBufMsg() protected method

protected ModifyCADParameterProtoBufMsg ( string in_ComponentInstanceID, CADParameter in_CADParameter ) : edu.vanderbilt.isis.meta.Edit
in_ComponentInstanceID string
in_CADParameter CADParameter
return edu.vanderbilt.isis.meta.Edit

ObjectEvent() public method

Called when an FCO or folder changes
public ObjectEvent ( MgaObject subject, uint eventMask, object param ) : void
subject MgaObject the object the event(s) happened to
eventMask uint objectevent_enum values ORed together
param object extra information provided for cetertain event types
return void

ObjectsInvokeEx() public method

public ObjectsInvokeEx ( MgaProject Project, MgaObject currentobj, MgaObjects selectedobjs, int param ) : void
Project MgaProject
currentobj MgaObject
selectedobjs MgaObjects
param int
return void

StartCreoEmpyMode() public method

public StartCreoEmpyMode ( ) : void
return void

StartEditingComponent() public method

public StartEditingComponent ( ISIS.GME.Dsml.CyPhyML.Interfaces component, MgaFCO cadModel, bool createNewComponent ) : void
component ISIS.GME.Dsml.CyPhyML.Interfaces
cadModel MgaFCO
createNewComponent bool
return void

UpdateComponentNameProtoBufMsg() public method

public UpdateComponentNameProtoBufMsg ( ISIS.GME.Dsml.CyPhyML.Interfaces componentRef, string newName ) : edu.vanderbilt.isis.meta.Edit
componentRef ISIS.GME.Dsml.CyPhyML.Interfaces
newName string
return edu.vanderbilt.isis.meta.Edit

get_ComponentParameter() public method

public get_ComponentParameter ( string Name ) : object
Name string
return object

set_ComponentParameter() public method

public set_ComponentParameter ( string Name, object pVal ) : void
Name string
pVal object
return void

Property Details

IdCounter public static property

public static int IdCounter
return int

SearchPathStr public static property

public static String SearchPathStr
return String

TestMode public property

public bool TestMode
return bool

bridgeClient public property

public CyPhyMetaLinkBridgeClient.MetaLinkBridgeClient bridgeClient
return CyPhyMetaLinkBridgeClient.MetaLinkBridgeClient

designIdToCadAssemblyXml protected property

protected Dictionary designIdToCadAssemblyXml
return string>.Dictionary

interactiveMode protected property

protected bool interactiveMode
return bool

syncedComponents public property

public Dictionary syncedComponents
return SyncedComponentData>.Dictionary