• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Civil 3D Customization

    Reply
    Member
    Posts: 5
    Registered: ‎12-22-2009
    Accepted Solution

    Labellocation of Cogopoint

    86 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

     

    Please use plain text.
    *Expert Elite*
    Posts: 3,115
    Registered: ‎07-22-2003

    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
    Please use plain text.
    Member
    Posts: 5
    Registered: ‎12-22-2009

    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

    Please use plain text.
    *Expert Elite*
    Posts: 3,115
    Registered: ‎07-22-2003

    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
    Please use plain text.
    Member
    Posts: 5
    Registered: ‎12-22-2009

    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

    Please use plain text.
    *Expert Elite*
    Posts: 3,115
    Registered: ‎07-22-2003

    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
    Please use plain text.