I'm looking for a macro that will open a drawing and delete an old revision table. I don't need to replace it, I just need to delete it, save the drawing, and close. Can someone please help?
I'm looking for a macro that will open a drawing and delete an old revision table. I don't need to replace it, I just need to delete it, save the drawing, and close. Can someone please help?
Record macro to delete the table on one drawing and then you can run that on all drawings in a folder with #TASK
Ok I got this one to work that I recorded, But when running in #TASK, how can I tell this macro to only look at .slddrw's? I have some other macros that work on .sldprts, so when it tries to do this one on the part files, I get an error?
Well, I wanted to run it in conjunction with tasks for drawing only & tasks for parts and drawings, so I thought there could be a way to tell the "Delete Table" task to only look at drawings, but that's ok, I can just run the task separately. But I have another question if you don't mind. So I recorded a macro deleting the revision table, only problem is, the recording picked it up as "DELETE GENERALTABLE1" so If I have another table in that drawing that was inserted before the revision table, therefore earning the "GENERALTABLE1" name first, it deletes that one, and leaves my revision table. Can this be fixed any kind of way?
Eddie Pellegrin wrote:
Well, I wanted to run it in conjunction with tasks for drawing only & tasks for parts and drawings, so I thought there could be a way to tell the "Delete Table" task to only look at drawings
This can be done by putting an IF condition for document type in the macro. So you can set the filter for part and drawing and based on document type, it can delete the table.
The recording picked it up as "DELETE GENERALTABLE1" so If I have another table in that drawing that was inserted before the revision table, therefore earning the "GENERALTABLE1" name first, it deletes that one, and leaves my revision table. Can this be fixed any kind of way?
Yes it can be set to pick the revision table in drawing.
Hi Eddie
Try to delete the table by using the task from #TASK library by specifying the text, which it should contain.
Strongly recommend to backup you drawings before running this task; For instance, If entered value "A" in "Find What" then most of the tables would be deleted as most of the tables could contain this letter.
Regards
Viktor
Victor, this may be a silly question, but I noticed the the #TASK program was updated, and I don't' remember seeing the "Remove Table" macro before the update. Did my problem help facilitate the update in anyway?
Hi Eddie
The updates of the application are not really connected to library #Task. The information about all items in library is downloaded each time when you press the "Library" button. It means that you will be able to see all new library items as soon as they are added to #Task database.
Regards
Viktor
Hi Eddie
Try to delete the table by using the task from #TASK library by specifying the text, which it should contain.
Strongly recommend to backup you drawings before running this task; For instance, If entered value "A" in "Find What" then most of the tables would be deleted as most of the tables could contain this letter.
Regards
Viktor