Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro for Bill of Materials is not reading assembly name

Status
Not open for further replies.

shawn76o

Nuclear
Nov 14, 2006
31
I have a macro that traverses an assembly to generate a customized Bill of Materials. I'm still in the testing phases, and I've run the macro on many different SW assemblies with no problem, but there is one small assembly that is giving me a problem.

For some reason, the macro is not grabbing the component name of the assembly itself, though it does find the component names for the sub-assemblies and every other part thereafter.
What I'm trying to understand is, what could be different about this assembly that could cause this to happen? I'm not very experienced in SW and I'm hoping there are some obvious things that I could check for?
 
Replies continue below

Recommended for you

Special characters in the assy name?
Number of characters in the pathname?

[cheers]
 
No, the assembly name is "STRAIGHT ADDED ON.SLDASM", and the number of characters in the pathname are much fewer than the other assemblies I've run the macro on.

On a side note, where can I change the name of the assembly? I noticed that on sub-assy's and parts, I just right-click and select "Component Properties" to change those component names, but that menu option is not available for the top-level assembly. So where is that done? Do I just have to change the filename, and the assy name will change? Or is that done somewhere else?
 
Use SolidWorks Explorer for renaming files.

Chris
SolidWorks 06 5.1/PDMWorks 06
AutoCAD 06
ctopher's home (updated 10-27-06)
 
shawn76o,

You are going to at least post your code if not the assembly itself. Bugs like this are not easily diagnosed by just describing the problem.

SA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor