AutoCAD Visual LISP / AutoLISP :: How To Migrate Custom Tool Palettes And Toolbars

Dec 2, 2013

How do I migrate my Custom Tool Palettes and Custom Toolbars from Civil 3D 2012 to Civil 3D 2014?

What files do I need to create or copy to transfer to 2014?

My Custom Tool Palette consists of Block Symbols, Border Sheets, Scales and Seals, Lisp Routines etc.

My Custom Toolbar is just a number of standard cad commands I've put together in my toolbar like Revision Cloud, Layer Isolate, Match Properties, Attach Image, etc.

Do I need to export out my cui file, do I need to create a Profile file, do I need to setup the same directory structure naming and copy my files into those same directory names?

Or is there some easy hidden Magic Button in Civil 3D that you click on and it does the rest?

View 3 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: How To Unlock Tool Palettes

Oct 11, 2006

I have a problem when creating new Tool Palettes..

As soon as I exit autocad after creating them and then re-open CAD the next day all the Tool Palettes have the locked icon in the bottom corner so I'm unable to add to them.. I've tried everything to unlock them...making sure the atc files aren't read only, unlocking all tool bars in menu customization etc but nothing works.....

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Adding LAYERS To Tool Palettes?

Jul 10, 2013

I've inherited management of CAD standards. A third party developed the tool palette - mostly blocks, etc. but there are also icons to add whole series of layers to drawings. Click 'Architectural Layers' you add the architectural layers. Click 'Plumbing Layers' you add the plumbing layers. Since the original implementation, things have been changed.

How do I update these tools?

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Add New / Blank Button To Custom Tool Bar

Apr 17, 2012

AutoCAD 2012

When I am in the CUI editor and I right click on a button in a custom tool bar, it gives me the option to "duplicate" or "copy".

But when I go to change the properties of the new button, it changes both the original and the new button upon "apply".

Can I just add a new/blank button? I've tried dragging a new command from the list at the lower left corner but it does the same thing. :?

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Copy Toolbars In CUI

Oct 17, 2011

I would like to copy FIllet command and have multiple Fillet buttons with different radius. In the CUI file under toolbars when you right click and copy a button and then change the macro command it changes all the buttons to the same macro.

I guess it does that since when you copy a botton, the new button has the same Element ID name.
 
2013 Civil 3D

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom CUI For Blocks

Jan 11, 2014

I was on an older cad and am now moving to 2014.. my previous cad was heavily customized the old school way, I have decided to learn the CUI (and dynamic blocks)

My old cad has blocks on a drop down menu.. click BATH menu than WC icon, a macro sets the correct layer than inserts the WC.. took time to setup but pretty simple and straight forward (see attached for menu syntax). I also made a toolbar BATH and on that toolbar I made a WC icon.. that’s what I use the most

couple of questions

1) do I have to make a new command in CUI for each block to do the same thing?
2) I looked into the design center, but seems like its too many steps but it seems a toolbar with an icon on it, clicking the icon and a macro sets layer and insert block is still pretty quick..??
3) if a toolbar with an icon is still a fast and less step method, can I open the block and somehow make an icon of it? if so where do I put it?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Create Custom Controls

Apr 17, 2012

I want my application to include a useful Ribbon interface that displays custom properties, read from my custom objects.

I have found the existing Ribbon Control Elements, but I want to use custom controls, not the pre-canned controls.

Is there a generic programmable input box for the AutoCAD Ribbon?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Keyboard Shortcut

Jun 13, 2013

I want to make a keyboard shortcut that will turn on/off my osnap, polar, and otrack.I would be fine with setting F3 to do this, or any other key really.I like to be able to turn these off on the fly, but it is getting old having to press all three.

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Fields / Scales

Apr 25, 2012

