Thank you for responding to a topic that is quite old.
First, I am a complete beginner for iLogic. So, I'm not even sure if I fully understood your answer or not....
I only intended to use this in the Part environment, and I wanted to assign the move up command and the move down command to different shortcuts. However, I didn't know how to implement that using a single iLogicVB rule. So I split them up. (┬┬﹏┬┬)
Also, I wanted to move the End of Part marker up and down, even if it included a sketch. This is because during part design, I often keep a sketch visible by drawing construction lines to make it visually easier to understand. And if a sketch is at the end of the tree, it should still be possible to move the EOP below that sketch. I don't know why but that code didn't produce an error when moving past a sketch.
So... referring to the code in your last answer, I modified my existing code like this. Is it correct that it will work as I intended?
Dim oDoc As PartDocument = TryCast(ThisApplication.ActiveDocument, Inventor.PartDocument)
If oDoc Is Nothing Then Return
Dim oDef As PartComponentDefinition = oDoc.ComponentDefinition
Dim oAfter As Object = Nothing
Dim oBefore As Object = Nothing
oDef.GetEndOfPartPosition(oAfter, oBefore)
If Not oBefore Is Nothing
oBefore.SetEndOfPart (False)
End If
I'm truly sorry to ask again, but could you also tell me how to assign separate shortcuts for the move up and move down commands using just one iLogic rule? I don't know what search terms to use to find the answer.