Macro to rename drawing sheet

Discussion in 'SolidWorks' started by Pascalou, Aug 30, 2006.

  1. Pascalou

    Pascalou Guest

    Hello API experts,

    Would anyone be willing to share with me a macro that would rename
    every sheet in a drawing to the name of the part that's on it. I have
    no experience in programming except with the record button...

    Thank you for any help.
     
    Pascalou, Aug 30, 2006
    #1
  2. Pascalou

    fcsuper Guest

    fcsuper, Aug 30, 2006
    #2
  3. Pascalou

    Mr. Who Guest

    The following format using these api methods will get you what you
    want. See the api help to get started

    DrawingDoc::GetSheetCount
    Sheet = DrawingDoc::GetCurrentSheet
    loop
    View = DrawingDoc::GetFirstView
    Sheet::SetName = View::GetReferencedModelName
    DrawingDoc::SheetNext
    loop
     
    Mr. Who, Aug 31, 2006
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.