I've successfully written a lisp routine to insert a scale bar dynamic block with attributes, gather the object id of a user selected viewport, and write fields to attributes for each of the numbers across the top of the typical scale bar as well as the scale name, for both architectural and civil units. I'm trying to come up with a similar dynamic blocklisp routine combination to do the same with view titles, and the associated scale callout. The catch in this case is that I'd like to display the scale as "NTS" if it isn't a proper scale. The "standardscale" object property option in the field dialog box gives me almost exactly what I want, except that non-standard scales are displayed as "CUSTOM" as opposed to "NTS". Moreover, I’d like this to update on the fly, if the viewport scale changes, the scale callout needs to change also, back and forth from “NTS” to a standard scale if need be.

is there a way to change that (CUSTOM NTS)? My research online seems to indicate that the nuts and bolts of fields are deeply rooted in ObjectARX, which is something I know very little about?

The natural followup to that question is, if I can't change "CUSTOM" to read "NTS", is there a way to wrangle this whole thing with reactors? I'm envisioning object reactors, created as a part of the insertion routine, for each individual instance of the block (there could very well be several in a layout, and multiple layouts in detail drawings), that would call another routine to evaluate the viewport scale, and if it didn’t match a list of standard scales, write NTS to the attribute. My issue is that reactors seem to only associate with one object, in this case that’d be the viewport, the reaction would cause the reactor to call the routine, but how does the routine know which block to update? Is there something from the viewport properties that I can add to the block name (or some other property) which will allow the routine to figure out which block to edit?

I’ve attached my scale bar code, and block, as reference context for how I plan to set the view title up.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Is There Anyway DwgProps / Custom Tab Can Be Dumped

Nov 13, 2012

I use DwgProps > Custom tag to log revisions to our company templates.Then when trouble shooting CAD issues I can look at what template rev level the drawing was started from.

Is there anyway that DwgProps can be removed from the drawing?

I am not looking for a solution to do this... I just wondered if there could be someway a particular drawing file might have somehow lost the DwgProps > Custom entries.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Alias With Custom Command

Mar 6, 2013

I'm trying to get familiar with AutoCAD. Google and didn't manage to solve a problem :

In AutoCAD LT 2013, I created a custom command called Special fillet :

Name : Special filletDescription : Round a polylineCommand display name : SFILLETMacro : ^C^C_fillet;p;r;0.1

I created two aliases at the end of acadlt.pgp :

SF,         *SFILLET
C,          *COPY

When i type C, it works fine (just a test) but although it appears correctly in the Command prompt, SF doesn't work and it keeps telling me : UNKNOWN COMMAND "SF"

Last thing, if I create an icon in a toolbar with the special fillet command : it works fine...

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Balloon Notification

Sep 29, 2011

Is there any way i can create my own custom balloon notification to alert the detail of any new or updated menu items?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Ribbon Tab Is Not Visible?

Nov 7, 2011

I have tried everything even un-installing and re-installing. I have customized programs that have been working properly for months by many individuals. These include custom menus, toolbars and ribbon tabs. One day last week one of the ribbon tabs disappeared. The crazy thing is if I load the .cuix file as an Enterprise cui, everything is visible and works just fine. BUT, when I load it as a partial cuix file the ribbon tab does not show up. The custom menus come in, my custom toolbars work and show up just fine but the dag blasted ribbon tab won't show up.

Yes, it's marked as visible. I've done and redone the cui editor, customized my workspace again and again checking every piece of information. I need to have it loaded as a partial cui file as I am the author of these tools that hundreds of people in my company depend on.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Ribbon Button - Custom Schedules

Feb 18, 2013

How to add buttons and create my own ribbon in AutoCAD, but now I would like to be able to have buttons for two different schedules that I have created. While I can have a button start the schedule command it won't automatically pick the schedule that I want it to create.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Buttons With Script-like Functionality

May 18, 2012

I would like to build a custom button that mimics the FDO - Save as AutoCAD drawing functionality. Clicking this button brings up a wizard with too many clicks for how often the users will do it.

