AutoCad 2D :: Block Color Not Changing

Jun 20, 2012

I have a block. All work inside the block is set to layer 0 and color properties are set to 'By Layer'.

When I try to give the block a custom color in model space, e.g. 251, the block remains the same color as the layer color. I have been able to change block colors in this way before.

View 1 Replies


ADVERTISEMENT

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 .NET :: Error While Changing Block Definition Of An Block Reference

Oct 21, 2013

I'm trying to change block the definition of an block reference.

I did something like this:

blockreference.BlockTableRecord = newBlock.ObjectId;

In most cases this works well. However I found a case that it not work as well. When I try to change the definition from a new block that I have created in my test DWG, it disappears from the model.

View 6 Replies View Related

Xara :: Changing Color Of Bullets Without Changing Text Color

Sep 28, 2013

I am having trouble in changing the color of the bullets without changing the text color. Problem is I cannot select/highlight just the bullet so any new color selected applies to the whole line including bullet and text. I am using DP v 7.

View 8 Replies View Related

AutoCAD .NET :: Changing Block Name

Aug 11, 2011

Is it possible to edit a block name?  I am trying to nam the block to JIM like this...

BlkId = doc.Database.Insert(dwgName, db, true);
BlockTable bt = (BlockTable)tr.GetObject(doc.Database.BlockTableId, OpenMode.ForRead, true);
BlockTableRecord btr = (BlockTableRecord)tr.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite);
BlockReference bref = new BlockReference(new Autodesk.AutoCAD.Geometry.Point3d(0, 0, 0), BlkId);
bref.BlockName = "JIM";

I am getting an error:

"Autodesk.AutoCAD.DatabaseServices.Entity.BlockName' cannot be assigned to -- it is read only"

View 3 Replies View Related

AutoCad 2D :: Inserting Block Changing UCS

Oct 4, 2013

Every time I insert a block (dynamic or otherwise) into any drawing (I have tried several) my ucs (0,0) changes to the insertion point of that new block. I don't know what I have done, what button I have inadvertently pushed or setting that I have set, but I do not know how to undo this!

Iam using AutoCAD 2014.

View 3 Replies View Related

AutoCAD 2013 :: Change Color Of All Elements Into One Color In Block?

Sep 4, 2012

How can i easy change the layer colors of all elements in a block and also the blocks in that block witout exploding everything ten times. I wish Autodesk create a button so if you select a block and use the button i had a choice to

select a layer or color. Looks so simple.

* setbylayer is not what i mean

* also don't want to use xrefs

View 9 Replies View Related

AutoCAD .NET :: Changing Position Of AttributeDefinition In A Block?

Dec 18, 2012

I am trying to change the position of an AttributeDefinition in a block, but it nothing is changed:

