WAPlots.AddModel

From ReliaWiki
Revision as of 23:40, 23 June 2016 by Kate Racaza (talk | contribs) (Created page with '{{Template:API}}{{Template:APIBreadcrumb|.WAPlots}} <onlyinclude>Adds a cModel object to the plot.</onlyinclude> == Syntax == '''.AddModel'…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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)