They will not want to load a script so a custom button is required. Also, I need to be able to dynamically set the new saved file name based on the source DWG file name.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Using Special Characters In Custom Command

May 4, 2012

I'm trying to write a simple Custom Command that sets any layer that matches "$-*" to a specific color. But as soon as AutoCAD sees the $, it thinks I'm trying to do a DIESEL expression. Supposedly, the quote marks specify that the enclosed characters should be treated as plain text, but that doesn't happen.Here's what I've got:

^C^C-LAYER;C;252;"$-*";;

And this is what I get:

Command: -LAYERCurrent layer: "$-HATCH-00-002-PW-BOAT"Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]: CNew color [Truecolor/COlorbook] : 252Enter name list of layer(s) for color 252 <$-HATCH-00-002-PW-BOAT>: "No matching layer names found.Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]:
It stops, hanging at the incompleted -LAYER command prompt. 

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Setting A Custom Scale On Viewports

Aug 29, 2012

I have a problem that I cannot seem to solve.  I have a drawings with a whole bunch of layout tabs that have a few viewports in each tab. One of these viewports on each layout tab is on the layer VIEWPORT. I did this so it would be easy to filter out the other viewports in the drawings. I am using the code below to change all of the viewports with the layer VIEWPORT to the Custom Scale 0.020833. This works for all of the layout tabs except the first tab. It will not for some odd reason work on the fist tab. 

