Ask our Experts
Didn't find what you are looking for? Ask our experts!
New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).
This knowledge base is addressing usage of software Experior, Machine Expert Twin and future Automation Expert Twin. These softwares are used to create smaller instances of digital twins for use in industrial automation, warehouse management, design & engineering with more..
Search in
Please select a country to continue with beta search.
Link copied. Please paste this link to share this article on your social media post.
on 2026-01-08 05:50 AM
using Experior.Core.Parts; // Needed for ConveyorCurveBelt reference
using Experior.Core.Mathematics; // Needed for Trigonometry reference
using Experior.Interfaces; // Needed for Coefficient reference
using Experior.Core.Assemblies; // Needed for Assembly reference
public class Curve : Assembly
{
private ConveyorCurveBelt curveBelt;
public Curve(CurveInfo info) : base(info)
{
if(info.friction == null)
{
info.friction = new Experior.Core.Parts.Friction();
info.friction.Coefficient = Coefficients.Sticky;
}
curveBelt = new ConveyorCurveBelt(true);
curveBelt.Radius = info.radius;
curveBelt.Width = info.width;
curveBelt.Angle = Trigonometry.Rad2Angle(info.angle);
curveBelt.Friction = info.friction;
curveBelt.Rigid = true;
curveBelt.Color = info.surfacecolor;
Add(curveBelt);
}
}
A simpler example taken from the DeveloperSamples catalog, shows the most basic method of adding a new RigidPart Box to an Assembly, as demonstrated below.
Sample2 Assembly placed in Experior, containing part1 (Blue Box) and part2 (Red Box).
using Experiore.Core.Assemblies; // Needed for Assembly / AssemblyInfo reference
using Experior.Core.Parts; // needed for RigidPart/Box reference
using System.Windows.Media; // Needed for Colors reference
using System.Numerics; // Needed for Vector3 reference
public class Sample2 : Assembly
{
private RigidPart part1, part2;
// Constructor
public Sample2(AssemblyInfo info) : base(info)
{
// Add a new RigidPart Box
// Color = Blue
// Dimensions = (x - length: 0.5m, y - height: 0.5m, z - width: 0.5m)
// Local position = (x: 0, y: 2, z: 0)
part1 = Add(new Box(Colors.Blue, 0.5f, 0.5f, 0.5f), new Vector3(0, 2, 0));
part2 = Add(new Box(Colors.Red, 0.5f, 0.5f, 0.5f), new Vector3(0, 0, 0));
}
}
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.