Repository.URD.AddURD: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
  {{APIComment|'Create a new URD. The following example creates a URD named "MyNewURD".}}
  {{APIComment|'Create a new URD. The following example creates a URD named "MyNewURD".}}
   {{APIPrefix|Dim}} newURD {{APIPrefix|As New}} cURD
   {{APIPrefix|Dim}} newURD {{APIPrefix|As New}} cURD
   NewURD.Name = "MyNewURD"
   NewURD.Name = {{APIString|"MyNewURD"}}
   
   
  {{APIComment|'Add the new URD to project #1. The URD will be visible in the Synthesis repository upon refresh.}}
  {{APIComment|'Add the new URD to project #1. The URD will be visible in the Synthesis repository upon refresh.}}
Line 35: Line 35:
   
   
  {{APIComment|'Create a new URD. The following example creates a URD named "MyNewURD".}}
  {{APIComment|'Create a new URD. The following example creates a URD named "MyNewURD".}}
   {{APIPrefix|Dim}} newURD {{APIPrefix|As New}} cURD ("MyNewURD")
   {{APIPrefix|Dim}} newURD {{APIPrefix|As New}} cURD ({{APIString|"MyNewURD"}})
   
   
  {{APIComment|'Add the new URD to project #1. The URD will be visible in the Synthesis repository upon refresh.}}
  {{APIComment|'Add the new URD to project #1. The URD will be visible in the Synthesis repository upon refresh.}}
   MyRepository.Project.SetCurrentProject(1)   
   MyRepository.Project.SetCurrentProject(1)   
   MyRepository.URD.AddURD(newURD)
   MyRepository.URD.AddURD(newURD)

Revision as of 21:19, 16 July 2015

Member of: SynthesisAPI10Repository

APIWiki.png


Saves a new cURD object to the Synthesis repository. Returns a Boolean value; when true, indicates that the URD now exists in the repository.

Syntax

object.URD.AddURD(urd)

where object is a variable that represents a Repository object.

Parameters

Name Description
urdborder="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse; text-align: left; cellborder"
Name Status The cURD object to be added


Example

VBA

 Dim MyRepository As New Repository
 ...'Add code to connect to a Synthesis repository. 

 'Create a new URD. The following example creates a URD named "MyNewURD". 
 Dim newURD As New cURD
 NewURD.Name = "MyNewURD"

 'Add the new URD to project #1. The URD will be visible in the Synthesis repository upon refresh. 
 MyRepository.Project.SetCurrentProject(1)   
 Call MyRepository.URD.AddURD(newURD)
VB.NET

 Dim MyRepository As New Repository
 ...'Add code to connect to a Synthesis repository. 

 'Create a new URD. The following example creates a URD named "MyNewURD". 
 Dim newURD As New cURD ("MyNewURD")

 'Add the new URD to project #1. The URD will be visible in the Synthesis repository upon refresh. 
 MyRepository.Project.SetCurrentProject(1)   
 MyRepository.URD.AddURD(newURD)