AutoCAD .NET :: Change Entity Color / Linetype
Dec 23, 2008
I am using ACADE 2008 and VB.NET. I have a multitude of drawings that I am doing the same three and four operations on and would like to write VB.NET program to do it. I can get my selections set just fine, but my first problem is figuring out how to change all drawing entities color and linetype to "ByLayer". So far I have not gotten past changing just the color value. I have tried multiple variations on the following line without success:
myAcadEnt.Color = Colors.Color.FromDictionaryName("ByLayer")
View 6 Replies
ADVERTISEMENT
Aug 22, 2012
I have a Lisp that I have been working on with some folks in the office, and i feel like i am close, but i am not getting the cigar. The idea would be to have the lisp allow the user to select a nested x-ref entity, and change the color and linetype of the selected layer, similar to the old "LAP" command (I know it is a dinosaur, but I still miss it). I seem to be doing swimmingly, code I have quasi-plagiarized. It seems to crap out where i try to pass the selected linetype back to the layer. I get the nastygram "Command: ; error: no function definition: GETLINETYPE" right after selecting the linetype from the dialog.
Code below...
x(defun c:CX (/ Sel EntList DataList cnt Num ClrNum EntData)
(if (setq Sel (nentsel "
Select object to change layers color and linetype: "))
(progn
[Code]...
HP Elitebook Workstation
Windows 7
View 6 Replies
View Related
May 11, 2006
For AutoCAD 2006, I have an entity that I am changing properties of, but I cannot figure out how to set the colormethod to "By Layer." I am sure that I am missing something, but I am at my wit's end.
View 1 Replies
View Related
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
May 22, 2013
I would like to add additional entities to the selection if any of the selected entities contains a an xdata value.
If I put the condition into the ImpliedSelectionChanged reactor I imagine will probably loop back on itself.
View 9 Replies
View Related
Nov 17, 2013
I would like to detect view change (especially when orbiting the view around) to automatically reposition table-like(block) entity such that the user can always see the face of the entity.
I figured out that there is viewChanged event in AcEditorReactor, but it doesn't seem like it is visible in .NET.
How could I use this callback function?
View 7 Replies
View Related
Sep 15, 2011
Is it possible to change the linetype from continuous to -none-? I created a layer for inserting georef images, and the images all come in with a border line that is related to the linetype and lineweight of which i want neither - i don't want a border.
I tried changing lineweight to 0.00mm but cant find any way to turn off lines?
View 1 Replies
View Related
Jun 8, 2013
I've currently create several layers and after i change in one of 'em the linetype from continuous to a "Dashed" , every new layer i made had a "dashed" linetype and when i tried to change it back to default.
View 6 Replies
View Related
Oct 3, 2011
I want to change my ground conductor from solid green to a dashed line (green is OK) on a set of drawings, but all the dashed linetypes I can find don't show up well at the scale that I've drawn the circuits. I can make them look OK by changing the linetype scale in the properties manager window, but there are a boatload of these lines in eight viewports; finding them all would be a major pain. They are all on a single layer, though, but in the layer properties manager I do not see a way to change the linetype scale for the layer. I could use the properties manager to make the change if I could select everything on the layer. Is there a way to do that?
View 4 Replies
View Related
Jan 6, 2014
I'm very new to AutoCAD but now I'm using LT 2014.
I'm trying to change my linetype from solid to hidden, and I've checked the properties, changed the linetype on my toolbar above, ensured the scale is set to 1, and zoomed in to make sure the scale is correct. I've unlocked all the layers, and checked all my different spaces to see if maybe there was a glitch that just wasn't showing the change in linetype. Nothing!
The properties for my linetype show me that the line is a dotted (hidden) line, but the line itself doesn't show as hidden.
View 9 Replies
View Related
Oct 23, 2012
I have a problem between my template in inch and the one in mm.
Its the linetype scale that is wrong in the mm one, when i draw in the inch one, everything is fine but when i draw in the mm one, i have to set the ltscale to like 25 to see them at the same scale that they are in the inch one.
My guest is its because i've create my template for the mm one base on the inch one and i just change the unit type to mm. Is there a setting i could change that will arrange this?
Product Design Suite 2013
View 2 Replies
View Related
Nov 8, 2012
In our Structural department, we use a layer called S-35-WALL-LB to denote a load-bearing wall, and what the guys typically do when they are on the sheet showing the floor above, is dbl-clk the VP to activate model space, open the Layer Manager and change the VP linetype to HIDDEN to show the afore-mentioned loadbearing walls as walls under.
way to accomplish this through a viewport...but instead of using the Layer Manager, use a lisp routine I can link to a toolbar button where all the user has to do is dbl-clk the VP, press the toolbar button, and either it will convert the default VP linetype (continuous) for S-35-WALL-LB automatically, or get the user to select an object on that layer and it changes the whole lot?
View 1 Replies
View Related
Jun 10, 2013
On Layer Manager can't see VP Color and VP Linetype see picture.
View 9 Replies
View Related
Apr 29, 2013
I can not get rid of the phantom2 line type in my drawings.
View 9 Replies
View Related
Aug 14, 2013
In my xref drawing I changed the linetype of a swing to be hidden. After changing it in the xref and saving I go to my plot file and the swing is still continuous. Visretain is set to 1. The swing changes on all other drawing files except one.
View 2 Replies
View Related
Nov 1, 2012
i have a simple fence line type with "x"s....if i draw the line straight up or to the right it looks perfect. but if i draw it anywhere to the left then the Xs are off centered.
View 9 Replies
View Related
Apr 19, 2013
Quicker way to change the overall linetype scale than using the 'modify properties' dialogue box that comes with Autocad 2008? I've attached an image that specifically shows what I am trying to change, but I get tired of always having to scroll down in the box to find this variable. I would love to have something simple like the old DDCHPROP dialogue box (see smaller image). LISP routine or something where I click on the toolbar button, and simply change the overall scale without having to navigate through the native one?
2013-04-19_114756.jpg2013-04-19_114732.jpg
View 9 Replies
View Related
Jun 12, 2012
When applying a linetype to a curved line (e.g. polyline, arc, circle), the direction of the linetype reverses at every change from convex to concave. The error does not occur with straight segments. The REVERSE command does not work, because it will change the direction of the entire polyline. In fact, the reverse command does not even recognize and arc.
View 3 Replies
View Related
Feb 27, 2012
want to upated attributes in proxy entity is this possible?
View 1 Replies
View Related
Mar 19, 2013
He has a survey figure that is too short to display the text in the linestyle. When I change the linetype scale for the object, it has no effect.
View 1 Replies
View Related
Jun 24, 2009
I need to do three things in a LISP routine for around 200 drawings. First, I need rename lots of old layer to new standard layer name, like change layer name "CL-RAILWAY-0" to new layer name "CL-0".
Secondly, I need translate some layer to standard layer, like all the things on layer "CL-WATER-160" to layer "CL-0"
Last, change some linetype, like change linetype"CENTER" to "CENTERLINE". I can do all those things by "CHECKSTANDARD" manually, but I really need someway faster and easier.
View 9 Replies
View Related
Mar 9, 2012
how to write a lisp that when i activate it, it will change all the objects in the drawings to be change to "Layer 0" and all linetypes "Dashed" change to be "hidden"...
View 9 Replies
View Related
Nov 2, 2011
How can I get the color that a layer has assumed in an specific viewport, and the same for an specific Linetype when it changed with an VPLAYER command
I found a function LM:GetOverrideData ( layer / data ) ;; © Lee Mac 2010
but return me the same data if I hask about an specific layer in all vports, and in one of them the layer color is modified.
View 2 Replies
View Related
Mar 7, 2012
Is there any way with a click of a button by using LISP, it will change all the selected object to be changed to a pre-set layer...
Example, after i select a certain entities in a drawing, with LISP, it will change all the object to layer "0"?
Additionally, u also need it to change all selected entities that are in "dashed" linetype to be change to "hidden" linetype..
View 3 Replies
View Related
Sep 13, 2012
I currently use Mep 2012 although my question I believe is general in nature. As a sheet metal contractor I do drawings that have many different entities at various elevations. Many times I use change propeties to match the propeties of on entity like a linetype to change another. What I really need to do is have the ability to use a similiar button and match or change the "Z" elevation of a specific entity just like I do for linetype, color etc.
View 2 Replies
View Related
Nov 14, 2012
How can I copy a linetype definition from a drawing to the linetype definition file?
View 7 Replies
View Related
Feb 15, 2013
I have a bunch of objects on a particular layer, and they're all different colors and linetypes and lineweights, and i want them to all take on the color / linetype / lineweight that i chose for that layer.. how do i do this?
View 1 Replies
View Related
Dec 20, 2011
I have existing multilines with linetypes set to byLayer, yet when the linetype on the layer changes, the Multiline linetype does not. Is there any way to get the linetype to change with the layer?
View 1 Replies
View Related
Aug 22, 2012
I didn't notice when and why it happened, but now when i draw white line, it appears brown. I didnt change any settings, just did my usual work, when it appears. Other colors are normal. What could it be?
View 6 Replies
View Related
Aug 7, 2006
i am looking for a lisp routine which can change all lines in color yellow ( in different layers) to color 8.
View 9 Replies
View Related
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