See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Is there any way to create and edit palettes other than through the built-in interface?

  1. #1
    Member
    Join Date
    2004-03
    Location
    Tyler Texas, USA
    Posts
    10
    Login to Give a bone
    0

    Default Is there any way to create and edit palettes other than through the built-in interface?

    Hello All,

    I'm not sure if this is the right thread, it's kind-of programming and customization. I have a question regarding the creation of tool palettes please. I looked through various threads but could not find something specific on this. (As before, please bear with me if I use the wrong terminology, I’m an architect and also our IT/CAD manager, have done a lot of customizing in AutoCAD with toolbars and menus, but am not an expert and I don’t know LISP). I will explain what I am trying to do:

    I’m experimenting with tool palettes which may be useful but seem to have some major drawbacks as well. I have our system well-organized and our building files have three main groups of elements, new, existing and demolished. When I started with mns files years ago, I could write a block of code, say for inserting new elements, test and trouble shoot it, then, once it was all working, copy the entire block of code and, with minor editing, quickly create whole new sections of code for existing and demolished elements and so on.

    I created many toolbars and menus to improve our CD production and minimize operator error (which I imported into the CUI) and they work well. Inserting blocks from my toolbars is very quick and efficient but it is very cumbersome for me to create icons for buttons and, when I have a lot of blocks, they are a pain to access on a long flyout. My menu pulldowns work well but are also a bit cumbersome in use when you have to move down through a few sub-levels to get to the block you want.

    Thus, palettes look like a promising solution but, unless I am missing something, I am finding the creation and editing of pallets to be very dumbed-down and extremely painful and tedious. I included screenshots showing my building plans workspace, the palette I am creating and the tool property dialogue box. I made a palette group, “AGR BLOCKS” then made palettes according to the way I have set up my files, i.e. for inserting new, existing, and demolished blocks. I used the Design Center to go to my libraries, selected the specific blocks I wanted and dropped them onto their respective palettes.

    My problem is with creating and editing palettes. The only way it seems possible to edit the insertion layer and rotate option is to manually right-click on each individual block on the palette, change these options, then save the properties which is amazingly tedious. Is there no way to access the code behind the scenes directly in a textual based system where such changes could be done much faster and more efficiently? In the old mns days, I could copy the entire “agr Flr Plns N” group here, rename it to “agr Flr Plns X” (i.e. existing), edit it textually and, with minor tweaks to my block names, quickly create a whole new section for inserting my existing block elements and so on.

    It seems to me that this cannot be done at all and, after creating my palette here for inserting new building plan elements, I have to go through the entire laborious process again to create an almost identical palette for inserting my existing block and also have to manually edit every single block property again to set the insertion layer and rotate option. Is this really the only way Autodesk has for us to create and edit palettes or is there a more efficient way?

    Another problem I see is that there is no way for me to get to the code in the “Source file” box and the issue here is that it is hard-coding the drive and path to my blocks. Thus, if I ever have to change my drive to anything other than “I:” nothing will work. It only gives me the option to browse to the block and it then inserts the hard code whereas I want the following in there:

    (strcat (getenv "agracadblks") "/data/cad/acad/bloks/plans/doors/new/dn1085")

    Is it possible to place a string like this into the “Source file” box?

    Sorry for the long read but thanks for taking the time to so…
    Attached Images Attached Images
    Last edited by alangroberts; 2014-09-29 at 02:28 PM. Reason: I attempted to add the screenshots to illustrate my question

  2. #2
    Member
    Join Date
    2004-03
    Location
    Tyler Texas, USA
    Posts
    10
    Login to Give a bone
    0

    Default Re: Is there any way to create and edit palettes other than through the built-in interface?

    Sorry, I posted this by accident before I was able to attach my images and don't see an option to delete it and re-post with attached screenshots...

  3. #3
    Mod / Salary / SM Wanderer's Avatar
    Join Date
    2001-12
    Location
    St. Louis
    Posts
    5,408
    Login to Give a bone
    0

    Default Re: Is there any way to create and edit palettes other than through the built-in interface?

    Quote Originally Posted by alangroberts View Post
    Sorry, I posted this by accident before I was able to attach my images and don't see an option to delete it and re-post with attached screenshots...
    As far as I know, you should be able to edit your original post to add the attachments...

    AUGIeditpost.JPG
    Last edited by Wanderer; 2014-09-26 at 07:51 PM. Reason: added image
    Melanie Stone
    @MistresDorkness

    Archibus, FMS/FMInteract and AutoCAD Expert (I use BricsCAD, Revit, Tandem, and Planon, too)
    Technical Editor
    not all those who wander are lost

  4. #4
    100 Club
    Join Date
    2006-08
    Location
    London
    Posts
    177
    Login to Give a bone
    0

    Default Re: Is there any way to create and edit palettes other than through the built-in interface?

    You can edit pallets directly using an xml editor, such as xml notebook...

  5. #5
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Is there any way to create and edit palettes other than through the built-in interface?

    Quote Originally Posted by Paul Munford View Post
    You can edit pallets directly using an xml editor, such as xml notebook...
    1+... I heavily use Notepad++, and Visual Studio to edit XML as well.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  6. #6
    Member
    Join Date
    2004-03
    Location
    Tyler Texas, USA
    Posts
    10
    Login to Give a bone
    1

    Default Re: Is there any way to create and edit palettes other than through the built-in interface?

    Thanks, I found that and uploaded the images.

  7. #7
    I could stop if I wanted to
    Join Date
    2015-10
    Location
    Colorado Springs, CO
    Posts
    369
    Login to Give a bone
    0

    Default Re: Is there any way to create and edit palettes other than through the built-in interface?

    I don't use the text editor a lot, but it can be done. Specifically I had to do it a few years ago when we switched our server out and F: changed to W:. Of course I have approx. 100 separate pallettes sorted into groups, so even that was tedious. Thankfully the drive letter shouldn't change again!

    Find and replace is your friend once in the text editor!

  8. #8
    Member
    Join Date
    2004-03
    Location
    Tyler Texas, USA
    Posts
    10
    Login to Give a bone
    0

    Default Re: Is there any way to create and edit palettes other than through the built-in interface?

    Well, I looked at my palette here, first in Notepad, (first image) and got hundreds of lines that are very difficult to read, then tried Notepad++ and got the same thing but that everything is combined into one, extremely long line of code, (second image). Neither seem promising to me in terms of editing. I'll look for an xml editor and see what that gives me but may have to wait till next week as I'm about to leave on a trip for a week. Thanks.
    Attached Images Attached Images

  9. #9
    Member
    Join Date
    2004-03
    Location
    Tyler Texas, USA
    Posts
    10
    Login to Give a bone
    0

    Default Re: Is there any way to create and edit palettes other than through the built-in interface?

    Thanks for the comment on XML Notebook too, I'll try that as well but have to get back to designing a building now.

  10. #10
    AUGI Addict
    Join Date
    2015-12
    Posts
    2,095
    Login to Give a bone
    0

    Default Re: Is there any way to create and edit palettes other than through the built-in interface?

    Most of the XML content isn't intended for direct human consumption/modification, so it doesn't include line breaks to make things easier.

    Palettes can make life easier, but palette groups are a PITA to manage. One of the reasons I've moved away from them.

    You might want to consider a hybrid solution, similar to the old image-tile menu/dialog system. Create the button to call a common command which is passed a list of content to use. You only need one icon (I have problems creating those too...) for the command and can still show preview images.

Page 1 of 2 12 LastLast

Similar Threads

  1. import and edit built-in autodesk subassembly in subassembly composer??
    By phpa80457421 in forum AutoCAD Civil 3D - General
    Replies: 3
    Last Post: 2012-08-08, 03:57 PM
  2. Unable to create new palettes
    By brandenz in forum AutoCAD Customization
    Replies: 2
    Last Post: 2008-10-17, 04:43 PM
  3. Edit Block in Tool Palettes
    By wbs69117950 in forum ACA General
    Replies: 2
    Last Post: 2006-08-16, 10:30 AM
  4. Create User Tool Palettes
    By BCrouse in forum AutoCAD General
    Replies: 1
    Last Post: 2005-12-13, 03:01 PM
  5. How can I allow a user to create their own palettes
    By jasontirone in forum AutoCAD Customization
    Replies: 1
    Last Post: 2005-06-28, 05:11 PM

Tags for this Thread

Posting Permissions

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