locked
Considerations for CAD-like display in .Net Core and Angular 2/4 project RRS feed

  • Question

  • User1799191031 posted

    I'm looking to build an app with ASP.Net Core server side (Angular 4 client side) that incorporates some type of CAD illustration in a user form. I'm not actually looking to pull in a full CAD program but I'd like to have a list of input boxes and dropdowns on the client side that manipulate a visualization of a preset type of shape or construct. The desire is to have visual feedback on data entry for the end users.

    The challenge is that I'm right at the beginning of my research and trying to figure out what my viable options are for starting my development. I haven't seen any NuGet packages expressly built for this type of work and I get the impression that I'll likely have to pull in resources from a few different places. 

    Are there any good starting points for this type of thing that anyone's here is aware of? While I doubt that I'd need to build an application from scratch here it's probably a matter of grabbing the right tools for the job and I'm still not 100% sure what those are yet.

    Thank you!

    Matt

    Wednesday, November 22, 2017 3:42 PM

All replies

  • User-474980206 posted

    the core of your application will be a <canvas> that the cad image is down in. there are several javascript cad drawing packages, just google. see:

       https://www.sitepoint.com/10-cool-javascript-drawing-canvas-libraries/

       https://github.com/benardt/JScad2d

       https://openjscad.org

    you will need to build a UI to manage the cad object tree. (I assume you are familiar with standard object/drawing patterns).

     

     

    Wednesday, November 22, 2017 4:20 PM
  • User1799191031 posted

    Thank you Bruce!

    I'm glad I asked now because I was trying to research solutions in reference to C# previously. I'll try again from the Javascript side and see what I'm able to figure out from some of the links above.

    Wednesday, November 22, 2017 4:28 PM
  • User1799191031 posted

    I'm a few steps further in my research and it looks like I may want to create my geometry in Blender and export to Three.Js. I'll have to try some basic shapes and see how well the sizing math works but at least for now this looks like it might be my best fit solution.

    Saturday, November 25, 2017 9:43 PM