AutoCAD 2013 :: LISP Within A Template?

Oct 31, 2012

if I create a template for the company I work for and its located in a central server,

Then create a LISP file that's is also located on the same central server, can I load that into the template,

So when I update everyone else's machines with the new template, I wouldn't have to load the LISP into everyone's machine as well.

View 1 Replies


ADVERTISEMENT

AutoCAD Civil 3D :: Lock Template Layers - Can't Be Purged And LISP

Oct 30, 2012

In my seemingly never-ending battle with standardizing, I have created a template with all the layers I expect to use in the future.  The template will be used by both surveyors and engineers so I have layers that won't ever be used by surveyors.  What I don't want is the surveyor to purge the drawing and delete all the layers that the engineers will need.  I found the link below explaining and .lisp to replace deleted layers. 

[URL]

Now, I am completely new at .lisp and how to use them.  Also, this template is used in a program called BricsCad (some of the older generation still uses it instead of Autocad) and using .dws and checking isn't an option for them.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Creating New Drawing With Specific Template

Sep 20, 2013

I have some code that starts a new drawing with a specific template from a lisp routine

(defun ghd:load_newdwg (template / ae-acad-object newdwg)
  (setq ae-acad-object (vlax-get-acad-object))
  (setq newdwg (vla-add (vla-get-documents ae-acad-object) template))
  (vla-put-activedocument ae-acad-object newdwg)
)

The template location and file is stored in variable clienttemplate (and is not the standard template path set under options). All works okay except if I close the new drawing, when I return to the previous drawing that was current when the new drawing was created (i.e. the drawing that the routine was run from). I get the following error:

Command: ; error: Exception occurred: 0xC0000005 (Access Violation)
; error: Unknown exception occurred
; warning: unwind skipped on unknown exception

I assume this has something to do with the original routine not closing/finishing before switching to the new drawing. This is the last line of the routine:

(cond ((= startnewdwg 1) (ghd:load_newdwg clienttemplate)))

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Make Attribute / Field In Template

Jan 17, 2013

Is it possible to make an attribute or a field in a template with page numbering for layouts? Is it possible to make an attribute or a field in a template with the name of the layout?

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Reinserting A Standard Base Template For Layering?

Oct 28, 2012

creating a lisp or pulldown with some standard features in it.

what i would like to do is be able to quickly insert a template (layers/linetypes/colours etc) which is the same used in our initial drawing. I'm a big fan of constantly purging and auditing my drawings to keep them clean and in a previous workplace we had the ability to reinsert all the default layering.

View 2 Replies View Related

AutoCAD 2013 :: Loss Of Values From One Template To Another?

Nov 25, 2013

I have copied and pasted from someone’s template to mine, and the font changes. My style is set to Arial and the other template is as well. Is there another setting I am missing or a variable that maintains the information from one template to the next?

View 9 Replies View Related

AutoCAD Inventor :: Template Locations In 2013

Oct 19, 2012

How do I set up the templates in 2013? we just migrated from 2012 and now some of the templates are not showing up. When we installed the vault we created a drive that the vault resides in. The templates also reside on this drive but outside of the vault. in 2012 when  I selected the icon to create a new part/assy/drawing I would get the following drop down menu:

 now in 2013 we have a new and imporved splash screen with more options, I think:

However as you can see, there is nothing to choose. If I use the drop down arrow this work, but not much as I have the 4 standard part, assy, drawing and project icons appear. We have used the options menu and changed the file search paths to point to our template folder but we still do not have any options in the new menu and the drop still does not show options for sheetmetal or square parts. The drawing does open with the correct template though. I have also opened each template in 2013 and saved it so it should be migrated to the new format. but that has not worked. How to set up the new splash menu to work?

Inventor Premium 2013 SP1.1
Vault 2013- plain vanilla version
HP G71 notebook
celeron cpu w 4gb RAM and 64 bit system
Win 7 home premium

View 6 Replies View Related

