Skip to main content
2-Explorer
April 4, 2019
Question

Remove All Assembly Constraints

  • April 4, 2019
  • 1 reply
  • 5757 views

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.

Thanks

 

1 reply

19-Tanzanite
April 5, 2019

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)

doneill2-ExplorerAuthor
2-Explorer
April 5, 2019

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.  

Thanks

 

KenFarley
21-Topaz II
April 5, 2019

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.