WAPlots.AddModel: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:API}}{{Template:APIBreadcrumb|.WAPlots}} <onlyinclude>Adds a cModel object to the plot.</onlyinclude> == Syntax == '''.AddModel'…')
 
(No difference)

Latest revision as of 23:40, 23 June 2016

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)