AutoCAD 2013 :: Empty File / Template - 10 Mb

Jul 3, 2013

Currently have a template setup which we use and when everything is erased, purged, audited etc and the file literally cannot be purged any more the filesize is still 10mb.

There however several hundred items in the "Blocks" section of the purge dialogue box under "View items you cannot purge"..how do you get rid of these?

we have files containing hardly anything which are 20mb and empty files which are 10mb,

View 9 Replies View Related

AutoCAD 2013 :: Drawing Template And Associated Files

Jan 10, 2014

I have created a drawing template for survey and I need to distribute it to the field crews and eventually put it on the server. The template contains description keys, point styles, point label styles, custom point file formats, figure styles, figure prefix database, line code sets, etc.

How do I transfer all the external files along with the drawing template? Is it a straight forward copy? Etransmit doesn't seem to do it unless additional files are manually included, but I can't figure out what files to include or where they live.

View 2 Replies View Related

AutoCAD 2013 :: Template File Location Setting

Nov 11, 2013

The default file location for the template .dwt file in my AutoCAD options keeps resetting to None (see attaached, red arrow).  It should be the same location as the line below it (see attached, green arrow).  I have reset it a few times now, but it keeps reverting back to None.  Do you know why this is happening and/or how I can fix it so the setting will stay?

View 2 Replies View Related

AutoCAD 2013 :: Template Drawing Which Opens On Startup

Sep 11, 2012

I am looking to change the way AutoCAD starts, in particular, the template drawing which opens on startup. 

I want to force the user to open a template rather than have one open automatically for them, as we have many different clients all with different standards.   

I tried deleting all the template files as an experiment… but somehow a blank template still loaded.  How can I force AutoCAD to make the user select a template upon initial load rather than have the default template load automatically? 

View 3 Replies View Related

AutoCAD 2013 :: Template Creation (Title Block)

Dec 18, 2012

Is it possible to create a title block in AutoCAD 2013 and have the option to select from a drop down list a Name and Address to place in a certain area of the title block? 

View 2 Replies View Related

AutoCAD Inventor :: Convert 2013 Template To 2012?

Jan 24, 2013

Is it possible to convert a 2013 drawing template (IDW) to 2012? 

View 1 Replies View Related

AutoCAD 2013 :: Create Template To Convert Coordinates Into Script

Jul 9, 2013

I have been tasked with trying to create some type of template (or multiple templates, if needed) to convert my coordinates (some having straight lines and some having arcs) into a script file. I will be gathering the coordinates from an excel file then linking them to my script file.

My problem is, I have hundreds of sets of coordinates (all with varying arcs and straight lines and varying order in which arcs and lines are used) in which I'm trying to establish a method to convert to a script file. Also, the total number of lines (arcs and straight) vary. Some have as little as 10 lines and some contain as many as 20 lines total.

I have successfully created a script file using one set of coordinates but can't imagine doing this hundreds of times over.    I have attached a PDF file showing an example of the coordinates along with the radii (in some cases there is no radius, therefore must be a straight line) and how I can accomplish this without creating a script file for each and every set of coordinates I have. The example I have is only a small portion of what I am working with.

View 9 Replies View Related

AutoCAD Civil 3D :: Manhole Labels In 2013 UKIE Template

Apr 18, 2013

problem labelling manholes when using the 2013 ukie template? - pipe labels show up but nothing else. 

If I open the label style composer it looks fine in preview, visibility is set to true and its on the same layer as the pipe labels so should display OK.  It seems to be a template setting though because if I open the metric or imperial templates and draw a network the labels all work. if I can find the right tick box it would be quicker than labelling with mtext.

View 2 Replies View Related

AutoCad :: New Template File (DWT) Opens In Model Space 2013?

May 31, 2012

