Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Navisworks .NET API enhancement request - load a gobal options file.

8 REPLIES 8
Reply
Message 1 of 9
deanlyon
1115 Views, 8 Replies

Navisworks .NET API enhancement request - load a gobal options file.

Autodesk,

      I would like to request to load a global options file with the API.  When assembing an array of various sources into a single model with Simulate, it would be nice to be able to load a separate gobal options just before merging or appending a file.  For instance we normally do not import lines, but for contour line models, we need to import lines.  When we have files out of the norm, someone has to manually create a navis model to be included in the composite.  You can load another global options file when you are in the gui. The API should have the ablilty to do the same.

8 REPLIES 8
Message 2 of 9
xiaodong_liang
in reply to: deanlyon

Hi,

Thanks for the wish. I logged the wish NW#49470
Message 3 of 9
deanlyon
in reply to: xiaodong_liang

Thank you. This would really lighten the burden of updating the models.

Message 4 of 9
nick
in reply to: xiaodong_liang

hi Xiaodong Liang,

 

Is there now a way to do this in NW 2016?

 

nick,

Message 5 of 9
xiaodong_liang
in reply to: nick

Hi Nick,

Unfortunately, this ability has not been exposed. If you want to modify some options, you could try with registry, but it would take effect until restarting Navisworks, and I do not verify if all options are fine to modify by registry.

we were talking about the way of API...

 

your email reminded me of 'Start Autodesk Navisworks with a Command Line Switch' where  the switch '-option' allows to load the custom global options. As to the issue you hit, I will discuss with you in that email.

 

Message 6 of 9
deanlyon
in reply to: xiaodong_liang

Can I get an update if there is an expected time frame when this wish is going to be implemented?  

 

The solution I have developed is a C# program that builds models.  If I am out and someone else runs it without loading the Global Options while logged in, then they do not get the desired result. We also have some files that need different settings, so those are having to be updated separately to be included.  We are going to be using Simulate 2016 soon.

Message 7 of 9
manohargss
in reply to: deanlyon

I am interested to know if this has been done in simulate 2016 because I am not able to load a global options. 

Message 8 of 9
deanlyon
in reply to: manohargss

Being able to load a Global Options dynamically, like you would in the GUI, would still be beneficial to me. I understand this has been logged as a wish.  How do people let Autodesk know that they support a wish? 

Message 9 of 9
sarah.thomas
in reply to: deanlyon

Hi All

Was wondering if anyone could help with the following?

 

We are looking for a way to set various navisworks user settings globally ( without opening navisworks and individually setting for each user, and without using global_options).  Is there another way?

 

We have software which calls the navisworks API.  We have a multi-user environment where various users settings need to be transferred from 2014 to 2017 version of navisworks.  From testing and research, we know the API ignores xml setting files placed in global_options directories - we have tested multiple locations, and although the changed settings are visible in navisworks when called via the API they are not present.

 

The settings which we are trying to set globally  are 

- "hud" with "xyz_triad"   set to true

- "grids" with "enabled"  set to false

Examples of xml exported from a 2017 user with the correct settings are shown at the bottom of the message.

 

We have also identified the global_options settings for the current user in the registry using regedit.  But these don't appear to be updated by changing the settings in Navisworks either.  Is there another location in the registry that holds the user settings which the API would access?

 

Any further thoughts?

 

 

Sample XML -

 </optionset>
        <optionset name="hud">
          <option name="xyz_triad">
            <data type="bool">true</data>
          </option>
          <option name="show_position" flags="32">
            <data type="bool">false</data>
          </option>
          <option name="show_grid_location">
            <data type="bool">false</data>
          </option>
          <option name="show_rapidrt_status" flags="32">
            <data type="bool">true</data>
          </option>
          <option name="show_renderer_name" flags="32">
            <data type="bool">false</data>
          </option>
          <option name="show_stats" flags="32">
            <data type="bool">false</data>
          </option>
          <option name="time_graph" flags="32">
            <data type="bool">false</data>
          </option>
          <option name="trav_time_graph" flags="32">
            <data type="bool">false</data>
          </option>
          <option name="tris_graph" flags="32">
            <data type="bool">false</data>
          </option>
          <option name="trav_tris_graph" flags="32">
            <data type="bool">false</data>
          </option>

 

 

<optionset name="grids">
<option name="enabled">
<data type="bool">false</data>
</option>
<optionset name="colour_group">
<optionset name="above_colour">
<option name="red" flags="32">
<data type="float">1.000000</data>
</option>
<option name="green" flags="32">
<data type="float">0.000000</data>
</option>
<option name="blue" flags="32">
<data type="float">0.000000</data>
</option>
</optionset>
<optionset name="below_colour">
<option name="red" flags="32">
<data type="float">0.000000</data>
</option>
<option name="green" flags="32">
<data type="float">1.000000</data>
</option>
<option name="blue" flags="32">
<data type="float">0.000000</data>
</option>
</optionset>
<optionset name="other_colour">
<option name="red" flags="32">
<data type="float">0.800000</data>
</option>
<option name="green" flags="32">
<data type="float">0.800000</data>
</option>
<option name="blue" flags="32">
<data type="float">0.800000</data>
</option>
</optionset>
</optionset>
<option name="label_font_size" flags="32">
<data type="int32">12</data>
</option>
<option name="xray" flags="32">
<data type="bool">true</data>
</option>
</optionset>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report