AutoCAD 2010 :: SSGET - Filtering String Content / Code Not Selecting Objects With L Included
Dec 12, 2012
I don;t know what happen with this piece of code, I have checked it a million of times and seems to be well done. I'm trying to filter a previous selection and select Text or Mtext objects that are in the layer COTREF, and that contain the strings "%%c" AND "L" at the same time. The problem is that the code it's not selecting objects with the "L" included.
The most unreasonable thing it's that I have 2 text objects exactly the same and when using this filter codes just one object it's selected (cyan cloud), check included DWG file.
I'v been searching about it and seems some persons are having problems with ssget filters in the newer versions of AutoCAD, I'm using 2012. I'm also suspecting for the character "%" which could be working as a wild-card, but as far as I know it is not.
I have this code that I wrote years ago that I want to update to select two types of civil3d objects and show them selected with grips on the screen. This function works fine
but if I add the extra object like this which I assume is the wrong syntax i only get the second type of objects. Need correct syntax I should be using for selecting more than one object in an ssget statement.
Something changed in my settings & I don't know how to chance it back. I can't click on to select objects inside or behind objects. What do I have to change to be able to select any item I click on regardless of where it is?
Suddenly, when I select objects, the existing selected objects deselect. If this is a setting I inadvertently misused I don't know why the setting exists. How I can get back to selecting successive objects?
I noticed in Cassel's excellent Wishlist for X6 that she said:
Cassel wrote:since it is possible to have the text too long or otherwise extending outside the image, it is impossible to select the whole text to change the font or the size or the kerning.
If I open a drawing created in 2009 and try to publish it in 2010, DSD file message pops saying about unsaved changes (see attached). Since I don't use sheet sets, I do not have any use for DSD file. Is there a way to disable it?
In 2009 it was simple not to include model tab while publishing. Where is this option in 2010? I don't want to remove model tab from the list every time I publish drawings.
Because my company is setup such that it has 3 companies operating under one roof and multiple MRP systems we have components that could have different part numbers depending on which company is in posession of it. As a design Engineer I need to be able to produce production drawings for all 3 divisions and provide production personnel the appropriate part #s for the items depending on where in the process the item is.
The Eng. Dept. acts across all companies the designs are controlled in a single place. I have created Custom Content Center Libraries for the different companies for standard items like nuts, bolts, etc...
How can I choose which Custom Conent Center Library my parts come from?
2013 Product Design Suite Ultimate Windows 7 Sp1 Intel(R) Core (TM) i5-2400 @ 2.00GHz 6.00 GB of RAM AMD Radeon HD 6570
i failed to find one which would change string of a text to other for all types of objects. I mean it was usually either only multitext, or only text, dimensions or attributes.creating one which would change in abt 200 drawings:
-001
-002
-003
to:
-00001
-00002
-00003
in attributes, text, multittext, leaders, multileaders, dimensions..... at the same moment?
It is meant to be used in ScriptPro (by loading lisp in script).
If not possible, then can also open each file and run the lisp in each of them - still would save lot of time.
I have spent the last three days writing a lisp program that will copy a text string from one text file and paste it into another. I have tried using the write-string, get string, prin1, princ and print functions with no success.
I have a list ("temp.dwg" "temp2.dwg") and would like to add the string "insert text here" into each item in the list resulting in ("insert text heretemp.dwg" "insert textheretemp2.dwg"). how would i go about doing that using LISP?
I want to select all the objects in the drawing and then based on the linetype it should be moved to a specific layer.
I can do this per type (circle, line, etc) but that will be a hell of a job and a lot of code. In Vba I check inside the selection on linetype and then change it to the correct layer. But in .NET i don't figured out a way how to do it.
I just installed Acad v. 2014. I opened up an existing file, went to select a line, but noticed that the line does not highlight when I hover over it like my last version. How do I change the settings so that when I hover over an object, whether it be a line or a cross hatched area, it will highlight that object so I know the length or area of the object?
The issue I am having a problem with is a mouse cursor freeze when I select an object with no command active.When I select an object, the cursor will freeze for about a second before I can move it again. When I hit escape to de-select the object the same thing happens.
This is with Acad LT 2011. WinXP. Normal operation this computer runs ACAD quite fast, no particular lags or anything except maybe when selecting to copy or move very large groups of objects, or when switching between layouts or to model space when there is a fair amount of stuff in the layout, or when regen on a large file size.
This mouse cursor lag was not always the case, but at some point this problem appeared.I have tried save, regen, regenall, closing the drawing, exiting ACAD LT, rebooting the computer.
It's very irritating, since so much of using ACAD is clicking and doing things with the mouse, that it really slows down my production, to have to get a cup of coffee every time I do a select action with the mouse.About a week ago I installed the trial version of LT 2012 to see if it was different. When I opened the same dwg in 2012 there was no lag.
I then closed this and opened the dwg in 2011, and there was no lag. So it seems that the installation of the 2012 trial version changed something in the way 2011 operated.It has been operating fine now with no lag until this morning. Now I have the lag again.When I now open the same dwg in 2012, I now have this lag in 2012 as well.
I did not change any settings in 2012 or 2011 like hardware acceleration or whatever. I just suddenly had this lag, and now I can't seem to get rid of it. Attached is a file that was made by opening ACAD LT 2011 and drawing a few lines, then saving it. No template used.On my computer with this file, I get the mouse cursor lag when I select a line.
I'm using QSELECT to select all objects on a layer, sometimes I need to select objects from 5-7 layers.
Right now I use QSELECT, select 1 layer, click OK, open QSELECT again, select another layer and repeat. Is there a faster way to do this without scripts?
I'm sure some of you do site drawings, how do you measure a curve? Some restaurants or cafes have a rounded serving counter, how you measure the radius to plot into autocad?
my problem is that I can only select objects that are shown on screen on the second click.
For instance, I'm using the green select box (dragging right to left) to select a large amount of items in a really tight spot, (between 2 parallel and horizontal lines only 3mm apart. My problem is that I can zoom in on the right hand side, select the lower right hand corner, zoom out, zoom into the top left corner and select. It'll only select what's shown on screen, which is literally 3 out of 1000 items.
Is there a variable to allow the selecting every object in the select box, with no relation to zoom levels or panned areas?
is there a way to rotate my whole drawing without actually selecting the objects in it. ? i.e to say, the drawing rotates itself according to my viewpoint [my eyes] and i dont have to rotate my neck to view the tilted objects in drawing.
when i am trying to use a function like mirror or offset..etc i will select the lines or objects then i will make a mistake such as selecting the wrong base point or such. i then press esc to end that function and try again but find it annoying that i have to select all the lines again. is there a quicker way to reselect the last lines or objects selected. "like the (L+enter) to use line function type macro".
What might be the cause of a several moment delay when selecting objects and/ or their grip points. It doesn't occur when a command is entered first. The longer a drawing is open the worse it seems to get. Is there any fix or adjustment that can be made?
why my crosshairs stutter after I select an object? I first noticed it after the AutoCAD release that added vertex control options to plines. Crosshairs hang for a second or two after selecting an object that has vertices. Seems like CAD is evaluating the vertices.
If I have a list of handles for Autocad Entities, how would I go about selecting these entities on screen so that the user could add to this selection or remove objects from the selection? I could go with object ids as well if needed.
I have been searching and searching and coming up empty handed or at least coming up with information that doesn't seem to do what I want.
i am using Acad 2005 for two years. since now i started to use acad 2010. i did find the difference in layer isolation in 2005 if you do layer isolation, only the particular layer visible. then can be select all of them in one window. without disturbing other layers. but in 2010 while i isolate a layer, other layers also visible in the backround. when i select the isolated layer in one window, also the backround layers also getting selected.
i am facing problem in selecting the isolated layer all objects in one window.how to do selection or how to work on that?
I have a multiple blocks in my drawing and I would like to select certain obejects within these block from model space, i.e all lines = White, and then return their their combined length.
At the moment I have to explode all of the blocks, use qselect, run length.lsp to get the combined length of the selection and then undo the actions previous to the block explosion.
I cannot recall the command or the name of action to set my AutoCAD MEP 2012 to have a drop-down menu from the cursor when I am trying select an object that is in a cluster of other objects. I had the command active previously but just re-installed the program last week and have been stumped about it since.
I've been looking for a solution to remove the unit string ie Lbs, g, kg from the value given from a 'Mass' value in a text string.
As you may all know, creating text and having a 'physical property - mass' value...the unit string is there...
Lots of people on here have the problem...no-one has got a solution.
Until now...
Basically...open the part you need to get the mass property of in your text string.
Follow the instructions on this webpage...this is the first part...
[URL]
Basically, this creates a Mass property value in the parameters table that you can call on as a text parameter.
It's similar to the custom iproperty model - mass but NOT the same.
Once you have done this, you can go to the drawing of the part and create a text string in the drawing and call it up as shown in this procedure. BUT it still has the unit string.
Here's the best bit that you want to know...
To get RID of the unit string...open up the part again from the drawing...click on the parameter icon...find the user parameter...in the Nominal value column, right click on the value and you get a pop-up that gives you 3 options...
Custom Property Format, Make Multi Value & Delete Parameter.
Click on Custom Property Format.
The pop-up window comes up...showing you the property type...in my case...the 4 left columns read Text, g (grams), Format & Precision...
On the right hand side I have a Preview of the text...then 3 check boxes...Units string, Leading Zero's, Trailing Zero's.
Units string is checked.
Uncheck it.
Close it...Save your part...go back to the drawing and hey presto!...the text now shows the weight you require as a straight value...no units!
I just started having an issues with the delete feature. When I click on an object and it highlights it--when i hit the delete button, it doesn't delete the object any more. Also i should be able to click on as many object as i want, now it makes me hold the shift key down. And also when I click on an object then pull the layers tab down to assign it to a diffent layer ---it won't change it now.. what do you think is going on with the software and who might I contact to get this problem corrected.
i install my AutoCAD 2012 into my new computer, but after i install it get only 30 days remaining. then i try to put the activation code to activate and it keep getting that the activation code it not correct. i try to request a new activation code but no reply.
note: before i install my autocad 2012 into new computer i uninstall it in my previous computer.
I'd like to know how to align an object in model space with the edge of my viewport in paperspace.
When I draw, I like to lay out multiple complete drawings in model space, make an appropriately scaled bounding box around them, and then snap a view port to the bounding box in my layout. I usually have multiple drawings lined up in a row in modelspace, so when I want a new layout I do a Save As and then pan around in my viewport to find the next bounding box, at which point I have to resize the viewport to get it to snap to the edges nicely. I really want to be able to to it the otehr way around- while panning I'd like to be able to grab a corner of my modelspace bouding box and snap it to the the corresponding corner of my viewport window. That way making new layouts would be a snap. Is there a way to do this in AutoCAD 2012 LT?