Results 1 to 9 of 9

Thread: API Selections

  1. #1
    Member
    Join Date
    2009-11
    Posts
    17
    Login to Give a bone
    0

    Default API Selections

    Quote Originally Posted by ddr.223569 View Post
    Try Category: Presenter with the Property: Material and Equals: Global.
    I have put 2 solids in 40% stransparency and I can find them by this Search.
    sir
    i m using navisworks manage 2010 API
    how can i do multiple selection using API
    i.e
    using "find" command i can find numbers of objects but when i use select command i can only select one

    is there any command that we can select numbers of objects

    thanks in advance

  2. #2
    Member
    Join Date
    2015-11
    Posts
    49
    Login to Give a bone
    0

    Default Re: API Selections

    Multi selection can be done by the Selection Tree in in combination with the Selection Set.
    Open both paneviews.

    In the Selection Tree, open the Properties tab and select the layer item.

    Use Ctrl-button and select the layers you want to select.

    Click then in the Selection Set, left mouse click and select Add Current Search Set.

    These Search Sets can be exported into XLM files. Those XLM files can be imported into other NWD Files.

  3. #3
    Member
    Join Date
    2009-11
    Posts
    17
    Login to Give a bone
    0

    Smile Re: API Selections

    Sir,

    thanks for reply

    but same i need to do with navisworks API

    do you or anyone use Navisworks API , i m asking boz i need some help on the same

    please reply

  4. #4
    Member
    Join Date
    2015-11
    Posts
    49
    Login to Give a bone
    0

    Default Re: API Selections

    I cannot help you there.
    Personnaly I also want to write some special API programs, like
    - copying the viewsettings from one camera view to another
    - automatic open dwg files
    - automatic check and change of units
    - automatic saving my naviswork under nwd or nwf
    - automatic insert hyperlinks (the nwd name is the same in the hyperlink description and hyperlink reference)
    -> here I have alread found a way to make my hyperlink reference relative, something Navisworks does not do
    - automatic put certain nwd files on or of on selected camera views.

    My list is long and all those actions can be programmed by clicks.
    ....

  5. #5
    Member
    Join Date
    2009-11
    Posts
    17
    Login to Give a bone
    0

    Default Re: API Selections

    Quote Originally Posted by ddr.223569 View Post
    ....
    oh you have really long list but than why dont you start programming
    i have started using navisworks API, i m using API in VB and i hav achived following things

    1. Can open NWD file in VB Application (Very Simple.....)
    2. Can find numbers of objects in model and than can change color etc..


    Hey do you know any one who can help us in programming so we can ask him all the problems

    please reply

  6. #6
    Member
    Join Date
    2015-11
    Posts
    49
    Login to Give a bone
    0

    Default Re: API Selections

    I have already asked for help here, but no one seems to react.
    If only I could have some better examples then those that are in the installation pack...
    I hope the next version of NW has a kind of macro recorder or a pdf book with comands and related examples

  7. #7
    AUGI Addict
    Join Date
    2015-12
    Posts
    2,095
    Login to Give a bone
    0

    Default Re: API Selections

    The NavisWorks object model is more than a little baroque, it takes a bit of out-of-the-box thinking to wrap your mind around it and its not something you can just do without a programming background. I suppose its the price to pay for its performance and a legacy of its predecessors. Put some time into basic programs and visit the NavisWorks API later - you will understand more.

  8. #8
    Member
    Join Date
    2009-11
    Posts
    17
    Login to Give a bone
    0

    Question Re: API Selections

    i m building a vb tool where in i need to find some objects in navisworks, for the same i took help one of the example (ActiveX05.vbp) given in installation folder of navisworks.
    i have use following code to find object (just few lines )
    ......
    .........
    ............
    find_spec.selection = Nothing 'this sets the selection to 'all'
    find_spec.Conditions.Add find_condition
    find.FindSpec = find_spec
    .....
    ........
    ............

    now here "find_spec.selection" is set to "Nothing" it means that navisworks will search object in full model.(Please correct me if i m wrong)

    but i want to search my object in a Selection Set which i have created,.

    Please reply

    Regards
    Sagar Sonawane
    L&T

  9. #9
    Member
    Join Date
    2009-11
    Posts
    3
    Login to Give a bone
    0

    Default Re: API Selections

    I read from a FAQ that Navisworks API allows creation of clash viewpoints and save them back to the NWD file.
    Any idea how to implement that?

Similar Threads

  1. Selections
    By jbervel in forum Robot Structural Analysis
    Replies: 1
    Last Post: 2010-05-06, 04:20 PM
  2. save selections set?
    By timsea81 in forum AutoCAD General
    Replies: 2
    Last Post: 2009-02-23, 06:32 PM
  3. Selections and Zoom
    By awarren in forum AutoCAD General
    Replies: 4
    Last Post: 2006-02-14, 05:32 PM
  4. Better Linked DWG selections
    By Scott D Davis in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2003-05-04, 03:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •