About the authors

« Converting assembly constraints of two independent parts displays the error "Both parts are the same!" | Main | Remove trailing zeros of referenced parameters in leader text »

11/15/2011

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a01156ed841f2970c015436f02b9e970c

Listed below are links to weblogs that reference Insert COG in drawing tables:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Thanks Bob,

This will help me no end. I would just like to ask if this could be modified so the table would only show the top level sub-assemblies COG within the main assembly.

For example, within my main assembly, I may have a Platform arrangement constructed of multiple sub-assemblies. The COG of these sub-assemblies is lesser importance than the overall COG of the Platform. Therefore It would be benefical if I could eliminate these from the table.

Thanks once again,

Thanks Graeme! Always pleasant to hear that you can put myposts to good use.

In the first sub there is following call near the end of the sub:

Call processAllSubOcc(oCompOcc,sMsg,iLeafNodes,iSubAssemblies)

Just comment out that line by placing a single quote in front, like this:

'Call processAllSubOcc(oCompOcc,sMsg,iLeafNodes,iSubAssemblies)

As a result you will get the COG of only the first level subassemblies. Hope that was what you were looking for.
Bob

Yes Bob, that's exactly what I was looking for.

Thanks again.

Hi there,

Just wondering has a hot fix been created for the issue of manually converting constraints to joints in Inventor Simulation where I get the error that both parts are the same?

Cheers,
N

Sorry posted comment above under the wrong thread!

Hi Bob, if you're still checking this posting I was wondering if you could tell me how I can add the volume of the part to the macro you wrote. I need the part volume along with the centre of gravity to perform a buoyancy calculation of my assembly.
Many thanks,
Lachlan

Bob, I forgot to say that I needed the macro to asses every individual part in my assembly. Does this mean I need to add a line of code to delve deeper than the sub assembly level you aimed at?
Thanks,
Lachlan

Lachlan,
I added another macro that you can download here:
http://beinginventive.typepad.com/files/COG_in_drawing_tables/scan_COG_VOL_assembly.txt

It adds both COG and Volume information to the CSV file and works now also on individual components, not only on subassemblies. I make no attempt in showing the assembly hierarchy in the CSV though.
Bob

Hi Bob,
Thank you very much for accommodating my request. Unfortunately I can't seem to run the macro in my assembly. I get the following error:
Run-time error '52':
Bad file name or number
When i select the debug button it highlights the "open outputfile for output as #1".
Do I need to be smarter than copying this into a macro within the file and trying to run it?
Lachlan

Make sure to close down Excel or at least close any previous versions of the csv file you have open in Excel. If you run the macro multiple times on the same assembly, the macro will attempt to create a csv file with the same name over and over again. This can only happen if there is no previous version of the file is open in Excel. That is my guess on what is going on.
Bob

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

RSS Feed

  • Subscribe

May 2012

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Self-Service Kiosk

Did not find what you were looking for?
Give the Inventor Self-Service Kiosk a try and hit the Start button
Note: the kiosk momentarily only works with Internet Explorer
kiosk