Reply

Set active layer on Draft background sheet

[ Edited ]

I have discovered that subsequent pages of a table are placed on the active layer, not on the same layer as the first page.

Using Spy for Solid Edge (thanks again Jason) it appears you can't get at these pages to change the layer (only the first item is listed).

I need to ensure that pages are placed on the correct layer but I'm not sure how to set the active layer for the background sheet.

HP Z420 16GB RAM
Quadro K4000
ST7 MP10 on Windows 7 Pro 64.
2 REPLIES

Re: Set active layer on Draft background sheet

[ Edited ]

This is the code I have but it sets the layer on the active sheet, not the background sheet.

If I activate the background sheet it works.

 

        For s = 1 To objDoc.Sections.BackgroundSection.Sheets.Count
            objSheet = objDoc.Sections.BackgroundSection.Sheets.Item(s)
            'objSheet.Activate()
            If objSheet.Name = "SheetFormat" Then
                For L = 1 To objSheet.Layers.Count
                    objLayer = objSheet.Layers.Item(L)
                    If objLayer.Name = "Text" Then
                        objLayer.Activate()
                        Exit For
                    End If
                Next
            End If
        Next

 

HP Z420 16GB RAM
Quadro K4000
ST7 MP10 on Windows 7 Pro 64.

Re: Set active layer on Draft background sheet

Hi,

 

You can use this method and give a try.

Solid Edge Framework Type Library > Layer Object : ActivateInContext Method

Let me know whethet it worked or not.

 

 

Thanks,

Onkar