Hi,
I am currently writing a .NET plugin that automatically generates robot cells based on user parameters but am having trouble figuring out how I can add existing library components to the world.
Has anyone come across this or implemented this?
Hi,
I am currently writing a .NET plugin that automatically generates robot cells based on user parameters but am having trouble figuring out how I can add existing library components to the world.
Has anyone come across this or implemented this?
My friend, does this help you?
app.World.Clear(); string folderPath = @"C:\Users\Public\Documents\Visual Components\4.1\Models\eCatalog 4.1\Components\Visual Components\BasicShapes"; string[] files = Directory.GetFiles(folderPath); foreach (var file in files) { System.Uri path = new Uri(file); app.LoadLayout(path); }
The LoadLayout() method is like its Python counterpart (standard command in vcCommand) which can be used to load layouts as well as components in the 3D world.
Thank you sir!