Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I'm trying to highlight the edge of a cylinder inside a drawing view. My goal is to highlight the features related to a constraint. For this case I have to highlight an edge related to an insert constraint. I'm still not sure if I can ahieve this if the edge is not visible in the drawing view.
Does anyone know how to do this?
So far I can only know the feature type for the constraint:
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 oEdge As Edge If (TypeOf oEnt Is Edge) = True Then oEdge = oEnt MsgBox("Entity one is an Edge") Else MsgBox("Nothing") End If
Solved! Go to Solution.