Drawing view frame

Hi,

How can make from this...

to appear like this...

and it's not view focus

I try with rebuild, force rebuild and nothing happens... If is pink i can't insert nothing in that view... My macro insert scketch in drawing view but if is with pik border not work corect..

How can I do?

SolidworksApi macros
Answers 5
HA
HA 2016-02-11 Best Answer
SF
SF 2016-02-12

Hi Hrituc,

Try this following macro.it will unlock all view focus on the sheet.

Sub main()

    Dim swApp                       As SldWorks.SldWorks

    Dim swModel                     As SldWorks.ModelDoc2

    Dim swDraw                      As SldWorks.DrawingDoc

    Dim swView                      As SldWorks.View

    Dim swBaseView                  As SldWorks.View

    Dim bRet                        As Boolean

    Set swApp = Application.SldWorks

    Set swModel = swApp.ActiveDoc

    Set swDraw = swModel

    Set swView = swDraw.GetFirstView

    Do While Not swView Is Nothing

        swView.FocusLocked = False

        Set swView = swView.GetNextView

    Loop

End Sub

Let me know if you have any query.

AT
AT 2016-02-12

You can also try the following to deactivate the view

<p><span class="pln" style="color: #000000; font-family: 'Courier New'; font-size: medium;">swDraw</span><span class="pun" style="color: #666600; font-family: 'Courier New'; font-size: medium;">.</span><span class="pln" style="color: #000000; font-family: 'Courier New'; font-size: medium;">ActivateView </span><span class="str" style="color: #008800; font-family: 'Courier New'; font-size: medium;">""</span></p>

Thanks,
Artem

HA
HA 2016-02-12

Hi Raghvendra,

    It not work... The frame remain somewhere between normal and focus... it's annoying!... I succeeded inserting a point in view and then wiping it...

SD
SD 2016-02-12

You can double click on view to switch between pink and orange outlines.