General

Installation
Licensing
CAD Interfaces

Animation

POV-Ray Rendering
Interactive Web Pages
IPA Frequently Asked Questions
 
Interactive Web Pages
 

What are the system requirements for viewing the interactive pages?

1. The system must have the Webview plugin installed. The latest version of the     viewer will automatically be installed by going to the following page:     http://www.immdesign.com/webview/
2. User must have administrative privileges to successfully install the plugin
3. Default browser must be Internet Explorer 5.5 or higher

Internet Explorer crashes when I try to view a published page

By far, the most common cause of a crash while viewing an interactive page is the video card driver. To confirm whether or not this is a video card driver problem, please try reproducing this problem with a display setting of 256 colors (Start-->Settings-->Control Panel-->Display-->Settings-->Colors). If Internet Explorer no longer crashes when viewing the same page, this indicates that the problem is related to the video card/driver. Please try installing the most recently updated driver for your video card. In most cases, the video card manufacturer offers these for free from their web site.

IPA WebView hangs when I view a web page. "Loading IPA WebView" displays but no CAD model.

There are several steps to troubleshooting and correcting this problem. First verify the privilege and security settings:

  1. Is the user loading the web page an administrator on the machine? ActiveX controls require administrator privilege to install.
  2. Are the Internet Explorer security settings correct? The ActiveX settings should be set as follows:
    • Download signed ActiveX controls ==> Prompt
    • Download unsigned ActiveX controls ==> Disable
    • Initialize and script ActiveX controls not marked as safe ==> Disable
    • Run ActiveX controls and plug-ins ==> Enable
    • Script ActiveX controls marked safe for scripting ==> Enable

Once these settings are correct, close down all Internet Explorer windows, remove any references to the IPA WebView ActiveX control, and then open Internet Explorer and load the page.

To remove all references to IPA WebView, follow these steps:

  • Open Windows Explorer and enter the address:
    %SystemRoot%\Downloaded Program Files
    Look for an entry called IPA Control. Right-click on this and select Remove
  • Open Windows Explorer and enter the address:
    %SystemRoot%\system32. Search for ipactrl.dll and delete it.
Now, open IE and load the web page.

If the web page still does not load, then download this log viewer tool from our web site and run it on the machine that is not displaying the page correctly. Click the View Log button, copy the contents of the log window, and send it to Immersive Design Support.

Why do I get an error loading my published page from an IIS 6.0 server?

IIS 6.0 will not serve pages with an unrecognized MIME type. To correct this in the IIS Manager, expand the computer's name and the "Web Sites" folder, then right-click the website which you would like to allow the new file type to be served on and select "Properties".

In the Properties screen, click on the "HTTP Headers" tab. On the bottom of this property page, click the "MIME Types" button. A list of the custom MIME types set on this computer will now be displayed. On the right side of the MIME type window click the "New" button. Now type ".idasf" (without quotes) in the first text box and in the "MIME type" text box, type "application/octet-stream" (without quotes) and press the "OK" button on both of the dialogs, and "Apply" on the Properties window.

Repeat this for ".idb". If you are using Solid Edge Web Publisher, create an entry for ".idg" also. All three types can be entered as application/octet-stream.

How do I change the background color on the web page?

The default template (Header Viewer Right, etc.) has a white background by default. To change the background color you must edit the template. The template file that must be modified is visuals.html and can be found in the c:\Program Files\Immersive Design\WebPublish\Default\html directory. When modifying a template it is best to make a copy of the template directory (in this case "Default") and save it in the Webpublish folder with a new name. The next time you publish an assembly this new template name will appear in the template pull down menu. The modification to the visuals.html file to allow the IPA background color to be used involves commenting out a few lines of code. Open the visuals.html file in Notepad or another text editor and add a // at the start of the lines as shown below:

//      SetBGColor( document.bgColor );
//      if ( document.bgColor == "#000000" ) {
//      SetTextColor( "#FFFFFF" )
//      } else {
//      SetTextColor( "#000000" )
//      }

When I rotate\pan\zoom the assembly the geometry appears faceted. Is it possible to turn this off?

To improve graphical performance when moving an assembly the geometry is set to a lower quality level (Decimated geometry). This can be turned off by toggling the Autohide button on the webpage. By default the Autohide function is turned on for optimum performance. The templates can be modified to have this function turned off by default by updating the visuals.html file for your template. The changes required are as follows:

Search for <PARAM Name=Autoplay Value=0> and add <PARAM Name=Autohide Value=0> immediately after it.

