AutoCAD 2010 :: Inserting Blocks With Macro

Nov 15, 2012

I recorded a macro that inserts a block in top view. It works good but it takes allways the last inserted block, just like the insert command. 

I would like to create a few buttons with macros tha insert a predefined block.

For example: I need a button that, when clicked, inserts 'drawing.dwg' in top view AND exploded.

View 9 Replies


ADVERTISEMENT

AutoCAD 2013 :: Inserting Blocks With Macro?

Dec 5, 2013

I am having trouble getting a simple macro to browse insert a block. My file path looks like this.

 L:/Acad Blocks/Blocks_(SEPCO)/STRUCTURAL/2013_SEPCo_Blocks/WELD_FILLET.dwg

View 3 Replies View Related

AutoCad :: Make VBA Macro (application) For Inserting Blocks

Feb 9, 2012

Can I make VBA macro (application) for inserting blocks? I need to insert blocks from list of blocks that I made. I want to use less time with that application on inserting blocks, then to use standard method Insert>Block... So I want to check the block from my list, to define attributes and to put the block automatically on drawing, and then to repeat all with another and another blocks. all to be put one close to other.

View 9 Replies View Related

AutoCAD 2010 :: Inserting Blocks Into Mtext Editor

Jul 10, 2012

Is there a way to insert CAD blocks into the Multiline text editor, much like you are able to insert a block into a Table.

I am asking for the sole purpose of Plan Notes. When we lay out Plan Notes originally we place the note bubble next  to the line of text it represents. When we have to come back at a later time and edit the mtext, sometimes add a line our users are in a rush and forget to re-align the note bubbles with the text. If there was a way to insert the block into the text editor and have it still be able to edit it.

Is this a feature in 2013?

AutoCAD MEP 2013
Window 7 pro 64 bit
E5440 (8 CPU) ~2.8ghZ
16GB RAM
NVIDIA QUADRO FX 3500 2270MB

View 3 Replies View Related

AutoCAD 2010 :: Inserting Blocks From Tool Palettes

Dec 26, 2012

I need to insert the same block from a tool palette multiple times into my drawing. Is there a way to do this without having to pick the block from the tool palette every time I want to insert it?

View 9 Replies View Related

AutoCAD 2010 :: Non Annotative Blocks Disappear When Inserting Old Drawing

Jan 21, 2012

I have a drawing with some annotative blocks.  ie Block name "BAR'.

If I insert another drawing (mostly old v2000 files) as a block which also contains blocks named "BAR" (which of course are non-annotative)  the Blocks do not show up.  

Is there any way to get arround this?  Idealy I would like the old file inserted and have the annotion scale of the blocks in the inserted dbg set to the current scale.

View 1 Replies View Related

AutoCAD Inventor :: Macro For Inserting Text And Current Date?

Jan 5, 2012

I'm trying to find a macro that will insert text into a certain spot on my drawing.  I want to put it on a button so that when I click the button it inserts "REVISION - 12/5/12", or whatever the current date is, into my title block. 

View 4 Replies View Related

AutoCAD VB :: Error With Inserting Blocks

May 6, 2011

New to using VBA with AutCAD. On my drawing I have to plot some line which I am able to plot using VBA. But when it comes to delete those lines, I have to do it manually. So gave a try to BLOCKS.

When I run the macro, I get following error -Run-time error - 2145320929(802100f)

AutoCAD is unable to service automation request.

View 6 Replies View Related

AutoCAD .NET :: Inserting Blocks With Value For Y Is 0 From CSV File

Jul 23, 2013

I am trying to insert some blocks that i read from CSV file. I am reading the values for X and Y position from a CSV file and inseting blocks with this values in AutoCAD. 

Here is my

