1 Reply Latest reply on Jul 28, 2015 2:37 AM by Deepak Gupta

    Selecting Correct View In Macro

    Matt Jones

      I want to select the view that my parametric title block references for my macro. I am currently using the below code to select the view and have had a couple of issues with the odd drawing selecting a flat pattern that is on the sheet!


      Set swDraw = swApp.ActiveDoc
      Set swView = swDraw.GetFirstView
      Set swView = swView.GetNextView


      Can I do something like


      Set swView = XXX 'a specific view on the page



      If so how do I 1. find out what view the title block is referencing and 2.word the code (eg getviewXX ??)??