Load multiple 3ds file in viewport

Anonymous 9 years ago 0
This discussion was imported from CodePlex

sarankani wrote at 2012-12-10 20:01:

Hi Objo,

I am new bee to helix 3D. I need to load many .3ds file in helix viewport. Now i am using the following code

var modelGroup = new Model3DGroup();
            var reader = new StudioReader();
            FileStream c = new FileStream(@"F:\\helixtoolkit3dfiles\" + URL, FileMode.Open, FileAccess.Read, FileShare.Read);           
            reader.TexturePath = ".";
            modelGroup = reader.Read(c);
           this.Model = modelGroup;

I can only load one file at a time. I need to load many. Thanks in advance for your help. Please let me know your suggestions.


objo wrote at 2012-12-13 23:02:

try adding the loaded models to the Children collection