Prism
Class
Example (based on pure API calls)
Here you can find code snippits that show how the API call Prism can be used.
using RDF; // include at least engine.cs within your solution public void CreatePrism() { Int64 model = RDF.engine.CreateModel(); if (model != 0) { // // Classes // Int64 classPrism = RDF.engine.GetClassByName(model, "Prism"); // // Datatype Properties (attributes) // Int64 propertyLength = RDF.engine.GetPropertyByName(model, "length"), propertyHeight = RDF.engine.GetPropertyByName(model, "height"); // // Instances (creating) // Int64 myInstancePrism = RDF.engine.CreateInstance(classPrism, (string) null); double length = 2.8, height = 1.4; RDF.engine.SetDatatypeProperty(myInstancePrism, propertyLength, ref length, 1); RDF.engine.SetDatatypeProperty(myInstancePrism, propertyHeight, ref height, 1); // // The resulting model can be viewed in 3D-Editor.exe // RDF.engine.SaveModel(model, "c:\\created\\myPrism.bin"); RDF.engine.CloseModel(model); } }