Talk:Repository.BlockSim.UpdateRBDBlockData/Notes

From ReliaWiki
Revision as of 23:12, 3 May 2016 by Kate Racaza (talk | contribs) (Created page with '{{Template:API}}{{Template:APIBreadcrumb|.Repository}} <onlyinclude>Sends any changes made to a BlockSim block to the Synthesis repository. Returns a '''Bo…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.Repository


Sends any changes made to a BlockSim block to the Synthesis repository. Returns a Boolean value; when true, indicates a successful save.

Syntax

.BlockSim.UpdateRBDBlockData(data)

Parameters

data

Required. The RBDBlockData object to be updated.


Example

xxx

VB.NET
 
 'Connect to a Synthesis repository. 
  Dim MyRepository As New Repository
  MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10")

 'Connect to project #1 in the repository. 
  MyRepository.Project.SetCurrentProject (1)
   
 'Get the data for all blocks in diagram #21. 
  Dim BlockData() As RBDBlockData
  BlockData = MyRepository.BlockSim.GetAllRBDBlocksData(21)

 'Change the name of the first block in the array.  
  BlockData(0).DisplayName = "New Block Name"
  
 'Send the change to the Synthesis repository.  
  MyRepository.BlockSim.UpdateRBDBlockData(BlockData(0))