(setq vieportfilter (list (cons 0 "VIEWPORT")))
(setq ssetvp (ssget "x" vieportfilter))
(setq cntrp 0)
(while (< cntrp (sslength ssetvp))
[code]..........               

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Update Custom Drawing Properties

Oct 1, 2012

how to access custom drawing properties using LISP.  It was in a discussion initiated on 01-06-2011, subject:  Custom drawing properties.

One solution was to use the following method:

(setq  si (vla-Get-SummaryInfo (vla-Get-ActiveDocument (vlax-Get-Acad-Object))))
(vla-GetCustomByKey si  "DWGPROP1" 'pval)
(princ pval)

Now taking it a step further, using LISP, how can I "update" my custom drawing properties?

Inventor RS 2011
AutoCAD Mechanical 2011
ASD 2013
Vault Collaboration 2011
Windows 7 Pro

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Tie A Key From Custom Dictionary To Display In Field

Sep 16, 2013

How I can tie a key from a custom dictionary to display in a field?

I know that I can dump the custom dictionary into global and the fields can track those values, but instead of strangling my available memory I'd rather track the dictionary key directly. How can I utilize the Entity name or the actual dictionary name & key?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Create A Custom Block With Attribute

Mar 16, 2012

i'm relatively new to lisp routines. I've been trying to create a routine that will create a custom block with attribute with an option to select which drawing border size is being used. This is what i've got so far;

(defun c:NEW_REV_NOTE ()
(PRINC "
Drawing Size:")
(SETQ Paper_Size (GETSTRING "
[A1/A3] <A1>: "))
(IF (= Paper_Size "A1")
   [code]....

I'm going wrong at the moment I get an error message when I try to load the file "; error: syntax error".

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Prevent Dots On End Of Custom Linetype?

Sep 15, 2011

I have a custom linetype that's just a series of arrows I want to use to show the flow of a ditch. I've played around with this thing for a while and have these dots at each end of the line that shows up when I print.

Is there any way to make this linetype without the dots at each end? the actual files for the line type.

FLOW.lin
*FLOW,A,0,-.002,.148519,[FLOW,FLOW.shx,s=1],-.449481

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Loading Custom Profiles For Use Just After Installing?

Nov 9, 2011

We have been using Custom profiles for many years.   We have always had issues that just after we install, we have to reload the custom profile to get it in place.   When I say reload,  I mean we launch the program the first time with a /p <profile name>.  (The path to our custom profile is in the string launch string.)   Seems to default to a random profile, or something we don't recognize.    The process here is we are pushing out installs to 200 users and don't want each user to set one of the defaults current, delete our custom one, reload our custom one and set it current. 

Once the profile is loaded the next times opening all is well.   Because, of course, it was last used.

What am I missing or misunderstanding?   We see the profile exists in the registry before we reload.  The custom profile we use is an export.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Create ONLY Custom Shortcut During Deployment?

May 28, 2013

I'm creating a deployment for AutoCAD 2014.

At the end of the deploy process I'd like to end up with a custom AutoCAD shortcut on the desktop that calls an ARG file.  This is no problem.

The problem is that to get that shortcut I need to check the "create desktop shortcut" check box and then I wind up with 2 shortcuts on the desktop, the default "AutoCAD 2014 - English" and my custom shortcut.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Thaw Layers From Custom Dialogue Box?

May 31, 2013

I am trying to find a command that will pull up a dialogue box with all layers that are frozen and be able to select one or more to thaw from that list. I hate the layer manager, it's too slow especially when I have a ton of layers to deal with.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Plot From Windows Explorer

Jan 27, 2012

Goal: using the native windows explorer, Open the folder containing the the multitude of drawings from different vendors and customers, usually 30 -40 .dwg files.

Highlight all the files, Right click print.behind the scenes without any further clicking or involvement from the user autocad plots the extents of model space of all the drawings to a designated plotter fit to 11x17 sheets. 

Acad 2012
Win 7

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Deploying Custom Hatch Patterns Using Installer

Nov 29, 2012

I am wanting to build an installer to deploy some custom hatch patterns.   Getting the hatch patterns onto disk is easy; however, I need to add this location as a support path (presumably via a registry entry) but the number of potential registry entries is huge given the combination of AutoCAD releases and verticals.   The other option I had was to deploy the hatches to the same location as ACAD.PAT and search for this location during installation.

FYI - I plan to use Inno Setup but am not opposed to another installer.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Create A Custom Complex Linestyle For A Stream

Sep 13, 2013

I am trying to create a custom complex linestyle for a stream. It's a line with 3 circles/dots. For the dots I want to actually create the circles. I know how to create shapes, compile and load linestyles. For some reason it does not work.

*STREAM-UCS, WATER BODIES -----ooo-----ooo-----ooo-----ooo-----
A,.6,-.15,[STREAM,ucs-ltype.shx,x=0,s=1],-.15
*1,1927,STREAM 4,250,4,4,3,167,3,13,3,176,002,9,(-51,0),(0,0),001,9,(0,3),(-3,3),(-1,0),(-1,1),(-2,0),(-1,-1),(-1,0),(-1,-1),(-1,0),(-1,-1) (0,-1),(-1,-1),(0,-4),(1,-1),(0,-1),(2,-2),(2,0),(1,-1),(2,0),(1,1),(1,0),(1,1),(1,0),(0,1),(1,1),(0,3),(0,0),002,9,(-3,-6) (0,0),001,9,(2,2),(0,0),002,9,(-2,-2),(0,0),001,9,(2,3),(0,0),002,9,(-2,-3),(0,0),001,9,(3,3),(0,0),002,9,(-4,-3),(0,0) 001,9,(4,3),(0,0),002,9,(-4,-3),(0,0),001,9,(4,4),(0,0),002,9,(-4,-4),(0,0),001,9,(4,4),(0,0),002,9,(-4,-4),(0,0),001 9,(4,4),(0,0),002,9,(-5,-4),(0,0),001,9,(5,4),(0,0),002,9,(-5,-5),(0,0),001,9,(5,6),(0,0),002,9,(-5,-6),(0,0),001,9,(5,6) (0,0),002,9,(-5,-6),(0,0),001,9,(5,6),(0,0),002,9,(-6,-6),(0,0),001,9,(6,6),
[code]....

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Getting Shapes In Custom Linetype To Reside In Drawing

Sep 17, 2013

I have a client who requested some complex custom linetypes. (line - shape - line)

I built the shapes and stored them in my ltype.shp file, and compiled that to ltype.shx. Then I added the custom linetypes in my acad.lin file. So everything works on my machine with no problem. However, when I send the drawing to someone else, the linetype works, but the shapes are left out. My guess is that since her ltype.shx file does not contain my new shapes, the lines are just drawn without them.

Is there a way that I can have those linetypes, complete with shapes, ride along inside/embedded the dwg file?

And before you ask, no, it's not an option to provide the client with the shx file that contains these shapes. I'm one of many different people in many different companies that might work on these drawings in the future and there's just no way that they'll be able to send an shx file along with the drawing every time someone new needs to work on it.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Attributed Multi Block Insert From Custom DCL

Dec 27, 2011

I have been working on an AutoLISP routine which is intended to:

1) collect input from the user via a DCl dialog box

a) Create a List of the non-null "GROUP_CODE..." variable values collected from the dialog's settings

b) Create a List of the "ESN***#_Part" variable values collected from the dialog's settings (does the List elements' order need to be reversed after collecting them?)

2) Prompt the user to select an insertion point

3) Insert a Block named "ESN-CONTROL-WIRED" which has multiple attributes

a) Apply the first List element collected at step 1.a above to the attribute tag "INPUT_ADD" in the block

