Talk:Repository.BlockSim.UpdateRBDBlockData/Notes: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
(published changes for 10.1.4)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Template:API}}{{Template:APIBreadcrumb|.[[Repository Class|Repository]]}}
=DRAFT=
 
 
<onlyinclude>Sends any changes made to a BlockSim block to the Synthesis repository. Returns a '''Boolean''' value; when true, indicates a successful save.</onlyinclude>
 
==Syntax==
'''.BlockSim.UpdateRBDBlockData'''(''data'')
 
===Parameters===
''data''
:Required. The [[RBDBlockData Class|RBDBlockData]] object to be updated.
 
 
==Example==
'''VBA'''
 
{{APIComment|'Connect to a Synthesis repository.}}
  {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
  MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepository1.rsr10"}})
{{APIComment|'Connect to project #1 in the repository.}}
  MyRepository.Project.SetCurrentProject (1)
   
{{APIComment|'Get the data for all blocks in diagram #21.}}
  {{APIPrefix|Dim}} BlockData() {{APIPrefix|As}} RBDBlockData
  BlockData = MyRepository.BlockSim.GetAllRBDBlocksData(21)
{{APIComment|'Change the block name and associated URD of the first block in the array.}}
  BlockData(0).DisplayName = {{APIString|"New Block Name"}}
  BlockData(0).URDID = 2
{{APIComment|'Send the changes to the Synthesis repository.}}
  {{APIPrefix|Call}} MyRepository.BlockSim.UpdateRBDBlockData(BlockData(0))
 
'''VB.NET'''
 
{{APIComment|'Connect to a Synthesis repository.}}
  {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
  MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepository1.rsr10"}})
{{APIComment|'Connect to project #1 in the repository.}}
  MyRepository.Project.SetCurrentProject (1)
   
{{APIComment|'Get the data for all blocks in diagram #21.}}
  {{APIPrefix|Dim}} BlockData() {{APIPrefix|As}} RBDBlockData
  BlockData = MyRepository.BlockSim.GetAllRBDBlocksData(21)
{{APIComment|'Change the block name and associated URD of the first block in the array.}}
  BlockData(0).DisplayName = {{APIString|"New Block Name"}}
  BlockData(0).URDID = 2
 
{{APIComment|'Send the change to the Synthesis repository.}}
  MyRepository.BlockSim.UpdateRBDBlockData(BlockData(0))

Latest revision as of 23:32, 6 September 2016

DRAFT