Search for name="autoh" img src="../icons/autohide-d.gif" and change it to name="autoh" img src="../icons/autohide.gif"

How do I control the display of items in the BOM?

The BOM generated from IPA typically contains a line item for each part contained within the assembly. This may not be desired for all assemblies. For example, a weldment may be the combination of several different components, however you may not want all of these components listed in the BOM as they are not individually replaceable.

You can remove components from the BOM or add subassemblies as a line item on the BOM through the user property "Serviceable"

The "Serviceable" property with a value of "Yes" should be added to parts and subassemblies that you want to show up in the BOM. Any subassembly or group that should appear in the BOM must have a property named "partname" with a value.

NOTE: It is best to set the "Serviceable" property to "no" in the Global list (Tools-->Options-->User Properties) and then manually set it to "Yes" at the part and subassembly level. This will prevent the Universe, Viewpoint, and Light from appearing as an "Assembly" line item in the BOM.

Is it possible to trigger an animation by clicking on an object in the graphics window?

Yes this is possible.

1. Identify in your assembly the part that you want to initiate the animation when selected.
2. Open the assembly_name.js file from the published directory and identify the object id# of the part in the object list (record this number)
3. Open visuals.html file from the html folder in Notepad.

4. Add the following lines after:

top_level.IPAControl.Show();
}

LINES TO ADD

if (id == "75643208") {
var step = 1
if (typeof( top_level.instr["x"+step] ) != "undefined" ) {
top_level.deselectall()
top_level.playit (step,0,50)
}
}


5. Set id# appropriately (example 75643208)
6. Set frame range that you want to play (example 0,50)
7. Save visuals.html
8. Open web page
9. Go to instructions
10. Click on object


Note: Each time the page is published the id# will change

How do you get the BOM or Instructions to display automatically when the page is launched?

To have the BOM or Instructions automatically open when the page is launched:

1. Create a bom.html file in the html directory with the following content:

<HTML>
<head>
<STYLE type='text/css'>@import url('styles.css');</STYLE>
<script language='javascript' src='util.js'></script>
<script language='javascript'>top_level.instr = window;</script>
</head>
<body class="header" onload='javascript:top_level.redrawBOM()'>
</body>
</HTML>

2. Change top_level.instr.location = 'toc.html'
to top_level.instr.location = 'bom.html'

How can I get cost values to appear on the Excel spreadsheet that is exported from the Part Request section?

When exporting the Parts Request sheet to Excel the cost is calculated based on the value assigned to the property "Cost" on each of the components or subassemblies.

Add the property "Cost" to each object and assign an appropriate value to it.

How can I improve the performance\speed on the interactive display on the web page?

Reduce the image quality setting in the CAD system prior to opening your assembly in IPA. This setting can significantly reduce the time required to load an assembly and enhance the graphical performance on the published page.

How do I sort the BOM by default to a column other than Part Name?

To set the default sort to use DRAWING_NO all you have do is set var BOMsortfield = "DRAWING_NO" in the tree.js file. To reverse the sort order change: var BOMdir = 0 to var BOMdir = 1.

How can I control the which properties\columns show up in the BOM by default (ie. Options settings)?

To set the default visibility state of a property in the BOM and/or the Properties window modify\add the following code to tree.js. Update the true\false value to control the visibility on the BOM and Properties windows.

node.BOMVis = false
node.PropVis = false
if(field == "property_name1"){
node.BOMVis = true
node.PropVis = true
}
if(field == "property_name2"){
node.BOMVis = true
node.PropVis = true
}

Is it possible to eliminate the Part No. Column from the BOM?

You can get rid of the Part No. field by commenting out the following lines in the tree.js file:

writeSelectBOM( doc, BOM[i].name, BOM[i].nodeLink )

displayBOMFieldHeading (doc, "name", "Part No.", sfield, sdir)

To comment these lines out just add // at the beginning of each line

Is it possible to control the playback speed on the webpage?

Yes. Add the code below to the visuals.html file just above the following line:

<script LANGUAGE="javascript" FOR="IPAControl" EVENT="select(id)">

----------------------------------------------------------------------

<script LANGUAGE="javascript" FOR="IPAControl" EVENT="loadComplete">
top_level.IPAControl.Duration = 30
top_level.IPAControl.DisplayFrameRate = 10
top_level.IPAControl.SkipFrames = true
</script>

----------------------------------------------------------------------

Set values for Duration, DisplayFrameRate, and SkipFrames as desired.

