Use Revit API To Detach A Central File And Clean Up For Consultant Use

Use Revit API To Detach A Central File And Clean Up For Consultant Use

DJB_CADfx
Enthusiast Enthusiast
1,502 Views
4 Replies
Message 1 of 5

Use Revit API To Detach A Central File And Clean Up For Consultant Use

DJB_CADfx
Enthusiast
Enthusiast

Does the Revit API from version 2013 and higher possess the required methods to properly clean up a central file to provide it to a third party for their use? The command would need to do the following:

 

  1. Allow the user to select a central file to perform the command on
  2. Open the selected file detached from central, preserving worksets and performing an audit on it
  3. Remove all existing Revit links
  4. Remove all existing CAD Format links
  5. Perform a Purge on all unused items
  6. Save the file as a new detached central file to a new location
  7. Relinquish All Mine

Is there anything missing in the API that would make it impossible to perform all of these steps? Are there any steps missing that you would recommend also be performed before sending the file to a third party?

 

Thanks!

0 Likes
1,503 Views
4 Replies
Replies (4)
Message 2 of 5

maciejwypych
Collaborator
Collaborator

Hi,

 

It's definately possible - eTransmit, which is availible with subscription does all that.

0 Likes
Message 3 of 5

Anonymous
Not applicable

Hello djb,

 

I am very interested in the macro you describe. Have you found any way of developing this Macro? 

 

Thanks!

0 Likes
Message 4 of 5

Anonymous
Not applicable
I think all of your items are possible through the API except the Purge unused command. A few years ago we had looked in to something similar to clean incoming models from other consultants and from what I recall, there was no API function to do a straight forward Purge Unused. You could do it if you created your own function to check for unused items but from what I remember reading, in order to figure out if it is unused, you would need to try to delete it from the model. If it is successful in being deleted then it is unused, otherwise it is used somewhere. Hopefully there is something being added in the API soon to handle a Purge Unused as this could be very handy.
0 Likes
Message 5 of 5

Troy_Gates
Advocate
Advocate

I can concur with Purge in the API, I've tried to create a similar tool to clean up models. Was able to do everything except purge.

0 Likes