cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

BOM file with path info

Highlighted
Regular Member

BOM file with path info

Hi Folks,
A co-worker asked me how to make a BOM listing of an assembly (from the assembly model) that included the path so he could see where the parts were coming from.

I know that I did this back in the pre WF days but cannot see any way to do it in WF2. I can get a BOM html file OK but this has no path info. Similar if I make a text file from the model tree itself. We do have the path shown in the ProE window of each assembly or part when you have that window open.

I looked in WF2 Help and am none the wiser. I see the following
1 REPLY 1
Highlighted

RE: BOM file with path info



In Reply to:
A co-worker asked me how to make a BOM listing of an assembly (from the assembly model) that included the path so he could see where the parts were coming from.

You can do this with Pro/WebLink.

If you use this article as your starting point (sends assembly BOM data to Excel):
http://inversionconsulting.blogspot.com/2008/04/proweblink-sending-your-proengineer.html


Then change this line by adding "INFO" in the GetData() function:
appdata.params = new Array( "LEVEL", "NAME", "QTY", "INFO", "DESC", "PROI_CREATED_ON" );


Then add the extra 'else if' block in the GetBOMData() function:

if (appdata.params[i] == "LEVEL") {
model_array["LEVEL"] = appdata.comppath_seq.Count+1;
}
else if (appdata.params[i] == "NAME") {
model_array["NAME"] = model.FileName;
}
> else if (appdata.params[i] == "INFO") {
> var descr = model.Descr;
> model_array["INFO"] = descr.Host + "|" + descr.Device + "|" + descr.Path;
> }
else if (appdata.params[i] == "QTY" && model == appdata.root) {
model_array["QTY"] = 1;
}


Your BOM in Excel will have extra stuff including path. Format as you see fit.


Marc
--
Marc Mettes
-
Visit My CAD/PDM AutomationBlog
Or, Subscribe to My CAD/PDM Automation Blog by Email







Announcements