WorkPlane Visibility on/off

WorkPlane Visibility on/off

Anonymous
Not applicable
220 Views
1 Reply
Message 1 of 2

WorkPlane Visibility on/off

Anonymous
Not applicable
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
0 Likes
221 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Just another bad day. Nothing wrong wiht this sub. I did not pass the correct parameter (typo) to the sub "Calimesa" wrote in message news:40d85d5e_3@newsprd01... > 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 > > >
0 Likes