Skip to main content
4-Participant
Aug 16, 2022 6:42 AM UTC
Solved

Assembly constraint

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

pausobAnswer
19-Tanzanite
Aug 16, 2022 4:16 PM UTC

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...

4 replies

19-Tanzanite
Aug 16, 2022 8:14 AM UTC

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.

Translate
4-Participant
Aug 16, 2022 8:18 AM UTC

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

Translate
pausob19-TanzaniteAnswer
19-Tanzanite
Aug 16, 2022 4:16 PM UTC

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...

Translate
24-Ruby III
Aug 16, 2022 8:30 AM UTC

@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.

Translate