I`ve been trying to create a new drawing template in autocad 2013, I have saved it as a dwt file as suggested . When i go to open the new template the first thing i notice is that the thumb nail has a black ground , while the other templates that came with autocad have a white background !...when i open the dwt file it opens like a normal dwg file in model space not in paper space. the dwt file behaves as just a normal file .

View 5 Replies View Related

AutoCAD 2013 :: Create A List Of Standard Layers / Linetypes In Template?

Sep 20, 2012

Can I create a template with layers/linetypes that I would most often use

View 2 Replies View Related

AutoCAD 2013 :: Copy Multiple Layout From Existing Drawing To New Template

Jul 12, 2012

I have an exisitng drawing with 80+ layouts tabs that I would like to copy to a new template drawing.

I tried to use design center but to no avail.

How can I do this?

Running Windows 7 Pro
3.20 GHz
12GB Ram
AutoCad 2013 64bit

View 2 Replies View Related

AutoCAD 2013 :: Creating Template File For Extracting Information From Blocks?

Jul 7, 2012

i want to know how to create template file right from scratch and which format I should use to extract information from blocks and its attributes.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Entmake A Hatch Entity From A Hatch Template?

May 2, 2013

I am trying to entmake a hatch entity from a hatch template.

After entget the template hatch entity, i get the followings

Select object: ((-1 . <Entity name: 7ed11b78>) (0 . "HATCH") (330 . <Entity
name: 7efc7c10>) (5 . "737") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 .
"SECTION-LABEL") (62 . 255) (100 . "AcDbHatch") (10 0.0 0.0 0.0) (210 0.0 0.0
1.0) (2 . "SOLID") (70 . 1) (71 . 0) (91 . 1) (92 . 1) (93 . 8) (72 . 1) (10
633596.0 5.79713e+006 0.0) (11 633519.0 5.79713e+006 0.0) (72 . 1) (10 633519.0
5.79713e+006 0.0) (11 633519.0 5.79708e+006 0.0) (72 . 1) (10 633519.0
5.79708e+006 0.0) (11 633500.0 5.79708e+006 0.0) (72 . 1) (10 633500.0

[code]....

Now I  wrote the following code using the above data as follows

(entmake (list (cons 0 "HATCH") (cons 67 0) (cons 410 "Model") (cons 8 "SECTION-LABEL") (cons 62 255) (cons 10 (list 0.0 0.0 0.0)) (cons 210 (list 0.0 0.0 1.0)) (cons 2 "SOLID") (cons 70 1) (cons 71 0) (cons 91 1) (cons 92 1) (cons 93 8) (cons 72 1) (cons 10 pt1) (cons 11 pt2) (cons 72 1) (cons 10 pt2) (cons 11 pt3) (cons 72 1) (cons 10 pt3) (cons 11 pt4) (cons 72 1) (cons 10 pt4) (cons 11 pt5) (cons 72 1) (cons 10 pt5) (cons 11 pt6) (cons 72 1) (cons 10 pt6) (cons 11 pt7) (cons 72 1) (cons 10 pt7) (cons 11 pt8) (cons 72 1) (cons 10 pt8) (cons 11 pt1) (cons 97 0) (cons 75 0) (cons 76 1) (cons 98 1) (cons 10 (list 0.0 0.0 0.0)) (cons 450 0) (cons 451 0) (cons 460 0.0) (cons 461 0.0) (cons 452 1) (cons 462 1.0) (cons 453 2) (cons 463 0.0) (cons 63 5) (cons 421 255) (cons 463 1.0) (cons 63 7) (cons 470 "LINEAR")))

The point variables pt1, pt2....pt8 are all defined. But when I run the code the hatch is not being created? Why?

View 1 Replies View Related

AutoCAD Inventor :: Converting Default Part Template To Custom Template?

Jan 23, 2012

Converting a default part template to a custom template?  

View 1 Replies View Related

AutoCad :: Import Layers From A Template To Drawing With Different Template

Jun 9, 2011

Can you import layers from a template to a drawing with a different template

View 3 Replies View Related

AutoCAD Inventor :: How To Make Template Out Of Template

Oct 4, 2012

Our customer supplied us with an Autocad template, complete with attributes, that I would lite to use as an Inventor template.

View 3 Replies View Related

AutoCAD 2013 :: Place And Existing DWG File Into Specific Template File

Jul 15, 2012

How can you use a template file from your personal files to use it in an already existing .dwg file.

I knwo how to do it if I start the drawing from scratch and I select that template, but I want to put this existing drawing into my personal template file from my documents.

View 2 Replies View Related

AutoCAD 2013 :: Will Not Remember Lisp Folder

Aug 29, 2012

When I select tools>Autolisp>Load Application from the menu, the default folder it shows is a random folder (same one every time) and I have to navigate to where my lisp routines are. In 2012, it opens up directly to my lisp folder. The command it is executing in both circumstances is "appload". Or how to select a default folder?

View 9 Replies View Related

AutoCAD 2013 :: How To Create Lisp Polyline

Nov 5, 2012

i'm looking for polyline lisp. I type PLINE and type Width specify starting width is 0.0 next specify ending width is 90.0 and then i type 200mm for my distance then i choose again the Width to become 0.0 (starting and ending) then choose Arc. How to create lisp polyline?

View 1 Replies View Related

AutoCAD 2013 :: Vertex Removal Lisp

Oct 4, 2013

I don't suppose there exists a lisp or method other than PEDIT that would automatically delete vertices that are unnecessary. I have a set of plans that seem to have been drawn...interestingly.

A lot of polylines have these seemingly arbitrary vertices that break up longer straight lines.

Ideally I'd like something that would compare Vertex A, B and C, if they all share an X or a Y, remove Vertex B (assuming that A, B and C are sequential vertices on one Polyline) - perhaps with a way of adding an adjustable tolerance.

View 5 Replies View Related

AutoCAD 2013 :: How To Run Lisp By Toggle DCL Menu

Oct 12, 2013

i have toggle dcl , and lisp as an example , who can say that how can i make combination by toggle and define to change lisp ? and of course run to change lisp after my choise from toggle menu

(defun getValues () (setq a1 (get_tile "toggle1") a2 (get_tile "toggle2") a3 (get_tile "toggle3") a4 (get_tile "toggle4") a5 (get_tile "toggle5") (done_dialog 1) ) (defun c:aaa (/ an dcl_id) (setq dcl_id (load_dialog "rc-cap.dcl") ) (if (not (new_dialog "ABC" dcl_id)) (exit) (progn (action_tile "accept" "(getValues)")

[Code] .......

View 1 Replies View Related

AutoCAD 2013 :: Auto Layer Translate LISP

Nov 13, 2013

I am in search of a add on program or a lisp that I can change an architects layers to the layers we use. I know layer translation command is available but every time I have to select what the layers translate to. It would be nice if there was a way to add the new architect layers into a database so when we run the lisp or program the layers will automatically change to our layers we use. 

View 2 Replies View Related

AutoCAD 2013 :: LISP For Placing A Point On Polyline

Feb 16, 2013

i need a lisp routine for a situation like this:

I have a polyline consisting of various point intersections, total length of polyline is around 600m. I want to place a point along this polyline at some distance e.g. 50m.

View 4 Replies View Related

AutoCAD 2013 :: Protect Lisp Functions From Object ARX

Oct 26, 2013

I would like to protect lisp functions from ObjectARX. I am able to protect the functions from LISP command prompt as below.

(pragma '((protect-assign MyFunction)))

I want to do it programmatically using ObjectARX. I have written below code but I am getting error "some other error". 

struct resbuf *cmdlist;
resbuf *rb_out = NULL;
cmdlist = acutBuildList(RTSTR, _T("pragma"),RTSTR, _T("protect-assign"),RTSTR,_T("MyFunction"), 0);
int resval = acedInvoke(cmdlist,&rb_out);
if (RTNORM != resval)
{
acedAlert(_T("Error"));
}
acutRelRb(cmdlist);

View 1 Replies View Related







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