JMichienzi
Aerospace
- Dec 20, 2013
- 3
thread560-290845
Further to the quoted thread, I'm wondering if anyone has come up with a better solution to de-activating large amounts of parts at once.
I attempted to use the suggested method of creating a icon for activate/deactivate. I was successful at first, but after closing and reopening the product, it doesn't seem to want to work, and just generates an error saying 'You can't deactivate this element.' when I click on the icon. I've also tried activating parts instead, and also creating icons for JUST activating or deactivating, all with no luck. Very frustrating, especially since it's worked before!
I did also attempt to write a VBA script to do this for me. I had some success, but ultimately had to give up. The issue I ran into is that in order to load up the required parameter to deactivate a part instance, I either had to expand the instance in the tree first by clicking on the plus icon (strange, I know), or put the part into design mode. If I have to go through all the individual parts and hit 'plus' on the icon, than it defeats the point of writing the macro (Side note: using the tree expand command did not load the parameters). I also can't put parts into design mode - the whole reason I'm deactivating a large amount of parts is because I connect through a painfully slow VPN connection, and when I go to create a joint in a kinematics part, it wants to load everything into design mode to check the constraints. All the constraints are between a skeleton part, so not sure why Catia needs to do this, but I have to deactivate all parts but the skeleton, or I end up waiting for many hours for a 2000+ part assembly to load details I don't need (which usually just results in a Catia crash anyway).
Running V5R21, SP2
Any thoughts? Help would be greatly appreciated!
Thanks,
Jon
Further to the quoted thread, I'm wondering if anyone has come up with a better solution to de-activating large amounts of parts at once.
I attempted to use the suggested method of creating a icon for activate/deactivate. I was successful at first, but after closing and reopening the product, it doesn't seem to want to work, and just generates an error saying 'You can't deactivate this element.' when I click on the icon. I've also tried activating parts instead, and also creating icons for JUST activating or deactivating, all with no luck. Very frustrating, especially since it's worked before!
I did also attempt to write a VBA script to do this for me. I had some success, but ultimately had to give up. The issue I ran into is that in order to load up the required parameter to deactivate a part instance, I either had to expand the instance in the tree first by clicking on the plus icon (strange, I know), or put the part into design mode. If I have to go through all the individual parts and hit 'plus' on the icon, than it defeats the point of writing the macro (Side note: using the tree expand command did not load the parameters). I also can't put parts into design mode - the whole reason I'm deactivating a large amount of parts is because I connect through a painfully slow VPN connection, and when I go to create a joint in a kinematics part, it wants to load everything into design mode to check the constraints. All the constraints are between a skeleton part, so not sure why Catia needs to do this, but I have to deactivate all parts but the skeleton, or I end up waiting for many hours for a 2000+ part assembly to load details I don't need (which usually just results in a Catia crash anyway).
Running V5R21, SP2
Any thoughts? Help would be greatly appreciated!
Thanks,
Jon