Hello, I'd like to know if you could help me. because I have several steps that are repetitive that's why I would like to have your help for a macro that could do it automatically.
I have several iges, these iges are parts (surfaces) of different sizes and shapes, there can be bend parts
My job is to position them, to unfold if the part and fold and also to have all these parts in view of the faces. Then I have to add a thickness on these parts.
When recording I would need the front view of the room and the left view if possible to have these two views in the same plane.
Thanks for help but I would need the opposite of your macro, that is to say that from an IGES I have to create a drawing and then that this drawing (defined front plane and left view at the same time) be converted into DXF.
This seems to me to be quite difficult to achieve. Indeed, as you explain yourself, your pieces are of different sizes and shapes... and even of different designs (bent or unbent sheets, machined part, etc etc). In short, nothing that could not allow a stupid and unthoughtful automatism.
And then, from a more concrete point of view, I don't really see how to tell the macro which view is the front one and which is the left one in your IGES (since nothing seems to be "standard")
- Then we insert for example 4 views, and we delete the ones that don't fit! This already saves a lot of time. And if the configuration is not the right one, you can change it by right-clicking on the first view (= the parent view, and it changes all the other views = the child views, for example to put the configuration unfolded).
- Then, we insert the objects of the model (or the dimensions by hand if it doesn't work):
Thank you for your answer; I attach a file like this it will be much simpler and you will understand my problem better. So in this file I attach an iges and also a dxf this dxf represents the last step I need to have after creating a macro. For your information , these files are always in iges and these files are surfaces. So I have to rotate them 90 degrees, then put a thickness and create a front and left view see final view. (attached DXF). (The front view will be used for laser cutting and the left view as a means of inspection after bending the workpiece). (the pieces change size and shape but it won't change anything for the positioning I think)
To save time, I would like to have a macro that can do these steps in one click. Is it feasible?
Be careful, it is better to avoid using the mouse, otherwise the result will be random!
So try to do everything on the keyboard.
At worst, do your macro step by step: you will have to launch a first macro (why not with a keyboard shortcut), click with your mouse on a face, launch your second macro, etc...
In fact, you're looking to automate the work of a cartoonist if I understand correctly?
That said, I still think it's impossible. Too many parameters fluctuating.
But if it works, as @.PL. It has to be exactly the same from one file to another. Which seems unlikely to me, if only for the grip of the thickness or the number of folds to be taken into account
I read the messages quickly and I would just like to add 2 things if it can help you:
If you have myCADtools, the "SmartDrawings" is very useful for making a lot of plans with the same predefined views. From a list of parts/assembly he creates all the drawings according to a model (front view, right view etc...).
For macros, the easiest thing to do when you're starting out is to record one and modify it as needed.