Message 1 of 4
visibility of workplane in assembly
Not applicable
11-20-2007
02:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can as much as I try make the workplanes in sub assembly not visible through the api. These are workplanes created in as assembly that are automatically created when sketching in an assembly - I had the same problem in R11 and R2008.
This is the snippet code it, when I run through it runs but the workplanes are still visible:
Dim oPartCompDef As AssemblyComponentDefinition
Set oPartCompDef = oOccurrence.Definition
Dim n As Integer
For n = 3 To oOccurrence.Definition.WorkPlanes.count
If oPartCompDef.WorkPlanes.Item(n).Visible = True Then
Dim oWorkPlane As WorkPlane
Set oWorkPlane = oPartCompDef.WorkPlanes.Item(n)
oWorkPlane.Visible = False
End If
Next
THERE IS NO CHANGE TO WORKPLANE STATE
This is the snippet code it, when I run through it runs but the workplanes are still visible:
Dim oPartCompDef As AssemblyComponentDefinition
Set oPartCompDef = oOccurrence.Definition
Dim n As Integer
For n = 3 To oOccurrence.Definition.WorkPlanes.count
If oPartCompDef.WorkPlanes.Item(n).Visible = True Then
Dim oWorkPlane As WorkPlane
Set oWorkPlane = oPartCompDef.WorkPlanes.Item(n)
oWorkPlane.Visible = False
End If
Next
THERE IS NO CHANGE TO WORKPLANE STATE