AutoCAD .NET :: How To Get Block Layer Name

Apr 18, 2012

How to get the block's layer name?

I iterate through Blocks to get informations but i'm not able to code the source to obtain what i want?

Sample source taken from AutoCAD.NET site:
 
Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()
'' Open the Block table for read
Dim acBlkTbl As BlockTable = acTrans.GetObject(acCurDb.BlockTableId, OpenMode.ForRead)
'' Open the Block table record Model space for read
Dim acBlkTblRec As BlockTableRecord

[Code] ...........

Maybe use nested transaction to iterate through LayerTableId?

View 9 Replies


ADVERTISEMENT

AutoCAD 2013 :: Lisp Can Change All Elements In Block To Layer 0 Except Layer Defpoint

Sep 3, 2013

I need a lisp can change all elements in block to layer 0 except layer defpoint but still keep linetype, color as it is.

View 1 Replies View Related

AutoCAD 2013 :: Block Is Created On Layer 0 Versus A Regular Layer

Nov 14, 2013

what does it mean when someone says a block is created on layer 0 vs a regular layer?

View 3 Replies View Related

AutoCad :: Drawing By Block Not By Layer

Mar 8, 2012

for some reason when i select a layer and draw a line (lets go with blue) it draws a white line, though in layer manager it says i'm drawing a blue line. when you click, then rt click the line, go to properties it says the line is drawn "by block" once i switch it to "by layer" the proper colors come up. I am altering a drawing so its easier for me to draw in a different color to see what i've done and what was already there.

View 9 Replies View Related

AutoCad :: Hide Layer Within Block?

Jun 28, 2012

Is there a way to hide a layer within a block? For example, I have 3 layers within a block (Modules, ItemNo, & StudLoc). The block itself is of the layer 'Modules'. I need to hide the 'Modules' layer and the 'ItemNo' layer to just reveal the 'StudLoc' Layer.

View 2 Replies View Related

AutoCAD 2013 :: Layer Displaced In Block?

Mar 7, 2013

I've a symbol of three layers  as a block in a dwg file. When I copy and paste the block in a other dwg file, all layers are displaced. And I don't know why.

View 4 Replies View Related

AutoCAD .NET :: Change Block Layer After Insertion

Jul 31, 2013

I've inserted a block into my drawing with this

....

Dim tmpDb As New Database(False, True)
tmpDb.ReadDwgFile(nombrebloque, System.IO.FileShare.Read, True, "")
Dim Transform As Matrix3d = Matrix3d _

[Code]...

and I would like to change some properties (layer, color,...) of the entities. (without modify the original block)

How can I access to these entities?

View 3 Replies View Related

AutoCad :: Lock Down A Block Without Locking The Layer?

Jul 11, 2012

Is there a way to lock down a block once it's in the drawing, without locing the layer?

View 0 Replies View Related

AutoCad :: How To Make A Block With More Than One Layer Linked To It

Mar 6, 2013

Is there anyway to make a block with more than one layer linked to it? For example if one wants a hole in "floor layer" to line up with a hole in "roof layer" simultaneously so that if it's moved in one layer it will automatically move it in the other(s) layer(s) since they would be linked. This would save a ton of time since you won't have to turn on different layers and make sure they both line up plum by moving them one by one until they all line up on top of one another in different layers.

In other words I would like to move a hole on a single visible layer that would automatically move the holes on any other layer that are linked or plum to that one visible hole (even if the others are Not visible/turned off or if they are frozen in the view port).

View 9 Replies View Related

AutoCad :: Turn Layer On / Off On Block Level?

Nov 20, 2013

As we know we can freeze a layer on VP level. Is there any way to turn a layer on/off, on the block level?

Let's say, you have "Text" layer. You make a block out of other blocks (nesting blocks) which they contain objects on "Text" layer but you don't need those objects on your new block and on just that block you want to turn them off.

View 5 Replies View Related

AutoCAD Architecture :: Attribute Block Text To Layer 0?

Apr 1, 2013

I am ACA 2013.  I received a file from an equipment company and has these blocks that are huge in file size, so I am cleaning things up on them.  Their blocks have multiple layers in them with different colors and linetypes.  I see the setbylayer command and it works, but not all the time.  On some of the blocks, they have attribute text in them.  the individual lines of the attribute are on different layers.  I want to keep the info, but set all to layer 0.  then I can move it to the block to the layer I want. 

another question, is there a way to make an outline of a block?  Some of these blocks are so detailed that I want to make a simple outline and then delete the block.

View 3 Replies View Related

AutoCAD .NET :: Select All Block Only On No Frozen And Active Layer

Jul 12, 2012

Dim editor As Editor = Application.DocumentManager.MdiActiveDocument.Editor
Dim db As Database = HostApplicationServices.WorkingDatabase
Dim tr As Transaction = db.TransactionManager.StartTransaction()

