I am developing an add-in for Solidworks to make the optimized baring of mechanically welded elements.
So far, no particular problem.
But a stupid idea came to me...
I would like to add for non-symmetrical profiles (cut with an angle different from 0°) if they are cut on the edge or flat and if they need to be rotated in the case of two non-parallel cuts.
I tried to go through the bounding box of a body but the information doesn't change depending on the orientation.
At worst, I'll look for a way to create a miniature of the body, but they still have the problem of orientation.
If anyone has an idea, I'm all for it.
FYI, I'll put the add-in up for download once it's finished and tested.
To display the image, I don't really have a problem, in the add-in, I go through a tooltip that displays the image when hovering over the profile in a list. In the export to excel, I add a column and paste the image into it.
I found a solution to recover a miniature of the body. I isolate it, put it in wireframe with hidden lines, activate the iso view and save in jpeg. It works more or less well but I'll come back to it.
Another solution I thought of is to create a MEP with three identical views of each body, to see if we can save the views in an image format. (I haven't tested)
@Ac cobra 427: No, I didn't do a tutorial, it's long to code and long to test. But it's an idea.
That's also how the company I just joined works...
I just made a welded construction of 784 bodies (sheet metal and profiles included), I can't see myself going to sort through all this knowing that no profile has the same lengths and cutting angles:)
I would have done modules but the model is parametric. It is a wall covering in a vehicle ramp that also serves as a railing on the ground floor.
Then when I see the clarity of the excel file of the bar setting, you have to have done 10 years of studies to know which piece to put in which bar:)
Small parenthesis, for complicated or very large chassis, or with complex sheet metal shapes, there is indeed the method of going through an ASM, and managing each body in a PRT.
But there is also the "Hybrid (ASM and PRT)" method,
which allows the profiles to be kept parametric (Const.Welded function),
and manage each important part in a PRT,
with in the end a nomenclature (tablutation type) and auto registration (flat or not).