2011. Error with filenames in a drawing parts list.

2011. Error with filenames in a drawing parts list.

Anonymous
Not applicable
227 Views
1 Reply
Message 1 of 2

2011. Error with filenames in a drawing parts list.

Anonymous
Not applicable

We are using Inventor 2011. 

 

Inventor adds extra spaces to the parts list filenames when they wrap.

The space is added just before the break.

 

We access the parts list in several VBA programs.  Mainly to get the line Item number.

With the Filename corrupted with random space characters I cannot tie the document to the item number in code.

 

Is there a way to get the true fully pathed document name from a parts list Line item instead of the flakey filename that is displayed?

 

 

 

0 Likes
228 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Okay.  Since I could not find a way to retrieve the true filename from the parts list I drilled down into the parts list source document (Assembly) and retreived the Parts Only BOM View. 

 

Iterating through that I tried ReferencedFileDescriptor.FullFileName property.  Unfortunately it crashes on some assemblies and not others.  Don't know why.

 

In a last ditch effort I ended up using the BOMRow property  ComponentDefinitions(1).Document.FullFileName

 

This appears to work but I am concerned that the ComponentDefinitions is a collection and not a single componentdefinition.

 

Why would a BOM Row need more than one?

 

0 Likes