Message 1 of 2
WorkPlane Visibility on/off

Not applicable
06-22-2004
09:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anyone check to see why I can not use this sub turn the workplane
visibility on/off
I have part with few workplanes with diff. names.
Private Sub SwitchPlane(sPlane As String, Flag As Boolean)
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oWorkPlane As WorkPlane
Set oWorkPlane = oDoc.ComponentDefinition.WorkPlanes.Item(sPlane)
oWorkPlane.Visible = Flag
End Sub