AutoCAD Visual LISP / AutoLISP :: Converting Special Layer With Special Line Weight To Special Layer Name
Aug 9, 2013
i have line in the drawing that exists on layer A-Wall it has different lineweight 0.05 from true wall. Now usually my routine : i select this line and then select similar to convert it to layer glazing.
i need lisp that by one command convert the objects on layer A-wall with layer 0.05 only to glazing.
Is there a way to find and/or replace "very" special characters like [carriage return], [backspace] or even [tab mark], considering that the first thing that comes to mind when saying special characters is the standard and extended ASCII only.
I'm trying to write a simple Custom Command that sets any layer that matches "$-*" to a specific color. But as soon as AutoCAD sees the $, it thinks I'm trying to do a DIESEL expression. Supposedly, the quote marks specify that the enclosed characters should be treated as plain text, but that doesn't happen.Here's what I've got:
^C^C-LAYER;C;252;"$-*";;
And this is what I get:
Command: -LAYERCurrent layer: "$-HATCH-00-002-PW-BOAT"Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]: CNew color [Truecolor/COlorbook] : 252Enter name list of layer(s) for color 252 <$-HATCH-00-002-PW-BOAT>: "No matching layer names found.Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]: It stops, hanging at the incompleted -LAYER command prompt.
I want to color a photo of a brown leather shoe by switching on a color layer under it. I need this because a website script works with 2 separate images/layers. The top layer must be a transparent png of the image (the brown shoe) and the layer under this is a solid color (or more colors). This way you can color a shoe by clicking a button on the webpage.
I tried it using a white shoe on a layer, setting the opacity to 80%, than I used 'Select Color Range' to select the leather of the shoe, than I deleted this selection. This way the shoe keeps the leather look but is kind of transparent. A colored layer under it 'paints' the shoe while you still see the leather texture on it.
I would like converting all objects that has forced linetype to be on a linetype layer.
So if there are objects that have forced linetypes - dashed/hidden/phantom, etc., those entities would be moved to a linetype layer based on their forced linetype. The entities would all be changed to color bylayer, linetype bylayer.
So if there is a rectangle that is sitting on an EQUIPMENT layer, the routine would put that rectangle on a new layer called DASHED and change its forced linetype to BYLAYER.
Lastly, once that's done, the next and final step is to locate a the existing layers with matching linetype - say, OBJECTS with DASHED as a linetype, and merging it to that layer.
I was trying to do one that can change color and line weight using a number provided by user. What i want to do is to ask a number to the user, 5 for example, and then change the color to 5, and the lw to .5. I was starting with this:
(defun c:ccv (/ eco lun ob cc clw) (setq eco (getvar "cmdecho")) (setq lun (getvar "lunits")) (setvar "lunits" 2) [code]......
but is not working, it has a bug with the clw variable.
lisp..It work fine but just that i need some minor modificatio to it...At moment, when i activate the lisp, it will automatic select all dimension,leader and multileader to a layer call "DIMENSION"...Anyway i wonder if it is possible to prevent any dimension,leader or multileader in layer "Section" will not be change to layer "Dimension"?
Say I have 2 items, one is on layer "M-Duct" and the other on "M-Pipe" (they are in the same drawing). Any lisp routine that would create the layers "M-Duct-New" and "M-Pipe-New" (based on the same color and LT as the original layers) and then move those objects to the newly created layers?
Possible to link an xref layer and local layer so they display the same (eg. sync viewport colour, linewieght, line type)?
I insert xref's for my base drawing but legend is on local layers and I would like to be able to ensure that the line colour and linetype always match...
I have a customized button to draw an ‘ac-arrow’. I created a lisp to create the layer “G-ANNO-LEDR”
if the layer name is not found. The advanced part I would like is:
Current layer: E-ANNO-WIRE
Ac-Arrow Leader: G-ANNO-LEDR
OPTION 1:
If, say I am on current layer “E-ANNO-WIRE” and need to draw my “ac-arrow” leader, and continue working
on the original layer “E-ANN-WIRE” (and have the leader be drawn [remain] on the layer “G-ANNO-WIRE”).
With this option, I have the block “ac-arrow” imbedded in my template drawing file to have the block at hand.
With this option, the layer “G-ANNO-LEDR” will be created IF it is not on the drawing.
OPTION 2:
- Currently be on layer “E-ANNO-WIRE”
- Bring in the block “ac-arrow” from my block library “L:AutoCADSymbols”
- Draw the “ac-arrow” leader which will be on layer “G-ANNO-LEDR” (this layer created IF it is not
on the current drawing).
- After the leader is drawn’
- Be put back to the layer I was, “E-ANNO-WIRE”, and continue working.
The OPTION 2 is what I would really like to have. A while back, I happen to see one like OPTION 2, but I cannot
find it anymore on the users groups. I have been searching for a while now.
Currently, I use the button in my customized toolbar (see image) and have to have the “ac-arrow” block in my drawing and have its layer created in the drawing.
Any script that when ran will set lineweights of a layer based on what color the layer is assigned. For instance if I have 3 lines that are green on 3 different layers. I need the script to change all 3 layers lineweight to .015mm. I have drawings that are inconsistant with layer names so layer translator and methods of that nature will not work because I do not know all the layer names and I have 100 drawings to do this to.
I'd like to change a layer's color from command line because of a user icon. I figured out from previous topics that I should use macro similar to this: ^C^C_filedia;0;-la;s;Verdeckt (ISO);c;1;l;dashed;;_filedia;1;re;
(I want to use this macro to change layer's linetype, too, but that's not the point)
The only problem with this macro: layer's name contains a space therefore Autocad tries to recognize Verdeckt as a command (and macro interrupts there) instead of setting Verdeckt (ISO) as the current layer. I've tried using different quote marks, none of them worked (' and " and <>). I hope there's a method for entering a parameter that contains space.
Software: Inventor Series 2011 SP1 x64 OS: Vista Business x64 CPU: E6400 RAM: 2*2Gb GeIL VGA: Quadro FX 550
About 50% of the time, when I take a screenshot of part of a pdf (using acrobat's screenshot tool) when I go to paste it into C3d, I choose paste special, and then image object, and the screen goes pale and I get the C3d has encountered an error and needs to close message.
I have installed the latest hotfix which was recommended after a save to dxf crash this morning but just had it crash out again with a paste special.
When this crash happens, it never asks me to send in a report.
I am using C3d 2013. the 64bit version, on Win7 pro 64 bit SP1,Intel (R) Xeon (R) CPU E3-1240 V2 @ 3.40ghz and 3.40ghz. 16gb RAM, and AMD FirePro V5900 2gb graphics card.
The computer should be able to cope, but I find that it lags if I just insert whole pdfs and I usually only need a bit of the image.
Is there anything I can do apart from always convert the pdf into a jpg first?
As everybody know copy/paste excel file into an inventor drawing is sometimes difficult. As you can see in the printscreen a special character is not converted. I supposed it's because this special character is not in the AIGDT or is in the extended character set wich is not considered in Inventor?
I am looking to produce a print job in Five colours, CMYK plus a pantone colour. Is there a way to get Photoshop to generate or support a 5 colour file. an extra channel isn't regonized as an extra colour by quark express. At the moment the current answer is two tiffs over the top of each other with the upper set to over print, but this is a little clumsy!
i have this border i made, a line weach consists from a number of colors, when i want to place it around a straight line shape i have no problem and all i need to do is to copy and paste and "free trasform" it acording to the angle of the shape. the problem is with a round shape, is there a way to control this line and make it round?
When I try to paste in any collection of cells from excel using "paste special" C3D crashes. I'm using 2010. It crashes trying to paste into any drawing, and any group of cells.
My error is:
Unhandled Access Violation Reading 0x209519f8 exception at 478f56h
OK I've been a experienced photoshop user and I've been hit by a car. I have CS6. I am trying to remember how to special effects for Icons like beveling.
this project that im working on. Im trying to create a high speed effect, like your travelling through space or racing on a race track. you have those streaks in the design to give the illusion of travelling at high speed.
Im looking to use some football players on the design so what i should use for a background. The design will be quite small and im looking to create the design as an animated gif when its done.
I had a pc crash and am reloading all my old programs including VS 4. I found everything except a couple effect. One was a crown that could be adjusted and placed on a head, another was a wand that went across the screen with sparkling bits, another had butterflies, etc.
How do you insert the accented "a" and the accented "i" in Photoshop CS4? I've searched on the web and found reference to special character codes. Where do you find a list of these Alt-code combinations listed?