Type: IBaseProject
Summary:
Remarks:
AddManager(IBaseManager)
Summary:
Parameters:
Open(System.String,ObjectReadCallback,System.Collections.Generic.List{System.String}@)
Summary:
Parameters:
Close
Summary:
Save
Summary:
SaveAs(System.String)
Summary:
Parameters:
Get(System.String)
Summary:
Parameters:
Returns:
Found object. Will be null if not found
GetObjectById(System.Guid)
Summary:
Parameters:
Returns:
Found object. Will be null if not found
RemoveObject(IBaseObject)
Summary:
Parameters:
Returns:
true if success
RemoveObjects(System.Collections.IList)
Summary:
Parameters:
Returns:
true if success
GetManagerByObjectTypeName(System.String)
Summary:
Parameters:
GetObjectManager(IBaseObject)
Summary:
Parameters:
PasteFromClipboard
Summary:
CopyToClipboard(System.Collections.ICollection)
Summary:
Parameters:
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:
Product
DistanceUnit
Summary:
// get project to use foot
if(Project.DistanceUnit == BCS.DistanceUnit.Imperial)
print("Imperial units")
if(Project.DistanceUnit == BCS.DistanceUnit.Metrics)
print("Metrics units")
Type:
Access:
Read
Managers
Summary:
Type:
System.Collections.IDictionary
Access:
Read
ProjectFileVersion
Summary:
Type:
System.Int32
Access:
Read
CurrentProjectVersion
Summary:
Type:
System.Int32
Access:
Read
ApplicationSavedVersion
Summary:
Type:
System.String
Access:
Read
ModificationState
Summary:
Type:
Access:
Read and Write
UserProperties
SelectionService
Version
Summary:
Type:
System.String
Access:
Read and Write
Author
Summary:
Type:
System.String
Access:
Read and Write
Description
Summary:
Type:
System.String
Access:
Read and Write
ProjectGuid
Summary:
Type:
System.String
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