Tyler Holden wrote:
So it would go (example) 100359 REV A
The macro use part number, revision and description property from the model used in the drawing. So when you say Part #, then is that a property you need OR the referenced model file name Or the drawing file name.
Also where to use the revision information from; model or drawing?
I would also like to have the macro export the files and place them in a folder that i specify, i didnt see that functionality anywhere.
Also when you mean you want tp specify the path/folder for save then do you want to keep that fixed OR want a browse option every time you use that macro?
I need the referenced Model name. IE the part number is 100368 so the part (or assembly) file is named 100368
Id like to take the revision information from the drawing.
I would like a fixed location that can be modified inside of the macro to change the fixed location if needed.
Here is the updated macro. Please change the path as required.
To change the path, edit the macro (Tools > edit > Macro) and change in this line:
Const Path As String = "C:\Users\DEEPAK\Desktop\test" 'Change the path here
Make sure the path is in quotes as shown above.
Outstanding!! It works great!
When i run the macro it exports it as 100369 if its rev -
When i run the macro it exports it as 100369 A if its rev A
Would it be possible to add a - to the end of a rev - drawing? If not its okay, thought id ask! Thanks again for the help!
Here is updated macro.
If revision has no value or there is no revision property, then export file will have nothing added to the model number else there would be model number-revision value.
For e.g. no revision then 1234
With revision 1234-A
If you need to change anything then edit the macro (Tools > Edit > Macro) and edit these lines
If Revision = "" Then
Revision = ""
Revision = "-" & Revision
Good to know, thanks very much for the help!