AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
New Member
2 Posts
0 Kudos
Registered: ‎05-17-2012
Post 1 of 4

vba - Label Component - Reference Text Objects

306 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*
4,621 Posts
920 Kudos
Registered: ‎07-22-2003
Post 2 of 4

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
2 Posts
0 Kudos
Registered: ‎05-17-2012
Post 3 of 4

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*
4,621 Posts
920 Kudos
Registered: ‎07-22-2003
Post 4 of 4

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
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!