foreach (ObjectId oidAttribute in btrBlock){ adOrg = taTransaction.GetObject(oidAttribute, OpenMode.ForRead) as AttributeDefinition; if (adOrg != null) { adOrg.UpgradeOpen(); adOrg.Position = new Point3d(0, 0, 0); // Break; break; } adOrg = null;}
...
Commit();

How do I change the position?

View 4 Replies View Related

AutoCAD .NET :: Dynamic Block Manipulation After Changing UCS

May 28, 2013

The dynamic position and angle parameters within the inserted blocks appear to be based on the UCS at the time of insertion and relative to the basepoint of the block. These positions don’t change if the UCS is changed or block is rotated.

I can’t work out how to modify the position parameters if the UCS is not the same as that used when the block was inserted. How I access these positions after changing the UCS?

I’ve tried looking at the ECS of the block reference but I’m not sure if that’s what I need to be using.

View 3 Replies View Related

AutoCAD .NET :: Dynamic Block Not Changing State

Sep 6, 2011

I have created a bunch of templates (title block type drawings) for my company.  In these templates there is a dynamic block used for a particular note.  Based on customer number, this note will be changed.

We have a program that will insert the correct template based on the drawing type.  It will know the customer number and change the dynamic block visibility state to reflect the correct text in the note.

I don't know why, but sometimes the visibility state does not change.  It's not the code as in some drawings it works just fine.  I've gone in and just changed the visibility state name, then changed it back, then saved the drawing and it worked.

Has trouble with dynamic block visibility states not working when using an automated process?

View 3 Replies View Related

AutoCAD 2010 :: Changing Block Names?

Mar 23, 2011

Is it possible to edit a block name?  The alternate solution is to create a new block (door) to accurate describe sizing/ type and copy to and delete old blocks w/ innacurate names.  Because of the high number of doors, the alternate solution would take much longer. 

View 9 Replies View Related

AutoCad :: Changing Company Name In Title Block

Jul 26, 2012

Been working with Auto Cad for a while, but using the same tittle block that was created by someone else.

The tittle block seems to be made up of some text lines (which is the area I want to modify), but tied to several 'attributes' below the text, project, drawing number etc.

The only way I can access the text is to 'explode' the whole area (block?), I can then modify the text, but in doing so the several attributes function individually, and not as a whole block.

How do I 'un-explode' the area?

View 3 Replies View Related

AutoCad 2D :: Changing Dynamic Block Colours?

Sep 4, 2013

I have a dynamic block and want to change its colour. I've gone into blockedit and made the change there however when I return to the drawing the colours haven't altered.

View 3 Replies View Related

AutoCad :: Changing Text Properties In Block?

Jul 4, 2013

I have a title block saved in my template file, and also as a block in the design centre. The variable fields within the title block are in Arial font. If I open each title block and fill them in I have no problem. If I take the shortcut of filling in one and copy and paste from one sheet into the next sheet, the text properties change back to standard.

View 2 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 :: Slowing Down When Changing Block Reference Property Values

Sep 30, 2013

I'm inserting automatically many references to a couple of dynamic blocks in an AutoCAD drawing using VB.NET. If the number of inserted references is not very big, it works fine but, if I´m inserting hundreds of them, I noticed the app is slowing down a lot.

After taking some measures of the time the app uses in its execution, I noticed changing the value of the block reference property is slower as the number of inserted block increases: it takes 10 or 20 miliseconds at the begining but it can take more than 1 second after inserting one thousand of block references (to the same block).This is the function I use to change the property values:

Protected Sub CambiarPropiedades(ByRef ed As Editor, _ ByRef br As BlockReference, _ByVal nombrePropiedad As String, _ ByVal valor As Double) Dim pc As DynamicBlockReferencePropertyCollection = br.DynamicBlockReferencePropertyCollection If br IsNot Nothing And br.IsDynamicBlock Then For Each prop As DynamicBlockReferenceProperty In pc If prop.PropertyName = nombrePropiedad Then prop.Value = valor '

This line takes a long time the first time I call this function for the ' same block reference but it is faster in the next calls . It also changes the block reference name (br.name) in the first call

Exit For End If Next End If End Sub.

Which I call to change all the properties I need to change in an inserted block reference:

CambiarPropiedades(ed, br, "h_testua", objElementoLaboratorio.POS_TEXTO) CambiarPropiedades(ed, br, "d_texto_hor", posxTexto) CambiarPropiedades(ed, br, "largo", objElementoLaboratorio.LARGO) CambiarPropiedades(ed, br, "fondo", objElementoLaboratorio.FONDO)
 A weird thing I noticed is that when I call this function to change the first property of an inserted block, it also changes the .Name of the block reference.

Even if I change the order in the property modification, it takes always a lot in the first call, it does not depend on the property I´m changing.

View 1 Replies View Related

AutoCad :: Changing Entity On Single Instance Of Defined Block

Jun 8, 2012

A defined block "DH" has:

A circle on layer CIR having a color of red...
A defined attribute on layer ATTR having a color of white...
The insertion point is the center of the circle...

Is it possible to change the circle to blue on one instance of the block without affecting the same change to other identical blocks in the drawing? Example:

Attachment 35286

View 2 Replies View Related

AutoCad :: Edit Block In Place (refedit) Without Changing Globally?

Mar 28, 2013

Can you edit a block in place (refedit) without changing globally and without exploding within that drawing?

View 6 Replies View Related

AutoCAD LT :: Changing Attribute And Lost Imperial Door Dynamic Block?

Jul 30, 2013

I was trying to change an attribute and lost the "imperial door" dynamic block.  I do not know where to find the original and replace it in the tool palette.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Changing Insertion Point Of A Block?

Feb 6, 2011

I have insert blocks in my dwg. It is the circle. While creating the block, i was just pick the point into the circle not exactly at the centre.

Now i want change the insertion point of the block at centre of the circle without moving the objects from the dwg.

Beacuse i had use block editor to change the insertion point. But after changing, all blocks were moved from the original position.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Changing Text In Attributed Block

Dec 21, 2012

I am trying to speed up some basic drafting of text revisions. In the P (plumbing) we call out the fixture units for a water pipe, along with the fixture units, the pipe size changes.
 
Is there any way to add numbers in an attributed block? (I have a lisp that works on text & mtext, but not attributes)

1.1. Example: Like if you have a block with two attributed text fields, the 1st field {x} is a number (fixture unit), and the 2nd field {y} is a number (pipe size).  I would want it to only add the 1st text fields. [If possible then change the 2nd text field according to a changeable chart. (see #2)]

1.1.1.   This is how the block looks like: x (y")
1.1.1.1.   x could be any number from 0.5 – 10,000 (only using 1 decimal place, and only as needed)
1.1.1.2.   y could be any number from the following list: ½, ¾, 1, 1¼, 1½, 2, 2½, 3, 3½, 4, 5, 6
 
Is there a way like in excel that you can set up a formula that will give a numerical result depending on other input? Like pipe size that change depending on the number of fixtures. There would need to be two different formula, one for hot and one for cold values (The value would be set at the beginning of the job; typically these values would not change later in the job). This could be separate text or if possible using the attributed block as described in #1.

2.1.    Example: Like if you have a block with two attributed text fields, the 1st field {x} is a number (fixture unit), and the 2nd field {y} is a number (pipe size).  I would want it to change the 2nd text fields according to the value in the 1st text field. If the value in {x} is 0.5 – 1.0, it would result in ½; 1.5 – 7.0 = ¾; 7.5 - 17 = 1; 17.5 – 36 = 1¼; ect.

2.2.    In excel it would be =IF(x)<1,"1/2",IF(x)<7,"3/4”,IF(x)<17,"1",…{all #’s in between} …IF(x)>5000,"6")))))

View 9 Replies View Related

Paint.NET :: Change Background Color Without Changing Image Color?

Mar 4, 2012

How do I outline an image so I can change the background color without changing the image color ?

View 1 Replies View Related

AutoCAD .NET :: Changing Distance Parameter In Dynamic Block Doesn't Move Attached Attributes

Aug 28, 2011

 I have this Dynamic Block which has a few  distance parameters on it and  an attribute at beginning of each parameter which are attached to a stretch action. If   manually bring the block in. And  set a value to attribute and then stretch the it , attribute move along with action. But when I do it pragmatically it doesn't . Basically attribute stays at original location of original block before stretch. What is wrong with my code. Or Shall I do something to Attributes when I change the distance parameters in Program? I don't know .

I have a function which bring the block in and set attribute first and then another call which change the distance . So I don't show the first function which to me works fine . The problem is this part.

For Each myBRP As DynamicBlockReferenceProperty In myBRC
For I = 1 To NumbderOfDistanceParamsinDynBlk
If myBRP.PropertyName = "Distance" & Trim(i.ToString) Then
myBRP.Value = DynDistancevalue(i)
End If
Next
Next

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Attribute Height Is Changing Each Time Routine Is Run With An Annotative Block

Apr 30, 2012

I only do programming when absolutely needed so it usually only happens every couple years. I wrote this routine to count nested blocks inside of dynamic blocks to count parking spaces. The routine worked fine but was relying on the ltscale to scale a block containing an attribute for the total number of spaces. I want to update the routine to use an annotative block so the scale doesn't have to be set. I changed my block containing the attribute but now when I run my routine, the attribute height gets changed each time the routine is run. The text just gets larger and larger. Here is the portion of the routine where the attribute info is gathered and updated with the new value for that attribute. If you need the entire routine, I can post it with a slight modification so it will work outside our network.

(defun updateattrib ()
(setq CNT 0) ; sets count to 0
(while (< CNT (sslength ss)) ; starts loop while CNT is less than the number of objects in the group

[Code].....

I am running this in Civil 3D 2010 but will want it to work in 2013 so if the solution will only work in 2013, that is fine with me.

View 3 Replies View Related

AutoCAD Inventor :: Title Block - Assign Static Sheet Letter And Changing Page Number

Nov 7, 2011

Standard sheet number option gives you only 1, 2 and so on.

I want A1 where A does not change and 1 changes depending on sheet number.

View 1 Replies View Related

GIMP :: Changing Color Using Color Exchange?

Dec 11, 2013

I am using the Color Exchange feature in Gimp 2. I am trying to change a red background to black. The Color Exchange feature allows me to do that, however, it comes out with only part of the color changed and it all very blotchy.

Here is a screenshot of what happens after I select the red square and do a Color Exchange from red to black.

View 2 Replies View Related

AutoCAD Map 3D :: Layers Changing Color

May 31, 2011

I have three layers in my drawing with attached TIFFs and every layer is changing from its assigned color to a grayed out appearance. Does this sound like a graphics/Hardware issue? Autocad Map 2010, XP, NVIDIA quadro fx 570 display adapter. 2 QB RAM processor.

View 2 Replies View Related

AutoCad :: Lines Changing Color

Feb 25, 2011

Using autoCAD 2009, having problems with my line changing to a lighter color, when I draw a line going horizontal it would be the color of the layer I put it in, when I draw a vertical line, the lines turns lighter, for example using color 31, horizontal it's the color I assigned it when vertical it turns white, red does the same thing except for when vertical it is pinkish, how do I get it back to be the same horizontal or vertical?

View 1 Replies View Related

AutoCAD 2013 :: Color Changing JPEGs

Sep 7, 2013

I am importing a JPEG of my logo into AutoCAD 2014 and the colors of the text are changing.

View 9 Replies View Related

AutoCad :: Changing PaperSpace Perimeter Color

Sep 14, 2011

AutoCAD 2010.

In paper space you can change the background color to black to show layout. This is done in tools -options - Display tab - color.

Is there a way to change the default light gray color that extends beyond the layout perimeter? I would like to change if form the default light gray to a darker color. For example a dark gray?

View 1 Replies View Related

AutoCad :: Changing Color For Layout Background

Feb 15, 2012

how to change the color for the layout of all area to gray

View 1 Replies View Related







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