[Code].....

the only prob is : I want selec all block but not the block on layer frozen, off or not visible...

I can check all layer stat on each block.. (i do that already for check each block (name) but i want a solution more easy.)

View 5 Replies View Related

AutoCad 2D :: Changing All Colors In Drawing Regardless Of Layer Block

Feb 20, 2012

I want to change the color of everything in my drawing except for 3 layers. There are hundreds of layers and blocks in this drawing, even after purging. I want to avoid just exploding everything and putting it on one layer.

I want to change everything to grey except for the 3 layers I'm working in. I'm using ACAD LT so I can't create a script to do the job. The only thing I can think of is going into the layer properties window and selecting each layer and changing the color one at a time.

View 9 Replies View Related

AutoCAD .NET :: Change Attribute Color / Layer Per One Block Only

Jun 19, 2013

I've read this post:

[URL]

Everything works fine, but I have one problem.

I just want to change colors for all objects in current model space. But this command also changes attributes/blocks definitions (I mean, any new block which I insert has the color that I specified previous).

Where I have to change the code?

View 4 Replies View Related

AutoCAD 2010 :: Insert Block To Inherit Current Layer?

Jan 12, 2010

There are certain occasions where I would like to insert a block to inherit the current layer in an active AutoCAD drawing. This happens frequently when a client requires a certain layering standard and I have a block from another drawing with different layering standards. To correct this it usually involves several steps - Explode and change the layer, setbylayer, bedit, etc,

Is there a command to where I can directly insert a block and its layers change to the current layer of the active AutoCAD drawing?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change Block Layer

Jul 25, 2006

I have been filtering through this descuession group for a whil this morning looking for what I need and have found somethings that are close but haven't managed to change them a little to do what I am wanting..

I have drawings with a block named UG101 and has been inserted on all sort of different layers.

What I would like to do is run a lisp routine that would select all blocks with the name UG101 and put them on the layer CableInfo.

I have many other blocks that i need to do the same to but with different names, so I was hoping, I could change the lisp routine around to do the rest of the blocks in the drawing..

View 9 Replies View Related

AutoCAD 2010 :: Set Parameter In Dynamic Block Into Visibility Layer

Dec 6, 2012

I am wondering if you can set a parameter in a dynamic block in to a visibility layer. Is this possible?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change Block Layer After Insertion

Mar 7, 2013

wondering if is possible to have a lisp routine to:After use the INSERT command, the routine will automatically change the layer of the inserted block to a specific layer according of its name.

i.e.

Step 1 : I will insert a block named Block A using the normal autocad INSERT command (I do not want to insert the block without the Insert window dialog box)

Step 2 : After the insertion, the routine will select the last insertion (or the last object, or any other best way to select this block and will take it's name)

Step 3 : The routine has a list that says:

(If the last insertion (or object) is named Block A, put it in the layer Layer A with color Bylayer and linetype Bylayer)             

(If the last insertion (or object) is named Block B, put it in the layer Layer B with color Bylayer and linetype Bylayer)

and so on... I can make the approprieated list by myself folowing my standards.

I think it will be nice to avoid an error if the block is not in the list. So:

(If the last insertion (or object) name is not in the list, do nothing)

To finish, it will be nice to create the layer if it does not exist. Also, Unlock, Thaw and Turn on the layer if it's Locked, Frozen or Off.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Insert Block On Layer That Is Frozen

Feb 19, 2013

We are using autocad 2010 and I have written a routine that will insert several blocks on to several layers.  I thought it worked flawlessly, until I used it.  Our drawings use layer states.  When one state is in use, all the other layers are frozen.  We want to insert a block, at a specific point chosen by the user, and the lisp routine will insert a couple of other blocks at that same point, but on a layer that is frozen.  Three blocks installed in all, at the same point, on two layers. The routine works if all layers are thawed, but not if the layers are frozen.

(defun c:lP1 () ; this starts the routine
(setq temperr *error*) ; saves *error*
(setq *error* rerr) ; sets the new error variable
(command "_.Undo" "_mark") ; start of "undo" command
[code]....

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Determining The Layer Block Was Created On?

Feb 21, 2012

I have blocks that were created on one layer but inserted on another layer. So, when i  turn the layer off that the blocks were inserted on they remain visible because you have to turn off the layer they were created on to have them disappear. Is there a way for me to determine what layer the blocks were created on?

View 9 Replies View Related

AutoCAD Inventor :: Assign Sketch Symbols / Title Block To Defined Layer

Apr 1, 2013

I have a need to send files saved from Inventor.dwg to AutoCAD.dwg to suppliers, however due to the quantity of files "size", I need to purge them in Autocad before I e-mail. The problem I have is that my template Inventor.dwg is 1 mg due to Sketch Symbols, plus added file size for the views etc. When I get to Autocad to purge them, my Sketch Symbols and Title Block is on the "0" Layer. I have to select everything that is on the "0" Layer and change the layer to a different layer to start a LISP routine that does a, Erase All, Purge All, to get my file size down. I have not found a way to change the layer that Sketch Symbols are created on or reside on by default or Title Block either.

Any way to do this Inside the Sketch Symbols, inside the Title Block, using the styles, anything?

I am just now going through a iLogic course and read that Layers can be hidden. Can iLogic be used to change the layer of "SketchSymbols" or "TitleBlocks" and or used to purge all Sketch Symbols during the SaveAs to Autocad.dwg process?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Automatic Move Preset Block To A Layer

Mar 20, 2012

If there any lisp for the below sequence:-

1) select a few group of pre-set block name
2) change all these pre-set bloack name to a layer " Eye Bolt"