Duration - Specifies the time in seconds that the entire animation should take to play.
If not specified the initial value is the number of frames in the animation / 10.

DisplayFrameRate - Specifies theframe rate for throttling, in frames per second.
If not specified the Initial value is 15 fps - no more than 15 frames will be shown in a second.

SkipFrames - Specifies whether frames should be skipped to keep up to real time.
FALSE = (default) show every frame, even if that takes longer than the specified duration
TRUE = try to meet the specified duration by dropping frames

In general the following rules apply:

1. If "Duration" and "DisplayFrameRate" are not set, (ie they are commented out //) then the animation will play at 10 FPS

2. If only "Duration" is set, the animation will play for this length of time up to a maximum of 15 FPS

3. If only "DisplayFrameRate" is set, the animation will play at this speed up to a maximum of 10 FPS

4. If both "Duration" and "DisplayFrameRate" are set, the animation will be played in the length of time set by the duration but no faster than the value set by the "DisplayFrameRate"

Is it possible to display a property value instead of the name in the graphics window when a part is selected?

Yes. Add the code below to the visuals.html file just above the following line:

<script LANGUAGE="javascript" FOR="IPAControl" EVENT="select(id)">

----------------------------------------------------------------------

<script LANGUAGE="javascript" FOR="IPAControl" EVENT="loadComplete">
var i
for (i in top_level.objectList) {
top_level.IPAControl.Relabel (i, top_level.objectList[i]["weight"])
}
</script>

---------------------------------------------------------------------------------

Change the "weight" field to the desired property name

Can I change the selection color when multiple components are highlighted?

Yes. Add the code below to the visuals.html file just above the following line:

<script LANGUAGE="javascript" FOR="IPAControl" EVENT="select(id)">

----------------------------------------------------------------------

<script LANGUAGE="javascript" FOR="IPAControl" EVENT="loadComplete">
top_level.IPAControl.HighlightStyle = 1
</script>

----------------------------------------------------------------------

Set the HighlightStyle as follows:

0 = no color
1 = all Blue
2 = all Orange
3 = First part Blue, rest Orange

How do I set the value for a property to be a hyperlink?

There are times you may want to add a link to another document, such as a detailed drawing of a component, the supplier web site, or a specification sheet. This can be done through the user properties.

The image above shows how a link to a jpg image of a Part Drawing has been added to an object. To add a link as a property value use the following format:

Link to a local file:
Link:filename.xxx (Where filename.xxx is the name of a file located in the folder of the published assembly)

Please note that you must manually put the document you are linking into the publish folder. This can be done through windows explorer and either moving or copying the file.

Link to a website:
Link:http://www.somewebsite.com
http://www.somewebsite.com

To change the appearance for the link value on the published page, use the following format:
Link:Filename.xxx;Filename
The value for this link would appear as "Filename" as opposed to "Filename.xxx"

How do I automatically add links to drawings or other files that are associated with components in the assembly?

Add links to pdf files (or any other file extension) through the user properties. A property added to an object with the name "Drawing" and a value of "Yes" will automatically create a link to the part file name.pdf in the current folder.

Add the "Drawing" property with a value of "Yes" to create a link to the "Filename.pdf" file located in the directory with the idb files.

NOTE: Since subassemblies in IPA do not have filenames we are keying
Off the "PARTNAME" property for the name of the pdf file.

You will need to replace the redrawProps function in the tree.js file with the following definition:

function redrawProps(id)
{
if (typeof(top_level.props) != "undefined") {
var doc = top_level.props.document
outputHead(doc,"props")
with (doc) {
writeln("<body class='props'>")
writeln("<div class='comment'>Properties</div>")
writeln("<table border=0 cellspacing=0 width=300>")

if (id >= 0) {
for (var i = 0; i < objectTemplate.length; ++i) {
var node = objectTemplate[i]
if (node.PropVis) {
redrawPropsField(doc,id,node.field,node.label)
}

}
var drw = objectList[id].filename
if (drw == ""){
drw = objectList[id].partname
}
if (drw != "" && /^yes/i.test(objectList[id]["drawing"])) {

drw = drw.replace (/\.[^.]*$/, "")
drw = "link:" + drw.replace (/^.*[\\/]/, "") + ".pdf"
objectList[id]["drawing link"] = drw
redrawPropsField(doc,id,"drawing link","Drawing Link")
}

}
}
outputTail(doc)
}
}



   
   
   
 
Copyright © 2004, Immersive Design, Inc.
Phone: 978.266.1800
Email: info@immdesign.com