Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I've been trying to get the axis of a cylinder inside an insert constraint. The problem is that ilogic doesn't recognize the axis of the cylinder as a work feature, so I can't get access to it with the method I'm trying to use.
Does anyone know how to solve this?
My code looks like this:
Dim oAssy As AssemblyDocument = ThisApplication.ActiveDocument Dim oDef As AssemblyComponentDefinition oDef = oAssy.ComponentDefinition Dim oCons As AssemblyConstraint oCons = oDef.Constraints.Item("Insert:1") Dim oEnt As Object oEnt = oCons.EntityOne Dim oAxis As WorkAxis If (TypeOf oEnt Is WorkAxis) = True Then oAxis = oEnt MsgBox("Entity one is the cylinder axis") End If
Solved! Go to Solution.