[CommandMethod("BI_5")] public void BlockInsert_5() { String filePath="C:\Users\Dimitar\Desktop\imp.csv"; CsvDoc csv = new CsvDoc(filePath, true); for (int i = 0; i < csv.Data.Count; i++) { string blockQualifiedFileName = csv.Get<string>(i, "Block Path"); double scale = 3.0; Vector3d DispacementVector = new Vector3d(Double.Parse(csv.Get<string>(i, "PosX")), Double.Parse(csv.Get<string>(i, "PosY")), 0); // Database tmpDb = new Database(false, true); tmpDb.ReadDwgFile(blockQualifiedFileName, System.IO.FileShare.Read, true, ""); Matrix3d Transform = ed.CurrentUserCoordinateSystem; Transform = Transform * Matrix3d.Scaling(scale, Point3d.Origin) * Matrix3d.Displacement(DispacementVector / scale); db.Insert(Transform, tmpDb, true); } }

One of the values for Y is 0. And the block instead of showing on X,0 it shows at some X,Y value. If you need to see the csv file I can upload it.

View 7 Replies View Related

AutoCad :: Blocks Inserting Improperly

Nov 4, 2011

I just created a dynamic block for our rev clouds, cause they're annoying to draw.

For some reason when I insert it, it is automatically inserting at 0,0. Why is it doing that? Also, if I put it into a Tool Palette (my boss just discovered these, so I'm creating a whole bunch for the company... those things are AWESOME) and when I use the Tool Palette, it works just fine.

Now, this won't be a problem as long as everyone uses the TP's I'm creating, but we have one Engineer in particular that's a toolbag and doesn't seem to remember to use all the stuff I spend all this time researching and programming.

View 6 Replies View Related

AutoCAD LT :: Inserting Blocks From Design Center?

Nov 12, 2012

Inserting blocks from design center coming in bigger scale...what should I do to control the scale factor?

I have being dealing with INSUNITS factor without success...

View 2 Replies View Related

AutoCAD .NET :: Creating Blocks But Not Inserting Correctly

Mar 22, 2013

I use the following code to create blocks in AutoCAD 2013.  When the user goes to insert this block, the insert command does not show a preview of the block when moving the mouse to locate it, and it comes in exploded.  This was working at one point, but something changed.  Is there some setting in AutoCAD or through the API that would cause this behavior? 

            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Point3d p1 = new Point3d(0, 0, 0);
            Point3d p2 = new Point3d(10, 0, 0);
            Point3d p3 = new Point3d(10, 10, 0);
            using (Transaction Tx = db.TransactionManager.StartTransaction())
[code]....

View 3 Replies View Related

AutoCad :: Blocks Inserting With Double Text?

May 24, 2011

Blocks inserting with double text?

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Inserting Table To Drawing

Dec 30, 2013

I created a dynamic block table and I try to insert into a drawing, however, it doesn't work, all block data are gone.

View 4 Replies View Related

AutoCad :: Inserting Blocks Not Taking Color Of Layers

Jun 28, 2013

When inserting certain blocks that were created in the 0 layer, they are not taking on the color of the layer in which I insert them.

Now when I click on the object, it shows up as being on the correct layer but the object is still white, I ran into something like this before, and was able to fix it by going into the Block Editor and setting the layer in there. This only happens on certain blocks.

View 3 Replies View Related

AutoCad :: 2012 Inserting Blocks With Attributes Enquiry

Aug 7, 2013

I believe in our previous AutoCAD 2009 software we could create a block with attributes and save the drawing as a block, either wblock or create block. When inserting this block into another drawing we would get the attribute dialog box appear and complete the required information. Within AutoCAD 2012 we have made a block with attributes, when we insert this drawing into another drawing the block is inserted but no attribute dialog box. If I click on the block I see edit block definition dialog box with the drawing file name of the block and the block name. If I explode the block I then have my block and when clicking the block the attribute dialog box appears. It seems that in AutoCAD 2012 when we create the block and save the drawing and then insert the drawing it becomes a nested block type. Is there a setting I need to switch to prevent this and have the block insert and then click on it to change the attributes as required?

View 5 Replies View Related

AutoCAD Architecture :: 2013 Crashing When Inserting Blocks

Jun 26, 2012

Last week we upgraded to ACA 2013 from ACA 2012.

I am now having issues any time I try to insert a Block into any drawing - I get a Fatal Error.

I have uninstalled & reinstalled this afternoon but I am still having the same issue.

It happens when I am trying to insert blocks from both the Design Centre & also from Tool palettes.

Other users in my office do not have this problem, the only difference between my set-up & theirs is that I have installed the 'AEC Section Display & Tag Scale Hotfix' but I have tried uninstalling this but had the same results.

View 4 Replies View Related

AutoCad :: Inserting Blocks At Points With Different Text For Each Point

May 21, 2013

I am wanting to insert a block at a point, with eastings and northings and an individual number.

For example.
Point 1 -459655,451702
Point 2 -459655,451702

Can I use a script for this, or something else using a .scr or .csv file?

View 6 Replies View Related

AutoCad :: Inserting Blocks - Command Line Says Invalid

Mar 5, 2012

I am trying to insert blocks but in the command line it says invalid, if I copy & paste the block in it works fine but as soon as i try to use the insert command it will not work.

Probably useful to tell you that I have around 60 blocks each saved as a DWG file and all of them are saved in 1 folder so there is no other crap in there.

the thing that really baffles me though is the fact that after I have pasted the block in to the drawing, the insert command works for that block.

View 5 Replies View Related

AutoCad :: Inserting Downloaded Blocks At Correct Scale

Apr 15, 2013

I downloaded a block of a plan view of a wheelchair user so I can see just how much space there is available.

The block is dimensioned but when I insert it and measure its dimensions, the readings are different. For example, a dimension reads 1070mm but when I measure it, I get 1023mm. Not far out but when I measure a 150mm dimension, I get 83mm. A 460mm dimension is measured as 536mm.

INSUNITS = 0

View 4 Replies View Related

AutoCad :: CTRL Keyboard Function When Inserting Blocks

Jan 22, 2014

At the moment when I use our company tool palette and select a block when I insert it if I hit the CTRL key on my keyboard the insertion point jumps between all the points in my block be it stretch points, base points or basic points.

If I create my own palette and add my blocks to it, the CTRL function doesn't work when I select a block.

View 5 Replies View Related

AutoCAD 2013 :: Dismissing AEC Objects Message When Inserting Blocks

Dec 3, 2012

Everytime we insert a block from our library, a message pops stating:

"This application  has detected a mixed version of AEC objects participating in this operation.

Newer AEC objects will be disallowd from participating in this operation."

I already converted all blocks to AutoCAD with Exploded AEC Objects, but the message persists.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Inserting Blocks With Attributes

Jan 5, 2012

I've been trying tons of different solutions to solve this problem: insert a block that has an attribute which happens  to be the last object id.

This is the best code I tried so far but without any succss.

(defun c:q1()
(command "_.PLINE")
(while (= (getvar "CMDNAMES") "PLINE")
(command pause)
[Code] .....

View 9 Replies View Related

AutoCAD VB :: Increase Number Of Attributes To Be Prompted While Inserting Blocks?

Jul 7, 2011

I have Created a Block which has got some 12 attributes , when i invoke insert command and insert the Block , It was displaying only first 8 attributes , then when i click next the remaining four attributes were displayed under the previous inputs which i have given .

that is for eg : If i have attributes named a,b,c,d,e,f,g,h,i,j,k,l .

In the first dialog box it asks

a =

b =

c =

d =

e =

f =

g =

h =

then i click next

e =

f =

g =

h =

i =

j =

k =

l =

so inputs for e,f,g,h and all given already but it was displayed

again so i need to press tab key for 4 times and come to  input "i = " and so on

I don want this to happen. i want it either all 12 prompted in single dialog box or

atleast no repetition of prompts.(8first&4alone in next)

And i already knew about the System Variable attdia & i dont want to give input via command prompt

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Automatically Inserting Hinges Over Distance

Jul 17, 2011

I have a dyn block of a door (a 1:1 door designed to be laser cut from sheetmetal and folded, hence the strange shape), I want the number of hinge holes (3) to change to (2) when stretching below a certain length and vice versa. I have a visibility state that allows me to change the number/size of hinges/handles through the drop down, but I want to be able to eg. Stretch the door past a certain point (1000mm) and any distance after that will have a third hinge inserted automatically, and reduce back down to (2) when stretched below 1000mm.

I already have it set to stay centered, but trying to make it insert/remove over a set distance is difficult!

Attached.

View 3 Replies View Related

AutoCad 2D :: Scale Being Off For Text / Dimensions / Inserting Scalable Blocks

Jun 21, 2011

I am using AutoCAD 2011. my scale being off for text, dimensions, inserting scalable blocks, xrefs, etc...

The problem is that when inserting, or creating text (or any of the above) in architectural scales everything is fine, however, when the scale is changed to an engineering scale, everything comes in at 1/12 the scale it is supposed to be - i.e. - when I create text it has to be scaled up by 12, it's like AutoCAD is just reading the 200 scale and not multiplying by the scaler of 2400.

View 9 Replies View Related

AutoCad 2D :: Attribute Dialog Box Appear When Inserting Blocks From Tool Palette?

Mar 22, 2012

Is there a way to have an attribute dialog box appear when inserting blocks from the tool palette?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Blocks Not Inserting Properly Through Program

Oct 13, 2011

Have an AutoLisp program that inserts a block with attributes. Been using it forever. Yesterday I ran the program and somehow when the block is inserted, it skips the Y scaling factor. The program should insert a block at a point with a X scale of 19.2, Y scale of 19.2, Rotation at 0 and then four attribute values.

What is happening is the block is inserted at the correct point and X scaling factor, but the Y scaling factor goes in for the Rotation angle (19.2 degrees), the Rotation angle goes in as the first attribute and the remaining attributes are shifted over and the last attribute is missing.Line of code is:

(command "INSERT" "CNVTAG" inspt scl scl 0 text1 text2 text3 text4)

The command prompt displays:

Command: (command "INSERT" "CNVTAG" inspt scl scl 0 text1 text2 text3 text4)
INSERT Enter block name or [?] <NEWWHDBORD>: CNVTAG
Units: Inches   Conversion:    1.0000
Specify insertion point or [Basepoint/Scale/Rotate]: Specify scale factor <1>:
19.20000000000000
Specify rotation angle <0>: 19.20000000000000
Enter attribute values
Conveyor number: 0 Conveyor Speed: 5315-BCS Motor Horsepower: 1.5hp Release
Mode: 45/90fpm

I looked at the system variables INSUNITS, INSUNITSDEFTARGET and INSUNITSDEFSOURCE AND THEY ARE ALL SET AT 0..Currently using AutoCAD 2010.

View 3 Replies View Related

AutoCAD 2013 :: Fatal Error - Access Violation When Inserting Blocks From DesignCenter

May 1, 2012

Inserting blocks from Design Center into model space causes the fatal error: access violation message to pop up.

This never happened in 2012, and I used it from day one.

My livelihood as a 2D drafting student depends on being able to use the blocks from DesignCenter, and now all of a sudden (I've been using 2013 since the day it released with no problems at all until about a week ago) it crashes every time I try to insert a block, regardless of which method I choose to insert with (i.e. right click insert or dragging into the model space window). 

I'm on an Alienware M17x R3 running Windows 7 Home Premium with a Quad-core intel i7 processor, 16 GB of RAM, and an NVIDIA GTX 560M 1.5GB graphics chip. 

I've tried system restore, program repair, clean uninstalls, and none of it fixes the problem. It seems that once the levee broke, so to speak, the bug is there to stay. Or perhaps more accurately, it was there the entire time and it was only a matter of time before it surfaced.

In either case, I would love, after having been a guinea pig, to see a patch issued for this if possible. Not being able to use the sample dynamic blocks is hell. Barring a patch sometime soon, I'm strongly leaning towards going back to 2012, which worked like a charm.

View 5 Replies View Related

AutoCAD 2010 :: Inserting SID Files

Jan 23, 2012

I have recieved several aerials that I need to insert into AutoCad.  Is there a way to insert several files at the same time?

View 3 Replies View Related

AutoCAD 2010 :: Inserting Images Into DWG

Apr 30, 2012

How do I insert an image into an AutoCAD Mac 2011 dwg? On the 2010 PC version, it was just cut / paste method with the mouse .....

View 3 Replies View Related







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