Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
abdullah_elq
in reply to: julian_sol

Give this iLogic code a shot. It will place a workpoint at the center of your slot.

Dim oSlotEdge As Edge = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kPartEdgeFilter, "Select an edge on the slot") 
Dim oSlotEdgeCollection As EdgeCollection = oSlotEdge.TangentiallyConnectedEdges
Dim oComp As PartComponentDefinition = oSlotEdge.Parent.Parent
Dim SlotCentroid As WorkPoint = oComp.WorkPoints.AddAtCentroid(oSlotEdgeCollection)