Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Label assembly with field automatically

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
neilyj666
2396 Views, 7 Replies

Label assembly with field automatically

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.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
7 REPLIES 7
Message 2 of 8
Jeff_M
in reply to: neilyj666

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....

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 8
KirkNoonan
in reply to: neilyj666

Wow, quick work gettingthat link killed!

Message 4 of 8
Jeff_M
in reply to: KirkNoonan

The link is exactly how it's posted on the blog. I think there's a problem there, not with someone "getting it killed". Smiley Happy 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. 

Jeff_M, also a frequent Swamper
EESignature
Message 5 of 8
neilyj666
in reply to: neilyj666

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.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 6 of 8
jmayo-EE
in reply to: neilyj666

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

EESignature

Message 7 of 8
onsionsi1
in reply to: Jeff_M

I tried to try VBA with Civil 3D 2012 and it didn't work

 

Thank you in advance.

 

 

Please do not forget approve as solutions and Points
to Remember Please Accept as Solution and Kudos Please
Message 8 of 8
Jeff_M
in reply to: onsionsi1

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.

Jeff_M, also a frequent Swamper
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report