Пример #1
0
 public StepSyntax GetItemSyntax(StepRepresentationItem item)
 {
     if (_inlineReferences)
     {
         var parameters = new StepSyntaxList(-1, -1, item.GetParameters(this));
         return(new StepSimpleItemSyntax(item.ItemType.GetItemTypeString(), parameters));
     }
     else
     {
         return(new StepEntityInstanceReferenceSyntax(_itemMap[item]));
     }
 }
Пример #2
0
 private StepSyntax GetItemSyntax(StepRepresentationItem item, int expectedId)
 {
     if (!_itemMap.ContainsKey(item))
     {
         var parameters = new StepSyntaxList(-1, -1, item.GetParameters(this));
         var syntax     = new StepSimpleItemSyntax(item.ItemType.GetItemTypeString(), parameters);
         _itemMap.Add(item, expectedId);
         return(syntax);
     }
     else
     {
         return(GetItemSyntax(item));
     }
 }