Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Show 3D Model on Windows Form in .Net (C#)?

owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
edited August 2019 in General
Hi folks.
Is anyone aware of a .NET Windows Forms Control that can display a 3D model?  (Step Parasolid etc.)
Ideally all I want a user to be able to do is spin the model round and zoom. 
There seem to be a bunch of widgets to design models in forms but I'm looking for a lighter viewer if possible.
Plan B is prerecorded spinning animation in a media player but that seems like a bit of a bodge.
Thanks all,
Owen S.
Business Systems and Configuration Controller
HWM-Water Ltd
Tagged:

Comments

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,308
    Can't they just use a browser and view the Onshape model?  :D
    Senior Director, Technical Services, EMEAI
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    edited August 2019
    NeilCooke said:
    Can't they just use a browser and view the Onshape model?  :D
    Sure, I'll just need to put IR's into you good folks to cover the Automated Job Routing, Label Printing, Firmware Upload, Functional Testing and the like.  No rush, any time before next Friday is just fine...  (I want a singe application do do all things for all users.)
    In all seriousness the correct way would be using your API to a configured assembly but I'm looking for something simpler for the first iteration.
    Cheers, Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    @owen_sparks

    I did a search and found a few collada .net viewers.  Could you export as collada and use that?
    Jake Rosenfeld - Modeling Team
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Thanks @Jake_Rosenfeld, appreciate you taking the time to have a look.  I'll go and have a read.
    Cheers, Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • john_mcclaryjohn_mcclary Member, Developers Posts: 3,890 PRO
    I haven't tried yet, but WPF C# will let you view STL or OBJ
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    I haven't tried yet, but WPF C# will let you view STL or OBJ
    Thanks @john_mcclary, as it happens I'm looking at my first WPF tutorial at the moment.  (Damn-it, I almost know what I'm doing in winforms and am back to the "Hello World" stage  :s Oh well it's the future....)
    Thanks fella,
    Owen.
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    edited August 2019
    On the plus side it makes featurescript look a lot more readable :p
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • john_mcclaryjohn_mcclary Member, Developers Posts: 3,890 PRO
    Yea, when i went WPF it was a little wierd, but once you learn it, it's very simple.

    Doesn't do everything forms can, but you can always add that dll too :)
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Groovy, thanks for the reassurance that all will become clear :+1:
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • Gideon_PaullGideon_Paull Member Posts: 3 ✭✭
    A few years ago I created a project using WPF and C# for viewing 3D models. I'm pretty sure I used a library that I downloaded that read in and allowed you to manipulate OBJ files and even create assemblies out of them.
    When using WPF don't think of windows forms at all. It is really designed to be programed with the MVVM pattern where the View is separated from the logic of the program. It takes some getting used to.
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Thanks @Gideon_Paull it's interesting for sure. :)
    Was your application well received?
    Cheers, Owen.
    Business Systems and Configuration Controller
    HWM-Water Ltd
Sign In or Register to comment.