×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Macro for Bill of Materials is not reading assembly name

Macro for Bill of Materials is not reading assembly name

Macro for Bill of Materials is not reading assembly name

(OP)
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?

RE: Macro for Bill of Materials is not reading assembly name

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

cheers

RE: Macro for Bill of Materials is not reading assembly name

(OP)
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?

RE: Macro for Bill of Materials is not reading assembly name

Use SolidWorks Explorer for renaming files.

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

RE: Macro for Bill of Materials is not reading assembly name

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources