cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lock Rotation right click menu on insert constraint

Lock Rotation right click menu on insert constraint

Would be time saver if I could right-click on multiple insert constraints in the browser and toggle "Lock Rotation"

Sometimes I use iMates or shift-drag to Insert which does not lock rotation.

 

5 Comments
jknudsenXPMU6
Participant

Seconded.

 

Would also make it much easier to update old constraints that were made prior to the addition of Lock Rotation.

serge.waltz
Observer

Not quite what is being sought, but maybe it helps.

 

Sub LockRotation()

 

Dim oDoc As Document
Set oDoc = ThisApplication.ActiveDocument

 

Dim oInsert As InsertConstraint

For Each oInsert In oDoc.SelectSet

Call oInsert.ConvertToInsertConstraint2( _
oInsert.EntityOne, _
oInsert.EntityTwo, _
oInsert.AxesOpposed, _
oInsert.distance.Value, _
True)
Next
End Sub

Mtimmis-Personal
Contributor

I have recently been through numerous older assemblies, created prior to the "lock rotation" being added to the Insert constraint. Having an option to select either a single or multiple Insert constraints and right click "lock rotation" would be a massive time saver. Rather than having to edit each Insert constraint and ticking the box. Especially where assemblies are using a lot of fasteners, where "lock rotation" is really helpful to quickly lock a component in one constraint.

 

Please add this for us all to enjoy 😀

davis.j
Advocate
I'm with @Mtimmis-Personal all the way. This feature just makes sense to have along with being able to sort multiple constraints at the same time too. For the time being I have been using this Ilogic code to speed up my workflow: oDoc = ThisDoc.Document oNamer = "Lock/Unlock Insert" Dim UNDO As Transaction UNDO = ThisApplication.TransactionManager.StartTransaction(oDoc, oNamer) 'Your iLogic code goes in here: '------------------------------------------------------------------------------------------------------------------------------------- qLock = InputRadioBox("Select one:", "Lock Rotation", "Un-Lock Rotation", True, "ilogic") oLock = ThisApplication.ActiveDocument Dim oInsert As InsertConstraint For Each oInsert In oLock.SelectSet Call oInsert.ConvertToInsertConstraint2( _ oInsert.EntityOne, _ oInsert.EntityTwo, _ oInsert.AxesOpposed, _ oInsert.Distance.Value, _ qLock) Next '------------------------------------------------------------------------------------------------------------------------------------- UNDO.End
Mtimmis-Personal
Contributor
Hi @davis.j, thanks for posting the iLogic code, will perhaps have a look at this if more large assemblies come up requiring this.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea