Class ModelFormerHelper
Inheritance
ModelFormerHelper
Assembly: CAMAPI.DotnetHelper.dll
public static class ModelFormerHelper
Methods
Declaration
public static ComWrapper<ICamApiModelItem> AddItem(this ComWrapper<ICamApiModelFormer> modelFormerCom, string itemID, Guid itemType, string itemTypeName)
Parameters
Returns
Declaration
public static ComWrapper<ICamApiListModelItem> AddSupportedItemsSelected(this ComWrapper<ICamApiModelFormer> modelFormerCom, Guid itemType, string itemID)
Parameters
Returns
Declaration
public static void Clear(this ComWrapper<ICamApiModelFormer> modelFormerCom)
Parameters
Declaration
public static int Count(this ComWrapper<ICamApiModelFormer> modelFormerCom)
Parameters
Returns
Declaration
public static bool DeleteItem(this ComWrapper<ICamApiModelFormer> modelFormerCom, ComWrapper<ICamApiModelItem> item)
Parameters
Returns
Declaration
public static void DeleteItemById(this ComWrapper<ICamApiModelFormer> modelFormerCom, string itemID)
Parameters
Перечисление item'ов former'а как ComWrapper. Каждый wrapper диспозится автоматически
при переходе к следующей итерации или выходе из foreach — caller'у using не нужен.
Declaration
public static IEnumerable<ComWrapper<ICamApiModelItem>> EnumerateItems(this ComWrapper<ICamApiModelFormer> modelFormerCom)
Parameters
Returns
Declaration
public static bool FillItemsBySupportedItems(this ComWrapper<ICamApiModelFormer> modelFormerCom)
Parameters
Returns
Find an item by its full hierarchical name (matches ICamApiModelItem.Caption).
For JA items created from geometry the FullName is the same path accepted by
ICamApiGeomModel.FindByFullName (e.g. "Part\Part1.igs\Face6").
Declaration
public static ComWrapper<ICamApiModelItem> FindByFullName(this ComWrapper<ICamApiModelFormer> modelFormerCom, string fullName)
Parameters
Returns
Declaration
public static ComWrapper<ICamApiModelItem> FindItem(this ComWrapper<ICamApiModelFormer> modelFormerCom, string itemID)
Parameters
Returns
Declaration
public static TST3DBox GetBoundingBox(this ComWrapper<ICamApiModelFormer> modelFormerCom, TST3DMatrix lcs)
Parameters
Returns
Declaration
public static ComWrapper<ICamApiFaceList> GetFaceList(this ComWrapper<ICamApiModelFormer> modelFormerCom, TST3DMatrix lcs)
Parameters
Returns
Declaration
public static ComWrapper<ICamApiModelItem> Item(this ComWrapper<ICamApiModelFormer> modelFormerCom, int index)
Parameters
Returns
Enumerator for all items in the model former
Declaration
public static IEnumerable<ComWrapper<ICamApiModelItem>> Items(this ComWrapper<ICamApiModelFormer> modelFormerCom)
Parameters
Returns
Enumerator for all items in the model former
Declaration
public static IEnumerable<ComWrapper<T>> Items<T>(this ComWrapper<ICamApiModelFormer> modelFormerCom) where T : class
Parameters
Returns
Type Parameters
Index of the most first item in the list. In most cases it is zero, but
can sometimes be -1 if there is a default item in the list.
Declaration
public static int LowItemIndex(this ComWrapper<ICamApiModelFormer> modelFormerCom)
Parameters
Returns
Object to fill supported items by callback (FillItemsBySupportedItems will also be called)
Declaration
public static void MakeSupportedItems(this ComWrapper<ICamApiModelFormer> modelFormerCom, ComWrapper<ICamApiModelFormerMakeSupportedItems> makeSupportedItems)
Parameters
Declaration
public static ComWrapper<ICamApiModelItem> SearchInsertItem(this ComWrapper<ICamApiModelFormer> modelFormerCom, Guid itemType, string itemID)
Parameters
Returns
Model types, which can be added to the model former
Declaration
public static ComWrapper<ICamApiModelFormerSupportedItems> SupportedItems(this ComWrapper<ICamApiModelFormer> modelFormerCom)
Parameters
Returns
Index of the last item in the list (Count-1)
Declaration
public static int TopItemIndex(this ComWrapper<ICamApiModelFormer> modelFormerCom)
Parameters
Returns