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


ADVERTISEMENT

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 .NET :: Inserting A Block With Attributes?

Aug 11, 2011

I have this code to insert a block (the block has Attirbutes) it bring in the block but strips the attributes. Here is the C#
 
[CommandMethod("PUTBLK")] static public void test() { string comp = "C:\test.dwg"; Document doc = acadApp.DocumentManager.MdiActiveDocument; //Editor ed = doc.Editor; Transaction tr =

[Code].....

View 3 Replies View Related

AutoCAD .NET :: Inserting Block With Attributes

Dec 3, 2011

I wish to insert a title sheet dwg, which has attribute definitions, as a block in another dwg. I can insert it, and if I explode it, the attribute definitions appear. Otherwise they are not added to the database.

I am using standard code, which I can attach. it starts     

Dim btr As BlockTableRecord
..        
Dim blk As BlockReference = New BlockReference(ip, blkid) 
'  insert block
..
btr.AppendEntity(blk)      
If btr.HasAttributeDefinitions Then
ForEach attID As ObjectId In btr
etc.

but btr.HasAttributeDefinitions = False

View 7 Replies View Related

AutoCAD 2010 :: Inserting Block With Attributes

Apr 11, 2012

I have a ton of blocks with attributes.  Sometimes when I insert them, AutoCAD (2011) prompts me in the command line (perfect).  Other times, a prompt box appears to insert attribute definitions (annoying).

What setting do I have wrong, or am I setting the blocks up incorrectly?

View 5 Replies View Related

AutoCad 2D :: Block With Attributes Inserting Wonky

Mar 29, 2011

Whenever I try to insert a block with attributes, the text comes in backwards/upside down... I've tried attedit, battman, mirror, properties, attsync, regen and torient. None of them work.

I've inserted blocks into drawings in the past with no problems, using the same template and workspace..

View 9 Replies View Related

AutoCAD 2013 :: How To Edit Attributes While Inserting Block

Jan 30, 2013

I am inserting a block that has one attribute with tag "FAB_HEIGHT". I have not been successful in editing this attribute.

Public Sub InsertSection()
'Call the Function that returns strSectionBlk (the Head Section drawing)
getSectionDwg(strModel, strHeadType) 
'Start the database
Dim db As Database
db = HostApplicationServices.WorkingDatabase()
[Code] .....

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 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 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 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 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 Map 3D :: Publish DWF With Attributes - 2012?

Nov 16, 2011

There's supposed to be a way to publish a map to DWF and include attribute data from gis feature sources and joins, but I'm not able to get it to work, so perhaps I'm doing something wrong.

I have a map displaying parcels from an SDF connection and have joined it to a non-spatial SQL Server table so I can theme on ownership. The map displays exactly what I want, so now I would like to publish to DWF with attributes, but when I go to MAPDWFOPTIONS, the window doesn't present a list of attributes to select, it is simply blank. Have I missed a step someplace?

I'm using Map 2012 SP1 on WinXP SP3.

View 9 Replies View Related

AutoCAD Map 3D :: SDF To Blocks With Attributes?

May 19, 2013

I'm looking for a map tool that can convert feature data from an SDF file or SHP to autocad block's with attributes data. My client just want blocks with attributes and dont work with sdf or similares, they extract the attributes and then work them in other software, so, i wonder if there is a autocad map tool that make the conversion from feature data SDF to blocks with attributes, that will make the work mutch more easier and fast. 

Other question relational with blocks. How can we link block attributes and excell in real time, where i could change cells data in excell and the update happens in the open drawing and vice-versa?

And would like to know if there is a way to make this happen without vba tools or lisp's...just with map tools. 

C3D2011
MAP3D2011

View 6 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 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 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 :: 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 2013 :: Attributes In Blocks

Jul 25, 2013

some attributes you can double click and edit within the dialogue box, others you have to double click and they are greyed out in the box, you have to click the little button with ... on and edit in place on screen... why?

whats the difference between the block atributes?  attached is an example...

View 5 Replies View Related

AutoCAD 2010 :: Attributes In Blocks

Mar 20, 2012

I'm working on creating some blocks for our office.  Basically it is a simple block with a few lines that remain and then a couple attributes you can click on and change.  I have added the attribute and all is working well.

My only issue is I would like to make the text in the attributes to be bold.  For some reason I can't see to do this.  Is it not possible.

Basically I want to try and get some of the attributes to stand out more than others.  I tried changing the color and the lineweight of the attibute (which worked the color is different) but when it prints it doesn't change at all.

View 2 Replies View Related

AutoCAD .NET :: 40000 Blocks With Attributes?

Aug 3, 2013

I am looping over a set of 40000 entities converting them to blocks and adding 35 attributes to each block. Till here its fine my .net program converts to block and write atributes to each one of them in 2 hours. But after the program finishes and I try to save the file autocad takes ages to save the file and also it stops responding. Is autocad not able to handle 40000 blocks with attributes. I am using autocad 2013. The dll has been developed using visual studio 2010.

View 3 Replies View Related







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