3 Replies Latest reply on Mar 12, 2014 10:11 AM by Trevor Wunn

    How to clear a view selection

    Christoph Neundorf

      Hi all,

       

      i'd like to insert a sketch block on a drawing sheet programmatically on a button click.

      Unfortunately it inserts the block on a view instead of the sheet when the user had a view selected.

      How can i clear a view selection?

       

      ActiveModel.Extension.Document.ClearSelection2(true);

       

      or

       

      ActiveModel.ClearSelection2(true);

       

      didn't work for that.

       

      Any ideas?

       

      Thanks.