Hello there,
Today I have explored the Table classes in the API documentation. I was just wondering how to get the full list of records of each table. I would like to create a table of filtered objects and there would be a drop down selection list that includes all the available Hatches and an other one with Rendering materials. I am also interested in all tables It may be come up in the future to use the list.
Like this:
Object1 | Hatch Pattern1 | Rendering material1 | Notes1
Object2 | Hatch Pattern2 | Rendering material2 | Notes2 …etc.
clement helped me how to get all available hatch patterns in python but how to do it in c# ? There is a ToString method but refers to one object. Should I preselect all hatches in the model and organize it into a dictionary? It would be too long in time but who knows It might be possible beyond the 4x86.
I found and example from the API that probably the most suitable for my needs.
using System;
using System.Globalization;
public class Example
{
public static void Main()
{
String[] cultureNames = { "en-US", "en-GB", "fr-FR",
"hr-HR", "ja-JP" };
Decimal value = 1603.49m;
foreach (var cultureName in cultureNames) {
CultureInfo culture = new CultureInfo(cultureName);
Console.WriteLine("{0}: {1}", culture.Name,
value.ToString("C2", culture));
}
}
}
// The example displays the following output:
// en-US: $1,603.49
// en-GB: £1,603.49
// fr-FR: 1 603,49 €
// hr-HR: 1.603,49 kn
// ja-JP: ¥1,603.49