Message 1 of 7
Change Face Feature Direction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm wanting to create a rule that will always make 'Face1' extrude in the negative direction. It throws an error when I try to change the direction. Anyone know why?
Dim oDoc As PartDocument = ThisApplication.ActiveDocument Dim oSM As PartComponentDefinition oSM = oDoc.ComponentDefinition Dim oFace As FaceFeature oFace = oSM.Features.Item("Face1") MessageBox.Show(oFace.Definition.Direction) oFace.Definition.Direction = 20993 '<---- error 'oFace.Definition.Direction = PartFeatureExtentDirectionEnum.kNegativeExtentDirection