AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
New Member
kkaraagac
Posts: 2
Registered: ‎05-17-2012
Message 1 of 4 (300 Views)

vba - Label Component - Reference Text Objects

300 Views, 3 Replies
05-17-2012 02:32 AM

How to reach Reference Text Object in Vba?

 

We can add Reference Text in Label Components. it can be referenced to Alignment, COGOPoint, Parcel, etc. For example, after that it is needed to select a COGO Point, and Label is changed from "???" to a property of selected Reference Object. I want to add Reference Text by VBA.

 

Thanks in advance,

*Expert Elite*
Jeff_M
Posts: 4,521
Registered: ‎07-22-2003
Message 2 of 4 (294 Views)

Re: vba - Label Component - Reference Text Objects

05-17-2012 06:29 AM in reply to: kkaraagac

Two things....

There is a forum specifically for customization questions: HERE

The Reference Text Component can be read, but you cannot set the object used in it programatically. At least not that I've been able to ascertain.

Jeff_M, also a frequent Swamper
New Member
kkaraagac
Posts: 2
Registered: ‎05-17-2012
Message 3 of 4 (279 Views)

Re: vba - Label Component - Reference Text Objects

05-17-2012 09:35 PM in reply to: Jeff_M

Thanks Jeff.

 

"...The Reference Text Component can be read..."

Forget about setting a reference text programatically, it is enough to reach or read reference text component. could you please write an example with 2-3 lines here?

*Expert Elite*
Jeff_M
Posts: 4,521
Registered: ‎07-22-2003
Message 4 of 4 (271 Views)

Re: vba - Label Component - Reference Text Objects

05-18-2012 06:39 AM in reply to: kkaraagac

Seems as though I mis-spoke. The COM API (ActiveX used in VBA) does not expose the Label components. 

Jeff_M, also a frequent Swamper
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.