Found a link to some code (http://c3dxtreme.blogspot.com/2010/12/automatically-label-those-road.html) to automatically place an Mtext field to label assemblies. It was written for C3D 2009/2010 but I can't get it to work for 2011 - any VBA gurus care to take a look to see if it will run (or not) on 2011
Thanks
neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
Well, I was able to modify the file so it works in both 2009 & 2010. The same file should work in 2011, but I can't test it because I do not want to install the VBA enabler. I've made a few other minor changes as well, but since Justin is the one who posted this routine I feel I should ask him if he'd like to post the revised file or if he wouldn't mind me doing so here. I've sent him an email asking just this....
The link is exactly how it's posted on the blog. I think there's a problem there, not with someone "getting it killed". Here's a link to the page it's on: C3DExtreme
Justin has granted permission for me to post the updates here.
Attached is a zip file with both a VBA and Lisp version of the code. Either should work in any version of C3D. There is a Readme with a little more info.
Many thanks Jeff_M (and Justin) for the quick turnaround to this request - I've just tried the lisp version and it works perfectly
PS in the original link I posted, an extra bracket had crept in at the end so the link didn't work
neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Thanks for the additional work of the lisp version. I've been coping mtext objects from assembly to assembly and editing the field. I'll give it a shot in a bit.
John Mayo
I tried to try VBA with Civil 3D 2012 and it didn't work
Thank you in advance.
A little more information would be helpful. "It didn't work" is not very descriptive. Were there any error messages or warnings? How did you load and run it? DId you try the lisp version?
I cannot test it in 2012 because I did not, nor plan to, install the VBA Enabler.