Results 1 to 5 of 5

Thread: Trying to create a button on the tool palette

  1. #1
    Member
    Join Date
    2015-11
    Posts
    7
    Login to Give a bone
    0

    Question Trying to create a button on the tool palette

    to assign a point an existing point label style. I'm dealing with a topo with 1000+ shots that will have about 8 different styles; is there a command line that I could use to utilize a button on the tool palette to change the label style of multiple points?

    Thanks.

    David

  2. #2
    I could stop if I wanted to tntdraftsol's Avatar
    Join Date
    2008-03
    Location
    Columbia/Jefferson City, MO
    Posts
    224
    Login to Give a bone
    0

    Default Re: Trying to create a button on the tool palette

    Could you put these points into point groups?

  3. #3
    Member
    Join Date
    2015-11
    Posts
    7
    Login to Give a bone
    0

    Default Re: Trying to create a button on the tool palette

    Quote Originally Posted by tntdraftsol View Post
    Could you put these points into point groups?
    The thing with our topos is that we flag out the point with elev and desc, so I have 8 different styles to use depending on how I need to show the point (combinations of elev over desc, elev & desc lined up, elev to the .1' and elev to the .01'). I may change the style of a point three different times before I'm done as I'm moving the labels around so that their legible, so I'd have at least that many ( point groups, and that would not save me much time.

    Right now, I'm selecting a few points and changing the style in the properties manager. Then I repeat the process until I have my final product. In LDD, a co-worker had a VBA routine written that extracted the elev and desc and created a Mtext entity and a line and leader, but it is unusable in C3D.

    I basically need a 'button' that has a style assigned to it so that I can hit the icon, select my points and watch in wonder as they magically change to that style and then appear how I'd like them to look. At least it sounds easy.

    Would it be possible to have a button that assigns points to a particular point group?

  4. #4
    I could stop if I wanted to tntdraftsol's Avatar
    Join Date
    2008-03
    Location
    Columbia/Jefferson City, MO
    Posts
    224
    Login to Give a bone
    0

    Default Re: Trying to create a button on the tool palette

    Quote Originally Posted by dmackey.143011 View Post
    The thing with our topos is that we flag out the point with elev and desc, so I have 8 different styles to use depending on how I need to show the point (combinations of elev over desc, elev & desc lined up, elev to the .1' and elev to the .01'). I may change the style of a point three different times before I'm done as I'm moving the labels around so that their legible, so I'd have at least that many ( point groups, and that would not save me much time.
    I understand what you are saying and you are correct there would be some considerable time up front to create each point label style to include all the permutations you would need, but a silver lining would be that if you put those styles into a template drawing you would have them for next time.

    Quote Originally Posted by dmackey.143011 View Post
    Right now, I'm selecting a few points and changing the style in the properties manager. Then I repeat the process until I have my final product.
    Even if you had all your points in different point groups that had specific point styles and point label styles you can still overide individual points with whatever point or point label style you want.

    Quote Originally Posted by dmackey.143011 View Post
    I basically need a 'button' that has a style assigned to it so that I can hit the icon, select my points and watch in wonder as they magically change to that style and then appear how I'd like them to look. At least it sounds easy.

    Would it be possible to have a button that assigns points to a particular point group?
    Alas I do not think there is a button that can do that. The way points are setup, and you may already know this, is that any point that is inserted into a drawing in Civil 3D goes into the _All Points point group. From there you create your point groups by filtering them from the _All Points point group into the point groups you created; and based on the point group hiearchy you have at that time dictates how those points show up. So for instance I have an iron pin point that was shot with the description of Iron Pin and when it is inserted into a drawing it goes into the _All Points point group automatically. I then create an Iron Pin Point group and include in that group points only having the iron pin description. i also make sure that iron pin point group is above the _All Points point group so i see my iron pin label style and not the label style for _All Points. To sum up the iron pin point is in both point groups, but since the iron pin point group is higher than the _All points the iron pin group takes priority. I hope that made sense. Basically in my opinion based on what you have given so far, even though creating those point label styles and point groups would be time consuming, I would think selecting a group of points a few at a time and changing the style would be more time consuming.

    Quote Originally Posted by dmackey.143011 View Post
    In LDD, a co-worker had a VBA routine written that extracted the elev and desc and created a Mtext entity and a line and leader, but it is unusable in C3D
    As far as that goes, I don't have enough coding knowledge to tell you whether or not that would still be possible, maybe some of the other members might weigh in, or you could post a thread in the programming forum. Sorry I couldn't be of more help.

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

    Default Re: Trying to create a button on the tool palette

    I would also agree to creating specific point groups to control point marker and point label styles.

    Could a tool be created to allow you to pick points to place in specific point groups? Probably. It is a bit cumbersome through Visual LISP, but is possible. You would be better off moving toward .NET in customizing for Civil 3D. Autodesk has limited the power of AutoLISP and Visual LISP for customization by limiting access to the Civil 3D object data.
    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

Similar Threads

  1. Tool palette Linetype Button
    By bowtle in forum AutoCAD Customization
    Replies: 2
    Last Post: 2010-09-15, 12:06 AM
  2. Tool Palette Button Delated
    By blanni in forum ACA General
    Replies: 5
    Last Post: 2007-06-14, 08:31 PM
  3. Create new button on tool palette
    By IanR in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2006-08-07, 01:29 PM
  4. Tool Palette access from a command or button?
    By ktuning in forum AutoCAD Customization
    Replies: 1
    Last Post: 2006-02-27, 10:54 AM
  5. Create Tool Palette custom button images
    By bbapties in forum AutoCAD Customization
    Replies: 8
    Last Post: 2004-11-02, 05:15 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
  •