I have some assemblies where I need to remove all the assembly constraints.
I can do it one component at a time but I could really use a faster method.
Most of the components are "Frozen" or "Suspended" with broken constraints.
I don't know of an out-of-the box method of stripping out the constraints of assembly's components.
However, IMO, having an assembly full of unplaced components is just as bad as having an assembly full of suspended/frozen components. So I'm not sure what your plan is for fixing the problem, but seems like ultimately you will have to address each component one by one. Perhaps you can use this mapkey or modify it to suit your needs to speed things up:
mapkey $F10 @MAPKEY_NAMEReplace 1st constraint set with Fix constraint;\ @MAPKEY_LABELImpose Fix constraint;\ ~ Command `ProCmdRedefine`;\ ~ Activate `main_dlg_cur` `chkbn.ScrLayout.0` 1;\ ~ PopupOver `ScrLayout.1.0` `PH.INST_RMB_.l0` 1 `PH.PIM_chk.l0`;\ ~ Activate `ScrLayout.1.0` `PH.DELETE_PB_.l0`;\ ~ Select `ScrLayout.1.0` `PH.pop_constr_offset_type` 1 `Fixed`;\ ~ Activate `main_dlg_cur` `dashInst0.stdbtn_1`;
(to use, select a component, then press F10 - the component's constraint set will be removed, and a single "Fixed" constraint will be imposed)
Stripping out all of the constraints is just the first step in what I'm trying to do.
The assemblies I'm working with are full of useless or broken constraints,
and components that are not in a good order. I know other people have the same issues...
After I remove all the constraints I will easily be able to reorder my components and then constrain them properly.
Thanks for the Mapkey code... but it seems like there should be some Mapkey commands that would allow me to select all filtered components... or run a loop of code.
I think what was being suggested is that, inevitably, to repair the assembly, you're going to be forced to redefine the constraints of every messed up component. So, since it's unavoidable, why not just go straight to redefining? I've had some horrible botched up assemblies and had to do this. Sometimes, to avoid making poor selections or just to simplify things, I hide all the problem components and then unhide them one at a time as they are addressed.
I definitely don't envy you in this task.
Thanks for the feedback...
Going straight to "Redefine" is fine but I wanted to reorder my components and then constrain.
There seemed to be some constraints that were hindering the reorder process.
I can remove them as I go but it would have been nice to just strip out everything first.
If everything was "Packaged", I could select all and "Fix" (temporarily), but most of these components are "Frozen".