AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

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

vba - Label Component - Reference Text Objects

288 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,385
Registered: ‎07-22-2003
Message 2 of 4 (282 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 (267 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,385
Registered: ‎07-22-2003
Message 4 of 4 (259 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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.