b) Apply the first List element collected at step 1.b above to the Attribute Tag "PART_NUMBER" in the block

4) Insert a second instance of the Block named "ESN-CONTROL-WIRED" below the first instance

a) Apply the second List element collected at step 1.a above to the attribute tag "INPUT_ADD" in the block

b) Apply the second List element collected at step 1.b above to the Attribute Tag "PART_NUMBER" in the block etc. .... keep inserting the block "ESN-CONTROL-WIRED" below the previous on until all the input from the dialog has been displayed in the attributes. 

Notes:

The Dialog's pop-up lists are populated from external .TXT files which reside on our network (or alternate local C: drive folder if no network drive is found)

Inside the file "ESN_SENSORS_NUMBER.LSP", it is the function "ESN_APPLY_TAG" which I am struggling with how to write...

find inside the .ZIP file:

- (2) example screenshot .BMPs showing dialog box settings and what the resulting output in AutoCAD should look like

- (1) ESN_SENSORS_NUMBER.LSP

- (1) ESN_SENSORS_NUMBER.DCL

- (1) ESN_SENSORS_NUMBER.DWG with a sample output - and the definition of the block ESN-CONTROL-WIRED

- (1) ESN-OCC.txt  which populates the PopUp List Boxes

- (1) ESN-DAYLT.txt which populates the PopUp List Boxes

- (1) ESN-IR.txt which populates the PopUp List Boxes

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Custom Menu Will Not Stay Loaded Between Restarts On 2005

Aug 2, 2012

This is related to AutoCAD 2005 only:

I have a custom menu file which is NOT located in the support path but rather is on a server drive for all AC 2005 user's to access. When I load this menu in AC 2005 and then restart, it is gone and has to be reloaded. This is happening for all 2005 users in this office. With AC 2009 we use CUI and that custom file is also located on the server, not in the support path, but the 2009 machines are working fine. It is only the AC 2005 users who keep loosing their menu item each morning.

I have done extensive searching on this and it appears to be a common problem but the thing which is also common to all the posts and articles I read on it is that none of them offer a resolution which actually works.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Create Custom Message Box With Variable Width And Height

Nov 15, 2012

I am trying to create a custom message box with variable width and height by passing width height title and list of text. I can get the routine to work if I use preset width and height, but would like to make the box adjustable.

Here is what I have so far -

;--dialog box--

MYmessage :dialog{
label="Custom message box";
:column {
:text {
key="MY_message_Title";
fixed_width_font=true;
[code].......  

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved