本文整理汇总了C#中FamilySymbol.SetEntity方法的典型用法代码示例。如果您正苦于以下问题:C# FamilySymbol.SetEntity方法的具体用法?C# FamilySymbol.SetEntity怎么用?C# FamilySymbol.SetEntity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FamilySymbol
的用法示例。
在下文中一共展示了FamilySymbol.SetEntity方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StoreData
public void StoreData(FamilySymbol titleblock)
{
Schema schema = Schema.Lookup(new Guid("1a68d420-96dd-44aa-a1de-000774a6104b"));
Entity entity = new Entity(schema);
Field field_titleblockName = schema.GetField("titleblockName");
Field field_cellSizeDistance_X = schema.GetField("cellSizeDistance_X");
Field field_lowerGap_X = schema.GetField("lowerGap_X");
Field field_additionalEdge_X = schema.GetField("additionalEdge_X");
Field field_fineTune_X = schema.GetField("fineTune_X");
Field field_cellSizeDistance_Y = schema.GetField("cellSizeDistance_Y");
Field field_lowerGap_Y = schema.GetField("lowerGap_Y");
Field field_additionalEdge_Y = schema.GetField("additionalEdge_Y");
Field field_fineTune_Y = schema.GetField("fineTune_Y");
Field field_cellGrid_Length = schema.GetField("cellGrid_Length");
Field field_cellGrid_Height = schema.GetField("cellGrid_Height");
entity.Set<string>(field_titleblockName, titleblockName);
entity.Set<string>(field_cellSizeDistance_X, cellSizeDistance_X, DisplayUnitType.DUT_DECIMAL_INCHES);
entity.Set<string>(field_lowerGap_X, lowerGap_X, DisplayUnitType.DUT_DECIMAL_INCHES);
entity.Set<string>(field_additionalEdge_X, additionalEdge_X, DisplayUnitType.DUT_DECIMAL_INCHES);
entity.Set<string>(field_fineTune_X, fineTune_X, DisplayUnitType.DUT_DECIMAL_INCHES);
entity.Set<string>(field_cellSizeDistance_Y, cellSizeDistance_Y, DisplayUnitType.DUT_DECIMAL_INCHES);
entity.Set<string>(field_lowerGap_Y, lowerGap_Y, DisplayUnitType.DUT_DECIMAL_INCHES);
entity.Set<string>(field_additionalEdge_Y, additionalEdge_Y, DisplayUnitType.DUT_DECIMAL_INCHES);
entity.Set<string>(field_fineTune_Y, fineTune_Y, DisplayUnitType.DUT_DECIMAL_INCHES);
entity.Set<string>(field_cellGrid_Length, cellGrid_Length);
entity.Set<string>(field_cellGrid_Height, cellGrid_Height);
titleblock.SetEntity(entity); // store the entity in the element
}