See the top rated post in this thread. Click here

Results 1 to 10 of 10

Thread: using part of description for point label style?

  1. #1
    Member
    Join Date
    2009-12
    Posts
    42
    Login to Give a bone
    0

    Question using part of description for point label style?

    Does anybody know of a way to create a point label style based on just one part of a point description?
    For example, our description for a tree is "V-DEC 24".
    I just want the "24" part of the description in my label style?
    Any ideas on how to acomplish this?
    Thanks.

  2. #2
    All AUGI, all the time brian.hailey933139's Avatar
    Join Date
    2006-12
    Location
    Loveland, CO
    Posts
    734
    Login to Give a bone
    0

    Default Re: using part of description for point label style?

    A couple different options. You could create a user defined property for that part of the description. You could also use your description keys to convert the raw description of "V-DEC 24" to a full description of "24" and then in the label style use the full description.

  3. #3
    Member
    Join Date
    2009-12
    Posts
    42
    Login to Give a bone
    0

    Default Re: using part of description for point label style?

    Thanks for the response Brian. I'm not familiar with creating user defined properties. I will go through the help menus to try and figure that out. I looked into changing the description keys to convert the raw description into the full description but I can't figure out where to do that. Can you point me in the right direction?
    Thanks.

  4. #4
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    3

    Default Re: using part of description for point label style?

    If you use a Description Format that looks like this:

    $+

    Then you'll get what you want in your Full Description. That code says to "Use everything except for the first parameter." In Desc Keys, "parameters" are space-delimited strings. So if your Raw Desc looks like this:

    V-DEC 24

    you have two parameters; the first is "V-DEC" and the second is "24". And actually, parameters count up from 0, so "V-DEC" is considered to be Parameter 0, and the "24" is Parameter 1.

    A description format like this:

    $*

    will be replaced with all of the parameters - in effect, it's a pass-through, and says "Use the entire Raw Desc".

    You can also grab specific parameters using $0, $1, $2, $3, $4, $5, etc.

    So for example, assume we have this Raw Desc:

    a b c d e

    All other text in the Desc Format gets passed through unchanged. So here's what we'd get for various Desc Formats (first line is the Desc Format, and the second line is the resulting Full Desc):

    $*
    a b c d e

    $+
    b c d e

    $0
    a

    $1
    b

    $2 $3
    c d

    TREE $*
    TREE a b c d e

    TREE $+
    TREE b c d e

    TREE $2
    TREE c

    $3 TREE $1
    d TREE b
    Last edited by sinc; 2010-03-04 at 12:25 AM.

  5. #5
    Member
    Join Date
    2009-12
    Posts
    42
    Login to Give a bone
    0

    Default Re: using part of description for point label style?

    That works perefectly. Thanks for the tips sync

  6. #6
    All AUGI, all the time brian.hailey933139's Avatar
    Join Date
    2006-12
    Location
    Loveland, CO
    Posts
    734
    Login to Give a bone
    0

    Default Re: using part of description for point label style?

    I don't have C3D on this computer but I thought $0 was the first parameter and $1 was the second. In your tree example:
    TREE $0
    TREE a

    TREE $1
    TREE b

    I'll double check when I can.

  7. #7
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default Re: using part of description for point label style?

    Oops, yeah, that was an error. I was typing all this from memory, too, and wasn't checking it in C3D as I typed.

    I went back and fixed the post, so it should be correct now.

  8. #8
    Member
    Join Date
    2013-12
    Posts
    2
    Login to Give a bone
    0

    Default Re: using part of description for point label style?

    Quote Originally Posted by sinc View Post
    If you use a Description Format that looks like this:

    $+

    Then you'll get what you want in your Full Description. That code says to "Use everything except for the first parameter." In Desc Keys, "parameters" are space-delimited strings. So if your Raw Desc looks like this:

    V-DEC 24

    you have two parameters; the first is "V-DEC" and the second is "24". And actually, parameters count up from 0, so "V-DEC" is considered to be Parameter 0, and the "24" is Parameter 1.

    A description format like this:

    $*

    will be replaced with all of the parameters - in effect, it's a pass-through, and says "Use the entire Raw Desc".

    You can also grab specific parameters using $0, $1, $2, $3, $4, $5, etc.

    So for example, assume we have this Raw Desc:

    a b c d e

    All other text in the Desc Format gets passed through unchanged. So here's what we'd get for various Desc Formats (first line is the Desc Format, and the second line is the resulting Full Desc):

    $*
    a b c d e

    $+
    b c d e

    $0
    a

    $1
    b

    $2 $3
    c d

    TREE $*
    TREE a b c d e

    TREE $+
    TREE b c d e

    TREE $2
    TREE c

    $3 TREE $1
    d TREE b
    So Sinc, In case I have a raw descp as CM24, what expression would get me a full descp "24'?

  9. #9
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,105
    Login to Give a bone
    0

    Default Re: using part of description for point label style?

    You could have a specific Description Key with the full raw code (CM24). In your description format, you could label it how you wish.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  10. #10
    Member
    Join Date
    2013-12
    Posts
    2
    Login to Give a bone
    0

    Default Re: using part of description for point label style?

    Thanx Opie

    Problem is that I have a couple of such descriptions as my raw and I thought there could be a way to drop the CM for all in the full descp. At the scale am printing the point descriptions turn out to be relatively big and make my work untidy

Similar Threads

  1. 2014: Default Point Label Style
    By tim_newsome in forum AutoCAD Civil 3D - Surfaces
    Replies: 3
    Last Post: 2014-02-19, 04:51 PM
  2. 2013: Point Label Style - Dragged State - Point to Node
    By sebastien795355 in forum AutoCAD Civil 3D - General
    Replies: 2
    Last Post: 2013-11-04, 04:10 PM
  3. Point/Label Style question.
    By todd.80290 in forum AutoCAD Civil 3D - General
    Replies: 3
    Last Post: 2012-04-10, 03:05 PM
  4. setting precision for point label style
    By ramirop in forum AutoCAD Civil 3D - General
    Replies: 2
    Last Post: 2009-01-28, 06:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •