User:Kate Racaza/APIdraftspage: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
'''New Methods'''
'''New Methods'''
*[[Repository.Xfmea.GetItemInSystemHierarchy_Method]] - SYN-I-4795
*[[Repository.Xfmea.GetItemInSystemHierarchy_Method]] - SYN-I-4795
'''New Properties'''
*[[CXfmeaControl_Class]] - SYN-I-4974


'''Edits to Existing Methods'''
'''Edits to Existing Methods'''
*SYN-I-4788 (non code-breaking)
*SYN-I-4788 (not code breaking)
:*[[Repository.Model.GetAllModels]]
:*[[Repository.Model.GetAllModels]]
:*[[Repository.Model.GetAllModelsInfo]]
:*[[Repository.Model.GetAllModelsInfo]]
Line 25: Line 28:
:*[[Repository.Control.GetAllXfmeaControls]]
:*[[Repository.Control.GetAllXfmeaControls]]
:*[[Repository.Control.GetAllXfmeaControlsDictionary]]
:*[[Repository.Control.GetAllXfmeaControlsDictionary]]
*SYN-I-4864 (non-code breaking)
*SYN-I-4864 (not code breaking)
:*[[Common_Class]]
:*[[Common_Class]]


'''Edits to Existing Properties'''
'''Edits to Existing Properties'''
*SYN-I-4849 (non-code breaking)
*SYN-I-4849 (not code breaking)
:*[[CPool Class]] Restock On property
:*[[CPool Class]] Restock On property


Line 79: Line 82:


Gets or sets a value from the [[RestockOnEnum Enumeration|RestockOnEnum]] enumeration, which specifies the pool's restock property (e.g. restock as needed, restock as scheduled, etc.).
Gets or sets a value from the [[RestockOnEnum Enumeration|RestockOnEnum]] enumeration, which specifies the pool's restock property (e.g. restock as needed, restock as scheduled, etc.).
=SYN-I-4974=
Add the following properties to cXfmeaControl class:
{| {{APITable}}
|-
|UT1||Gets or sets the text in the first user-defined text field. '''String'''.
|-
|UT2||Gets or sets the text in the second user-defined text field. '''String'''.
|-
|UT3||Gets or sets the text in the third user-defined text field. '''String'''.
|-
|UT4||Gets or sets the text in the fourth user-defined text field. '''String'''.
|-
|UT5||Gets or sets the text in the fifth user-defined text field. '''String'''.

Revision as of 15:42, 25 November 2015

Summary

New Classes

New Enums

New Methods

New Properties

Edits to Existing Methods

  • SYN-I-4788 (not code breaking)
  • SYN-I-4864 (not code breaking)

Edits to Existing Properties

  • SYN-I-4849 (not code breaking)

Deprecations

  • XfmeaItem_Class - removed Nr property because it is a duplicate of the PartNr property.

SYN-I-4788

Use this template:

Gets a list of models associated with a project. Returns a cModel object array that contains the models in that project.

Syntax

.Model.GetAllModels(Filter)

Parameters

Filter

Optional. A filter that returns a particular type of model resource (e.g., global only, local and global only, etc.). Can be any ResourceFilterEnum constant. Default value = 0, which returns local models only.

Example

Edit the comment:

'Get a list of all local models in project #1.


SYN-I-4864

Remove the "VB.NET Only" parenthetical in the definition.

Then add the following example. Add note that in VBA, you'll need to instantiate the class.

 VBA

 'Set the API's language to Portuguese 
  Dim Lng As New cLanguage
  Lng.SetLanguage (Language_Portuguese)

 'The following code triggers the Synthesis repository to return an error message. 
  Dim MyRepository As New Repository
  Dim m As New cModel

  MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10")
  m = MyRepository.Model.GetModel(47)


SYN-I-4849

Update definition of RestockOn property:

Gets or sets a value from the RestockOnEnum enumeration, which specifies the pool's restock property (e.g. restock as needed, restock as scheduled, etc.).


SYN-I-4974

Add the following properties to cXfmeaControl class:

Name Description
UT1 Gets or sets the text in the first user-defined text field. String.
UT2 Gets or sets the text in the second user-defined text field. String.
UT3 Gets or sets the text in the third user-defined text field. String.
UT4 Gets or sets the text in the fourth user-defined text field. String.
UT5 Gets or sets the text in the fifth user-defined text field. String.