Skip to main content
4-Participant
August 16, 2022
Solved

Assembly constraint

  • August 16, 2022
  • 2 replies
  • 1851 views

How to make fix constraint to multiple items at a time?

Best answer by pausob

AFAIK, not out of the box.  I'm sure it can be done by programming using VB or Toolkit or Jlink.

Or 3rd party automation like SmartAssembly, NitroCell or CreoSON.

 

I made a mapkey that can be run after selecting a component; it replaces its (1st) constraint set with a "fixed" constraint.

Unfortunately, it only works on a single component.

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`;

Still, it might save you some mouse clicks...

2 replies

19-Tanzanite
August 16, 2022

pausob_0-1660637091072.png

 

There should be the "Fix Location" command in the right-click menu.  Note it is only available if ALL the selected components are unconstrained.

4-Participant
August 16, 2022

It's already assembled with some other reference. I want to remove that reference and give fix constraint. Is that possible?

pausob19-TanzaniteAnswer
19-Tanzanite
August 16, 2022

AFAIK, not out of the box.  I'm sure it can be done by programming using VB or Toolkit or Jlink.

Or 3rd party automation like SmartAssembly, NitroCell or CreoSON.

 

I made a mapkey that can be run after selecting a component; it replaces its (1st) constraint set with a "fixed" constraint.

Unfortunately, it only works on a single component.

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`;

Still, it might save you some mouse clicks...

24-Ruby III
August 16, 2022

@SN_10155555 wrote:

How to make fix constraint to multiple items at a time?


Hi,

you cannot fix constraint to multiple items at a time.