Author Topic: FabricationAPI 2021 Square to Round issue  (Read 1135 times)

0 Members and 1 Guest are viewing this topic.

Offline mix_foreverTopic starter

  • Active Member
  • **
  • Posts: 8
  • Country: pl
  • Gender: Male
FabricationAPI 2021 Square to Round issue
« on: Sep 09, 2021, 12:14:33 PM »
I'm using Fabrication API 2021 with CAMduct 2021.
If Square to Round Item.Quantiy is 1, then everything is ok with the Item.Dimensions Property, but if Item.Quantity is greater than 1, then there is no Diameter on Item.Dimensions collection

Offline craigjonnson

  • Full Member
  • ***
  • Posts: 150
  • Country: au
  • Gender: Male
Re: FabricationAPI 2021 Square to Round issue
« Reply #1 on: Oct 20, 2021, 04:48:21 AM »
Cześć,

If the item is greater than one, is the field blank because the values are different? How are you reporting the value? by list or singular field?

Offline mix_foreverTopic starter

  • Active Member
  • **
  • Posts: 8
  • Country: pl
  • Gender: Male
Re: FabricationAPI 2021 Square to Round issue
« Reply #2 on: Nov 03, 2021, 15:34:40 PM »
Hi. I'm collecting dimension name and value to dictionary.

Item item;
Dictionary<string, double> ItemDimensions = new Dictionary<string, double> ();
for (int j = 0; j < item.Dimensions.Count.; j++)
           ItemDimensions.Add(item.Dimensions[j].Name, item.Dimensions[j].Value)

And if the item.Quantity = 1 in this dictionary i'll have a pair "Diameter":<some value>
in another case - i do not.