iLogic to control End of Part

iLogic to control End of Part

fakeru
Advocate Advocate
3,531 Views
5 Replies
Message 1 of 6

iLogic to control End of Part

fakeru
Advocate
Advocate

Hi!

Is it possible to control (move) End of Part with iLogic? Let's say to move it before or after a certain feature.

 

Regards

Alexandru

Autodesk Inventor 2015 Certified Professional
Accepted solutions (1)
3,532 Views
5 Replies
Replies (5)
Message 2 of 6

fakeru
Advocate
Advocate
Accepted solution

I found it. I case someone will need it here is the code:

Feature.InventorFeature("Feature Name").SetEndOfPart(True)

This will move EoP before feature "Feature Name".

Autodesk Inventor 2015 Certified Professional
Message 3 of 6

Anonymous
Not applicable

what if the feature is a 3d sketch?

 

Nevermind. Figured it out.

 

Dim 3DSketches As Sketches3D =  ThisApplication.ActiveDocument.ComponentDefinition.sketches3D

Dim oSketch As Sketch3D = sketches.Item("sketch1")

 

oSketch.SetEndOfPart(true)

 

 

0 Likes
Message 4 of 6

Anonymous
Not applicable

This is a great feature to move it before or after a certain feature, but how do you move the EOP marker back to the end of part with iLogic?

 

Thanks

0 Likes
Message 5 of 6

bshbsh
Collaborator
Collaborator

@Anonymous wrote:

This is a great feature to move it before or after a certain feature, but how do you move the EOP marker back to the end of part with iLogic?

 

Thanks


ThisDoc.Document.ComponentDefinition.SetEndOfPartToTopOrBottom(False)
Message 6 of 6

Anonymous
Not applicable

This works great!! Thank you for your knowledge, have a great day!

0 Likes