API help, Find Method doesnt work in SolidWorks?

Discussion in 'SolidWorks' started by SW Monkey, Feb 16, 2007.

  1. SW Monkey

    SW Monkey Guest

    I am trying to use the Find Method (object.Find) to search for
    specified text in a SW drawing. When I try to run the command,
    swApp.find "mytext", I get a message stating "Object doesnt support
    this property or method".

    Anyone know how to get this to work, or does SolidWorks API have a
    find function for searching notes?
     
    SW Monkey, Feb 16, 2007
    #1
  2. SW Monkey

    That70sTick Guest

    What object are you applying it to?

    Try using early binding so that you can see what methods are available
    as you type.
     
    That70sTick, Feb 16, 2007
    #2
  3. SW Monkey

    CS Guest

    I'm sorry but I think we have a little mis-inturpretation of API
    help. Object.find is found in the vba help and is referring to
    Microsoft Office objects. You want to look at the SolidWorks API help
    which cannot be accessed from the VBA Window. In SolidWorks 'Help
    Menu' use SolidWorks API and Addin Help. This is all the SolidWorks
    Specific API Help. To do a find search in SolidWorks you have to
    recurse throught all the Note and Dimension objects and check all
    their parts for your text string. What are you trying to accomplish
    exactly?
     
    CS, Feb 16, 2007
    #3
  4. SW Monkey

    SW Monkey Guest

    I am trying to do a search on all drawinig for the word "ETCH". I may
    have found a solution using Windows Desktop Search to search our PDF
    files (it suppose to be able to search text within PDF files), but if
    you have any suggestions please post.
     
    SW Monkey, Feb 16, 2007
    #4
  5. SW Monkey

    CS Guest

    There is an API example of a Spell Checker that could be simplified to
    suit your needs on the SolidWorks Customer Portal under Tech Tips,
    Best practices and API examples .
     
    CS, Feb 16, 2007
    #5
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.