Copy a view from one drawing to a view in a new drawing with VBA
Posted: Tue Jul 30, 2024 12:30 am
I want to automate one of our shop floor papers. We have a 1 page document with a drawing of an assembly in the top left.
I want the macro to list all the parts with some detail from the custom properties of each part. There must also be a single view drawing with some production related information. The way it work is, you drop an assembly on the blank form. By clicking the macro button, it will create all the views, populate all the notes with the custom property info and lastly, it copies a view named "MW" from each part drawing and copy it to the correct view on this sheet.
I have done the part where I get all the views populated with the text data. I also know the full path and file name for the drawing of each part. I also know the name of the View I am interested in. I also know the name of the view in this drawing where I need to copy the drawing to.
Any hints as to where to start with this?
I want the macro to list all the parts with some detail from the custom properties of each part. There must also be a single view drawing with some production related information. The way it work is, you drop an assembly on the blank form. By clicking the macro button, it will create all the views, populate all the notes with the custom property info and lastly, it copies a view named "MW" from each part drawing and copy it to the correct view on this sheet.
I have done the part where I get all the views populated with the text data. I also know the full path and file name for the drawing of each part. I also know the name of the View I am interested in. I also know the name of the view in this drawing where I need to copy the drawing to.
Any hints as to where to start with this?