At moment, i have several kind of block such as example of "EB10", "TEB10","EB8","TEB8" and etc.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change All Block Element To Layer 0 Except Defpoints

Sep 24, 2013

URL....i need a liitle bit change as my latest comments in that topic. I dont want to change defpoint layer to layer 0.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change All Block Element To Layer 0 Without Changing Color / Linetype

Sep 3, 2013

I have too many blocks with specific layers inside.

develope lisp can change all to layer 0 but keep color and linetype as it is.

I will use this as a part of script to change multiple block.

View 9 Replies View Related

AutoCAD 2013 :: Apply Layer Filter To Layer Toolbar Disables Function Of Layer Filters In Tool Palette

Aug 1, 2012

It appears that the Layer Filters functionality is broken again with 2013. Unchecking the "Apply layer filter to layer toolbar" disables the function of layer filters in the tool palette.

View 5 Replies View Related

AutoCAD 2013 :: Updating Block References Resets Block Table Selections?

Sep 4, 2012

We use a number of blocks with block tables for data extraction here, and whenever one of the blocks is modified and updated, all of the block tables reset to the default value. This happens for any block reference change, not just changes to the block table (which makes sense that it would reset).

How can we update these blocks without having to manually change all of the block tables afterwards?

View 2 Replies View Related

AutoCAD 2013 :: Dynamic Block In Action Doesn't Reflect Test Block

Jan 24, 2013

I am in the process of fixing one of our dynamic blocks. It's a fairly simple fix where there was a typo in one of the names of our items in the lookup that needed to be fixed.

I changed the name of the item in the lookup table. I went and did the test block and it seemed to work fine, but when I bring the block into a drawing, it reverts back to the old lookup as if I did nothing at all.

I made sure that the path was correct and I even just dragged and dropped straight from Windows Explorer to no avail.Does AutoCAD keep referring to the old block? Did I forget to change something else?

View 3 Replies View Related

AutoCAD Architecture :: Explode Destroys The Small Block Inside Bigger Block?

May 30, 2012

I have a block containing several parts blocks. When I explode the main block all of the parts are exploded back to lines. I have used both "explode" and "xplode" and have the same results.  How can I explode so I have my components as blocks?

View 6 Replies View Related

AutoCAD Civil 3D :: Inserting A Block Deletes Points With Point Style With Same Block

Oct 16, 2013

We're using C3D 2013 SP2.  The survey company we use uses point styles to show the blocks.  Say they shoot a catchbasin.  Instead of inserting the block, the point shows up as the block.

I did a field check & needed to insert a missed CB.  When I inserted the block, the other points that were CBs disappeared.  I had to insert the block, copy it the clipboard, undo the insertion & then paste the block in.  It did this on other drawings & other blocks.

View 7 Replies View Related

AutoCAD 2010 :: Inserting New Block And Entering Attribute Data By Selecting Another Block?

Aug 13, 2012

Is it possible, via whatever methods (lisp?) to be able to have a premade block with an attribute and insert it into a drawing then assign a value to it by selecting another existing block in the drawing and using one of its own attribute’s values?

For example, say I have a block representing a telephone and it had an attribute called "PhoneNo" and I inserted it into a drawing showing an office floor plan that had blocks in each office space that are telephone junction boxes with attributes "PhoneExtension".  I would like to be able to autocomplete the entering of the “PhoneNo” data by selecting one of the telephone junction boxes in the drawing and using its attribute’s value.

View 5 Replies View Related

AutoCAD 2010 :: Dynamic Block Grips - Block Does Not Change When Insert In Another File

Oct 28, 2013

I have created a dynamic block with a stretch, flip and rotate.  Everything works great in its file.  When I insert it in another file, the grips move but the block does not change.

AutoCAD 2014

View 2 Replies View Related







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