WAPlots.AddModel

From ReliaWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
APIWiki.png


Member of: SynthesisAPI.WAPlots


Adds a cModel object to the plot.

Syntax

.AddModel(model)

Parameters

model

Required. The cModel object that the plot will be based on.

Example

VBA

 'Declare a model object. 
  Dim model As New cModel
 'Add code to either create a new model or get an existing model from a repository. 
 ... 

 'Declare a plot object. 
  Dim plot As New WAPlots
 
 'Add the model to the plot. 
  Call plot.AddModel(model)
VB.NET

 'Declare a model object. 
  Dim model As New cModel
 'Add code to either create a new model or get an existing model from a repository. 
 ... 
 
 'Declare a plot object. 
  Dim plot As New WAPlots
 
 'Add the model to the plot. 
  plot.AddModel(model)