cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Assembly constraint

SN_10155555
4-Participant

Assembly constraint

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

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4

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.

SN_10155555
4-Participant
(To:pausob)

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

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


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


Martin Hanák
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags