View Full Version : API Selections
justsagar
2010-01-01, 08:51 AM
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
dderoeck
2010-01-12, 07:24 AM
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.
justsagar
2010-01-13, 04:18 AM
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
dderoeck
2010-01-15, 11:39 AM
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.
....
justsagar
2010-01-19, 04:50 AM
....
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
dderoeck
2010-01-20, 02:28 PM
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
dgorsman
2010-01-20, 03:44 PM
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.
justsagar
2010-01-22, 09:29 AM
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
vyeung1976
2010-01-25, 07:02 AM
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?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.