Deleting Assemblies
Deleting Assemblies
(OP)
Is there anyway to delete an assembly and all it's components from a directory in one shot?
I have a sub-assembly that I now longer need and I would like to delete it and all referenced parts that belong to that sub-assembly. Can I do this across the board or am I going to have to delete each individual file?
Thanks,
Dale
I have a sub-assembly that I now longer need and I would like to delete it and all referenced parts that belong to that sub-assembly. Can I do this across the board or am I going to have to delete each individual file?
Thanks,
Dale






RE: Deleting Assemblies
RE: Deleting Assemblies
Flores
RE: Deleting Assemblies
-use ActiveDoc to get the active document (which you want to delete, along with it's references)
-use GetDependencies2 to get the model references
-use GetPathName to find out where those referenced files live
-use VB command "KILL" or FileSystemObject (FSO) method to delete those files
This is a little dangerous since files that are deleted might be used in other places than what you want deleted. I suppose some type of "Where Used" search would be ideal before deleting.
RE: Deleting Assemblies
I appreciate the response back and will update you how eveything goes with it.
Thanks,
Dale
RE: Deleting Assemblies
Does it sound like I speak from experience?
RE: Deleting Assemblies
RE: Deleting Assemblies
This is something that SW Explorer should do. Not just a simple and dangerous delete, but an "assisted" one. Example: for each file, a confirmation window together with a list of "where used?". Or at least a move or rename with "find children" that would allow us to segregate the files easely and test the model integrity before deleting them with Windows Explorer.
This and the ability of renaming/copying integral sets from assembly to parts drawing would be two important improvments (maybe for SW2006?).
Regards