AutoCAD Civil 3D Customization

Reply
Member
lang
Posts: 5
Registered: ‎12-22-2009
Message 1 of 6 (140 Views)
Accepted Solution

Labellocation of Cogopoint

140 Views, 5 Replies
11-17-2012 02:59 AM

Hello,

 

is there a possibillity to get the labellocation of a cogopoint in visuallisp.

I tried it with (vlax-get-property  cogopto "LabelLocation") but the proprty Labellocation seems unknow (C3D 2012).

 

Has somebody an idea?

 

Thanks Robert

 

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

Re: Labellocation of Cogopoint

11-17-2012 06:06 AM in reply to: lang

You can get the point location, but not the label location. Can you elaborate on what you need this for?

Jeff_M, also a frequent Swamper
Member
lang
Posts: 5
Registered: ‎12-22-2009
Message 3 of 6 (131 Views)

Re: Labellocation of Cogopoint

11-17-2012 06:53 AM in reply to: Jeff_M

Hello Jeff,

 

I have a polyline and cogopoints, the label of the cogopoints should be aligned to the polyline (this is possible with 'LabelRotation) and it should be possible that the label is above or under the line is positioned (the cogos have the same LabelStyle) and the user can decide where the label is postioned.

In the C3D 2013 API Idocumentation I see the property LabelLocation, do know is it in 2013 possible?

 

Thanks Robert

*Expert Elite*
Jeff_M
Posts: 4,175
Registered: ‎07-22-2003
Message 4 of 6 (127 Views)

Re: Labellocation of Cogopoint

11-17-2012 07:42 AM in reply to: lang

The LabelLocation property is only exposed in the .NET API, so cannot be used in lisp without some special .NET programming....at which point you'd be better off just coding the whole thing in .NET.

Jeff_M, also a frequent Swamper
Member
lang
Posts: 5
Registered: ‎12-22-2009
Message 5 of 6 (124 Views)

Re: Labellocation of Cogopoint

11-17-2012 09:25 AM in reply to: Jeff_M

Hello Jeff,

 

thank you for the information.

Are the re two different APi - Reference- Guides for .Net and ActiveX? Where can I see which properties are exposed in ActivX?

I used http://docs.autodesk.com/CIV3D/2013/ENU/API_Reference_Guide/html/163778ae-9fa7-6737-5afc-37c955f6f54...l

 

Thanks Robert

*Expert Elite*
Jeff_M
Posts: 4,175
Registered: ‎07-22-2003
Message 6 of 6 (121 Views)

Re: Labellocation of Cogopoint

11-17-2012 09:34 AM in reply to: lang

On the C3D Help pages, there is a link for the COM reference guide, but it will take you to the 2012 COM reference guide. There is not one specifically for 2013.

 

11-17-2012 9-32-02 AM.png

Jeff_M, also a frequent Swamper

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community


Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D

Twitter

Facebook

Blogs