Type: IMyEquipmentTypeManager
Summary:
Remarks:
NewFromShape(System.String,Sym3.ITypeMyEquipment)
Summary:
Parameters:
Returns:
new type
NewFromStandardType(System.String,Sym3.ITypeMyEquipment)
Summary:
Parameters:
Returns:
new type
NewFromInstance(Sym3.IBaseEquipment)
Summary:
Parameters:
Returns:
new type
New
Summary:
Returns:
Returns the newly created object. Will be null if an error occured.
New(System.String)
Summary:
Parameters:
Returns:
Returns the newly created object. Will be null if an error occured.
ImportCSV(System.String,System.Char)
Summary:
Parameters:
ExportCSV(System.String,System.Char)
Summary:
Parameters:
Example:
This example shows how to export a CSV and TSV
// Export in CSV (Comma Separated Values)
Project.Texts.ExportCSV("C:\\Temp\\Test.csv", ',')
// Export in TSV (Tab Separated Values)
Project.Texts.ExportCSV("C:\\Temp\\Test.tsv", '\t')
Add(IBaseObject)
Summary:
Parameters:
AddMultiple(System.Collections.ICollection)
Summary:
Parameters:
Remove(IBaseObject)
Summary:
Parameters:
RemoveSilentlyBecauseSomethingIsNotRight(IBaseObject)
Summary:
Parameters:
RemoveMultiple(System.Collections.ICollection)
Summary:
Parameters:
RemoveAll
Summary:
GetById(System.Guid)
Summary:
Parameters:
Returns:
Returns the object. Will return null if the object is not found.
Example:
This example shows how to find an object by its id. This example is using the 'GetById' method but also shows how to use indexer operator.
id = ... // lets say we have an Id
myManager = Project.Colors;
myColor = myManager.GetById(id);
// using the indexer. It is shorter but executes the same code behind the scene.
myColor = myManager[id];
Get(System.String)
Summary:
Parameters:
Returns:
Returns the object. Will return null if the object is not found.
Example:
This example shows how to find an object by its name. This example is using the 'Get' method but also shows how to use indexer operator.
myManager = Project.Colors;
myColor = myManager.Get("Sym3 Red");
// using the indexer. It is shorter but executes the same code behind the scene.
myColor = myManager["Sym3 Red"];
CopyToClipboard
Summary:
ToCSVString(System.Char)
Summary:
Returns:
A string that contains properties of the object in a CSV format.
GetUserPropertyInstance(System.String)
Summary:
Parameters:
Returns:
Returns the user property instance object. If not found, the methods returns null.
Example:
This example shows how to set the value of a user property by using this method
cc1 = Project.Equipment.Get("CC1");
// get the value of a user property using the method
userPropertyInstance = cc1.GetUserPropertyInstance("UserProperty1");
if(userPropertyInstance != null) {
userPropertyInstance.Value = 3;
}
IsUserProperty(System.String)
Summary:
Parameters:
Returns:
Returns true if the object contains a user property with the name you specified in parameter.
GetUserPropertyValue(System.String)
Summary:
Parameters:
Returns:
Returns null if user property is not found. Otherwise returns the value of the user property.
Example:
This example shows how to get the value of a user property using this method and also by using the indexer
cc1 = Project.Equipment.Get("CC1");
// get the value of a user property using the method
val = cc1.GetUserPropertyValue("UserProperty1");
// get the value of a user property using the indexer operator
val = cc1["UserProperty1"];
SetUserPropertyValue(System.String,System.Object)
Summary:
Parameters:
Example:
This example shows how to set the value of a user property using this method and also by using the indexer
cc1 = Project.Equipment.Get("CC1");
// set the value of a user property using the method
cc1.SetUserPropertyValue("UserProperty1", 3);
// set the value of a user property using the indexer operator
cc1["UserProperty1"] = 3;
ToXmlString
Summary:
Returns:
the string that contains xml version of the object
FromXmlString(System.String)
Summary:
Parameters:
ManagedObjectType
Summary:
Type:
System.Type
Access:
Read
Objects
Summary:
Type:
System.Collections.ObjectModel.ObservableCollection`1[BCS.IBaseObject]
Access:
Read
Example:
This example shows how to loop through every object of the manager
count = Project.Colors.Count;
for(i=0; iCount
Summary:
Type:
System.Int32
Access:
Read
Id
Summary:
Type:
System.Guid
Access:
Read
Example:
This example shows how to get the id of an object in a string format. The following script will output a string like 'b3122ae0-dcf7-43b6-b17c-5381afaca5cb'
strid = Project.Colors.Get("myColor").Id.ToString();
print(strid)
Name
Summary:
Type:
System.String
Access:
Read and Write
Example:
This example shows how to get and set the name of an object.
// get the color name
colorname = Project.Colors.Get("myColor").Name;
// set the color name
Project.Colors.Get("myColor").Name = "myNewName";
TypeName
Summary:
Type:
System.String
Access:
Read
DisplayTypeName
Summary:
Type:
System.String
Access:
Read
BaseProject
UserPropertyInstances
Summary:
Type:
System.Collections.ObjectModel.ObservableCollection`1[BCS.IUserPropertyInstance]
Access:
Read