Class CustomAttributesManagerHelper
Inheritance
CustomAttributesManagerHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class CustomAttributesManagerHelper
Methods
ApplicationLibraries(ComWrapper<ICamApiCustomAttributesManager>)
The list of libraries attached to the application.
Declaration
public static ComWrapper<ICamApiCustomAttributesLibraryList> ApplicationLibraries(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
AttributeTypesTree(ComWrapper<ICamApiCustomAttributesManager>)
The tree of attributes created from all active libraries.
Declaration
public static ComWrapper<ICamApiCustomAttributesTree> AttributeTypesTree(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
Classes(ComWrapper<ICamApiCustomAttributesManager>)
The list of classes of attributes.
Declaration
public static ComWrapper<ICamApiCustomAttributeClassList> Classes(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
CreateArrayType(ComWrapper<ICamApiCustomAttributesManager>)
Create attribute of the ICamApiCustomAttributesArray type to place it inside library.
Declaration
public static ComWrapper<ICamApiCustomAttributesArray> CreateArrayType(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
CreateAttributeType(ComWrapper<ICamApiCustomAttributesManager>, string)
Create attribute of the given ClassName class to place it inside library.
Declaration
public static ComWrapper<ICamApiCustomAttribute> CreateAttributeType(this ComWrapper<ICamApiCustomAttributesManager> mngr, string className)
Parameters
Returns
CreateBooleanType(ComWrapper<ICamApiCustomAttributesManager>)
Create attribute of the ICamApiBooleanCustomAttribute type to place it inside library.
Declaration
public static ComWrapper<ICamApiBooleanCustomAttribute> CreateBooleanType(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
CreateCategoryType(ComWrapper<ICamApiCustomAttributesManager>)
Create attribute of the ICamApiCustomAttributeCategory type to place it inside library.
Declaration
public static ComWrapper<ICamApiCustomAttributeCategory> CreateCategoryType(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
CreateFloatType(ComWrapper<ICamApiCustomAttributesManager>)
Create attribute of the ICamApiFloatCustomAttribute type to place it inside library.
Declaration
public static ComWrapper<ICamApiFloatCustomAttribute> CreateFloatType(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
CreateIntegerType(ComWrapper<ICamApiCustomAttributesManager>)
Create attribute of the ICamApiIntegerCustomAttribute type to place it inside library.
Declaration
public static ComWrapper<ICamApiIntegerCustomAttribute> CreateIntegerType(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
CreateNewLibrary(ComWrapper<ICamApiCustomAttributesManager>)
Create a new library file.
Declaration
public static ComWrapper<ICamApiCustomAttributesLibrary> CreateNewLibrary(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
CreateStringType(ComWrapper<ICamApiCustomAttributesManager>)
Create attribute of the ICamApiStringCustomAttribute type to place it inside library.
Declaration
public static ComWrapper<ICamApiStringCustomAttribute> CreateStringType(this ComWrapper<ICamApiCustomAttributesManager> mngr)
Parameters
Returns
GetAttributesForObject(ComWrapper<ICamApiCustomAttributesManager>, ICamApiObjectWithAttributes)
Get list of attributes applicable for the object.
Declaration
public static ComWrapper<ICamApiCustomAttributesTree> GetAttributesForObject(this ComWrapper<ICamApiCustomAttributesManager> mngr, ICamApiObjectWithAttributes anObject)
Parameters
Returns
LoadExistingLibrary(ComWrapper<ICamApiCustomAttributesManager>, string)
Load existing library from file.
Declaration
public static ComWrapper<ICamApiCustomAttributesLibrary> LoadExistingLibrary(this ComWrapper<ICamApiCustomAttributesManager> mngr, string libraryFileName)
Parameters
Returns
MakeCopyOfLibrary(ComWrapper<ICamApiCustomAttributesManager>, string, string)
Creates a copy of library with SourceLibraryFileName and saves it to TargetLibraryFileName.
Makes unique LibraryID for the new library and resets LibraryVersion.
Declaration
public static ComWrapper<ICamApiCustomAttributesLibrary> MakeCopyOfLibrary(this ComWrapper<ICamApiCustomAttributesManager> mngr, string sourceLibraryFileName, string targetLibraryFileName)
Parameters
Returns
SaveLibrary(ComWrapper<ICamApiCustomAttributesManager>, ICamApiCustomAttributesLibrary, string)
Save the library to file with specified name.
If the 'LibraryFileName' parameter is empty then the library will be saved to the 'Lib.FileName' file.
Returns true if success.
Declaration
public static bool SaveLibrary(this ComWrapper<ICamApiCustomAttributesManager> mngr, ICamApiCustomAttributesLibrary lib, string libraryFileName)
Parameters
Returns