AutoCAD VB :: Cannot Delete Ssget Filter Data

Oct 19, 2012

This works, but I do not want to have to select on the screen... [HTML] ss.SelectOnScreen[/HTML]

I tried to select a crossing of two coordinates, that didn't work... [HTML] ss.Select acSelectionSetCrossing, ip, ipCross[/HTML]

My next step was to filter for TEXT and LAYERNAME, but that didn't work either...

[HTML] Dim FilterType(0 To 1) As Variant
Dim FilterData(0 To 1) As Variant
FilterType(0) = 0: FilterData(0) = "TEXT"
FilterType(1) = 8: FilterData(1) = "FILEPATHTEXT"
ss.Select acSelectionSetAll, , , FilterType, FilterData[/HTML]

So I have this great little program to add text, and just want to delete it first if it already exists, and I just cannot do it. .

[HTML] ' Define Text String coordinates
Dim dwgscale As Integer
dwgscale = ThisDrawing.GetVariable("DIMSCALE")

[Code]....

View 1 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: SSGET With Additional Filter?

Jan 6, 2014

I've been twigging around with a selectionset, but no luck. I need to build a ss with several named blocks and a few dynamic blocks which get selected as anonymous. Unfortunately not all dynamic blocks should be selected and I can find no way of either filtering out a list of dynamic blocks to exclude nor any way to campare to a list of dynamic blocks that I want selected. Below is the best idea that I had but if I wrap it into a foreach with an exclusion list, I get an empty selection set returned. (I'm guessing that I need to trim the pairs each iteration and only return the matches instead.)

(SETQ blklst (LIST "Cleaner" "DRAIN" "Return" "Therapy""PoolLight" "Paraleveler" "Waterleveler" "Skimmer" "UMSLEEVE") blst "Cleaner, DRAIN, Return, Therapy,PoolLight,Paraleveler,Waterleveler,Skimmer,UMSLEEVE")(IF (AND (SETQ ss (SSGET "x" (LIST '(0 . "INSERT") (CONS 2 (STRCAT "`*U*" blst)) '(410 . "Model")))) (FOREACH i blklst (MAPCAR '(LAMBDA (x)(IF (NOT (EQ i (VLA-GET-EFFECTIVENAME (VLAX-ENAME->VLA-OBJECT (CADR x)))))(SSDEL (CADR x) ss) ) ) (SSNAMEX ss)) ) ) (WHILE (SETQ Ent (SSNAME ss 0)) (SETQ BlkName (CDR (ASSOC 2 (ENTGET Ent)))) (IF(SETQ tempList (ASSOC BlkName EndList)) (SETQ EndList (SUBST (CONS BlkName (1+ (CDR tempList))) tempList EndList))(SETQ EndList (CONS (CONS BlkName 1) EndList)) ) (SSDEL Ent ss) ))

 The other code is long and I'd rather not confuse things; if I do not try to filter out any Unames, then everything works great and fast. Once I add in the "foreach i blklst" the code breaks and I get:
 
; error: null interface pointer: #<VLA-OBJECT 0000000000000000>
 returned.

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Filter If SSGet Is Empty

Jan 23, 2013

I wonder if I have to check if the "ssget" is empty.

I have a lisp to zoom extents in visible objects on the screen.

My interest is to filter before applying:If I have selected objects, it zooms in these objects. If I'm not have selected objects, continue as it is today, applying a zoom in the visible scene.

The result would be similar to a zoom of "3dsmax" (press the Z key)

The atual code

(defun c:ZOBJECTS(/ selectprev)(SETQ selectprev (SSGET "_P"))(command "._UCS" "View")(command "._zoom" "extents")(command ".__zoom" "object" "cross" "-1e99,-1e99" "1e99,1e99" "")(command "._UCS" "previous")(command "._select" selectprev ""))

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Filter Selection Set By Substring With SSGET?

Apr 20, 2012

I have some strings like the ones below. They are always in the same format. The first line is Cold Water, the second is Hot Water and the third is Hot Water Return.

I want to build a selection set based on whether it is CW, HWS or HWR. Right now I have a routine to retrieve the string by using ENTSEL. In other words if I want to use the line of text for Cold Water I have to select it.

I'd like to be able to window them all and filter the SS for only the string containing CW and conversly HWS and HWR. SSGET function filter.

"2''CW-52.0 WSFU"
"2''HWS-48.0 WSFU+12 GPM"
"1"HWR-12 GPM "

View 8 Replies View Related

AutoCad :: How To Completely Delete Table Data Link

Jun 2, 2010

Using AutoCAD 2010 LT with service pack 1 and 2

I created a link to an Excel file to create a table. Before I ETransmit the AutoCAD file (along with many other files) I want to remove the link so that the table is embedded with no need for the external file. When I have somebody who doesn't have the linked file on their machine open the file they get a "missing external file" message" despite the fact that I ran the detach data link command and have purge selected in the ETransmit setup. The table shows up with the data, but I want to eliminate the nag pop up about the missing file. I know you can click the ignore button, but I don't want our customer to have to bother with it.

Any way to save a list of files for ETransmit like you do in a .dsd file for batch plotting?

View 9 Replies View Related

AutoCAD Civil 3D :: How To Delete Unwanted Reference File Data

Apr 5, 2012

i want to delete unwanted reference file (xref) information outside boundary of a current drawing.using civil 3D or autocad.

View 1 Replies View Related

AutoCAD Map 3D :: How To Delete Index File For Point Cloud Data

Jul 16, 2013

I'm hoping this could be a quick fix without completely reinstalling CAD.

I jammed too much LiDAR data into my Index file for point cloud data, and now I can not even open it.  Even new drawings are trying to open the overall index with everything in it.

What I want to do is just delete the whole thing and start fresh again, but not sure how to do that.  If I could open it once I could start deleting stuff from it, but it is too large to even open.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Extended Data On 2D Entity - Filter List

Apr 30, 2012

I use extended data on 2d entity in AutoCAD 2010. In a lisp program, I have filtered with extended data selection. Filters work with entity like: line, polyline and Mline but with insert entity it don’t work.

The end get result for a block :

((-1 . <Nom d'entité: 7ffffbe7d90>) (0 . "INSERT") (330 . <Nom d'entité: 7ffffb039f0>) (5 . "18CA91") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Fam_POTEAU_ROND_INSERT_021") (100 . "AcDbBlockReference") (2 . "POTEAU_ROND") (10 155239.0 -100209.0 0.0) (41 . 16.05) (42 . 16.05) (43 . 16.05) (50 . 0.0) (70 . 0) (71 . 0) (44 . 0.0) (45 . 0.0) (210 0.0 0.0 1.0) (-3 ("CREEMET000" (1000 . "Fam021") (1040 . -14.0) (1040 . 434.0) (1071 . 0)) ("CREEMET001" (1071 . 2) (1071 . 3) (1071 . 0)) ("CREEMET014" (1000 . "Poteau rond mixte (a completer)")) ("CREEMET002" (1000 . "_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_-1_-1_-1"))))

The filter list use :

((-4 . "<OR") (2 . "POTEAU_ROND*") (-4 . "OR>") (-3 ("CREEMET002" (1000 . "_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_-1_-1_-1"))))

View 3 Replies View Related

AutoCad :: SSGet All 3D Polylines And Break At Vertices?

Oct 14, 2012

I'm in search of a good lisp that will ss get all 3d polylines & break at the vertices.

View 4 Replies View Related

Lightroom :: How To Delete LR2 Catalog - Data And Journal Files

Jan 26, 2013

I'm using 3.6. Can I delete LR2 cat, data and journal files?

View 4 Replies View Related

Photoshop :: Oil Paint Filter Crash (potential Data Loss)

Jul 26, 2013

Trying to apply the oil paint filter to a 45" x 30", 300dpi, 16-bit image I an error dialog that says: "The filter you were using encountered an unknown graphics processor error that caused an unexpected exit. Check the manufacturer's website for the latest software."
 
The menus all become gray and the software freezes so I can't quit, but Force Quit does not show "not responding".

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Retrieve The SSGET Output

Jan 9, 2013

I try to use the SSGET function, and it returnes a string.

How to access the data?

Which function to use?

View 8 Replies View Related

Lightroom :: Delete Preference File In C User Data Roaming Adobe

Jun 11, 2013

Every time I want ro start LR5 I have to delete the preference file in C User data Roaming adobe lightroom other wise LR5 just hangs at strt up screen. This is a right royal pain as it means I have to re do my preferences in the program every time I use it ?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: SSGET Filters - Isolate Portion Of DXF 10

Jun 28, 2012

Is there any way to isolate an item in a list for a filter?  I'm setting a filter for SSGET and know that I can use the dotted pairs and I know I can use logical comparisions but what I really want to do is filter a single varialbe in the DXF group 10.  For example, I'd like to only get entities with a specific Z value in DXF 10.  Or even better to filter for a specified range of Y value or X value in DXF 10.  If I could write something like (cons 10 (list * * 8.0)) where the asterisks were wild cards, that would do it but I'm not aware of such a wildcard.  Is there any way to isolate a portion of DXF 10 in the filter?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: SSGET For Selecting Multiple Objects

Nov 27, 2012

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

(defun CELFEATURE ()
(ssget "_X" '((0 . "AECC_FEATURE_LINE")))
(setq sset (ssget "P"))
(if sset
(progn
(sssetfirst sset sset)
;(command "_.PROPERTIES")
)
)
)
(defun cF () (CELFEATURE))

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.

(defun CELFEATURE ()
(ssget "_X" '((0 . "AECC_FEATURE_LINE","AECC_AUTO_CORRIDOR_FEATURE_LINE")))
(setq sset (ssget "P"))
(if sset
(progn
(sssetfirst sset sset)
;(command "_.PROPERTIES")
)
)
)

(defun cF () (CELFEATURE))

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Distinctions Between Ssget And C# PromptSelectionOption Method

Feb 5, 2012

Distinctions between AutoLISP functions ssget and C# PromptSelectionOption method.AutoLISP ssget function is apply a function with no options and does not require an object selection.pre-selected target object should respond to the selection set.

However, and C# PromptSelectionOption, ignoring the pre-selected objects, select the new object is required.using the features of C# Prompt Selection Option expressed AutoLISP ssget do the same in,

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Using SSGET To Select A Block To Move It

Feb 3, 2012

I'm having an issue with using the SSGET to select a block so I can move it. I'm changing the UCS to be at the center of the top view in the program(user selects center) and the block is at 0,0,0 after changing the UCS. However when I use SSGET it doesn't select it. So I used:

(setq en(car (entsel "
Select a block :")))(setq enlist(entget en))
 
and it lists the DXF Code of 10 as

(10 15.0893 13.5165 0.0)
 
How can I then select it if I don't necessarily know where the block is going to be?

If needed: AutoCAD 2013 User using Visual LISP for editing LISP and DCL files Also I have AutoCAD 2011 currently still available for us, but we are using AutoCAD 2013 for 99.9% of AutoCAD use

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert Polyline - Bad SSGET List

Feb 5, 2013

I have a data structure called LayerList in the format [LIST "LayerName" "Linetype" Thickness Color]I then use the following piece of code to go through the structure selecting polylines and converting all polylines on a given layer to the correct thickness

   (foreach layr layerlist
       (setq player (car layr))
              (if (setq ss (ssget "x" '((0 . "*polyLINE") (8 . player ) )))
                      (command "pedit" "m" ss "" "w" 0.15 "")
                      (princ "
No polylines exist!")
      )
   ) 

However all i keep getting is Bad SSGET list value at the command line,

View 3 Replies View Related

AutoCAD .NET :: Apply Location Query On Query To Filter Data

Oct 23, 2012

I am trying to Apply Location query on Query to Filter Data in .NET. Any sample code or procedure to program.

View 6 Replies View Related

AutoCAD LT :: Data Link Manager Can't Delete Excel Link

Dec 26, 2011

I'm messing around with tables and data links, practicing. I copied a range of cells in Excel, and did paste special to create a linked table.

Now I can delete the table object, but I cannot delete the link, cannot detach it.

When in Data Manager if I right click on the data link and click delete I get the error message "The data link is being used and cannot be deleted".

I have tried detaching, and the detach does not seem to take.

Now also, the table will not update from the source xls.

Win XP, AcadLT 2011, Office 2010. Using compatible setting for saving spreadsheet, for Office 2007 (not xlsx).

If I create a linked table by starting with the Table icon, choose "from a data link", choose the excel spreadsheet, etc., then I am able to later update the table from the spreadsheet, detach, delete the link, etc. But I can only delete the link if the table is not selected when I open the Data Link Manager.

But the one that was created following the directions from the Autocad video, with the copy, paste special, that link will not detach nor delete.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: SSGet Specific Dynamic Block / Since They Are Anonymous

Sep 19, 2011

If you do a LIST command on a dynamic block... AutoCAD tells you the Block Name as well as the Anonymous Block name.

How can I use ssget to snag all Dynamic Blocks that use the 'Real Block'?

View 3 Replies View Related

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.

Here's the

(setq grupo1 (ssget "" '((0 . "TEXT,MTEXT")(8 . "COTREF")(-4 . "<AND")(1 . "*%%c*")(1 . "*L*")(-4 . "AND>"))))

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.

View 3 Replies View Related

AutoCAD Civil 3D :: Combining Feature Data (Adding Data To Shape File)

Apr 24, 2012

I have a master shape file that contains parcel ID, owner, tax info., etc. I have another file ( access 2003 -open to better file format suggestions-) which contains parcel ID and a "yes" or " no" entry for whether or not the parcel needs a new water meter. All I want to do is add the water meter information into the other shape file. This would create one shape file with one table with all the information that I need.

Ultimately I will use the information to do a map query and find out spatially where i need new water meters.

Right now i have the master shape file connected though the “Connect to Data” feature. I also have the new data added to the drawing though the Data sources------>attach under the “Map Explorer” Task pane. I attached access file (ver. 2003 .mdb) which has two columns “Parcel ID” and “Meter”.

I right click on the shape file under the display manager and select”Create a Join;” however my water meter table is not listed as an option. Will this not work?

Plan B - I tried to Create and connect to the access file as an ODBC connection. Followed this guy’s directions to a T [URL]. But when i populate my table under the fdo connection the column headings exist ( “parcel ID” and “Meter”) but the actual data is missing. Am I missing something important?

Note: I am running c3d 2012 on a  Win 7 64 Bit machine. I also removed office 32 bit apps and installed 64 bit apps to see if that would solve the problem. No go. 

View 3 Replies View Related

AutoCAD Civil 3D :: Use FDO Data To Populate Custom Data Field Expression

Apr 10, 2013

say you make some parcels in your project with custom data fields like: id_no, permit_no, acres_served etc. you attach an agency provided shape file via an fdo connection that has many fields of information like above.

when you right click on your parcel and do parcel properties you get a tab that lets you input the custom parcel data.

lets say you print an fdo map label showing, say, the id_no, provided in the shape file.  Then in your custom parcel properties for id_no you type that in.

is there a way to make an expression to put in the other custom parcel properties that will read, say, the permit_no(id_no) from the fdo like and put that information in the custom parcel property field?

View 4 Replies View Related

AutoCAD Civil 3D :: Data Shortcuts Transferring Super Elevation Data

Jun 7, 2012

I'm having problems getting super elevation data to transfer to different drawings by means of an alignment data shortcut.  I know alignments hold the super elevation data so I've gone into my alignments data shortcut, input my super elevation data, saved and closed.  Now when I open my finished grade drawing, reference in my alignment and profiles, then create a corridor from that information, my super elevation didn't transfer with the reference.

I pulled cross sections and it appears is has no clue there is any super elevation data.  Also, I tried bringing it directly into the drawing I'm doing my corridors in and it erred saying I must be in the parent alignment drawing.  Data shortcuts are pretty much useless to me if super elevation data doesn't transfer. 

64 bit Windows 7
Intel Xeon (R) @2.8GHz
6.00GB Ram
Civil 3D 2012
Civil 3D 2012
Intel(R) Xeon W3530 @ 2.80GHz
6.00GB Ram
Windows 7 Professional

View 2 Replies View Related

AutoCad :: Performing Data Extraction And Linking To External Data With Formulas

Apr 19, 2012

I am trying to link my extracted data from blocks with attributes to an extenal source so that the table I create and place into the drawing already has the formulas I need to due the required calculations. But every time I create and place the table the formulas are not in the table. I include the columes that contain the data but it doesn't seem to be working.

View 2 Replies View Related

AutoCAD Civil 3D :: Missing Data From Profile View Vertical Geometry Data Bands?

Sep 9, 2011

i have created a data band in profile view that should show a created profiles elevation, but some of the the data fields are missing irregulary. Also in the data band that shoud show the diferenece betven the tow profiles - EG and the new profile the data is missing. The EG profiles data and the surface are ok all is shown.

View 4 Replies View Related

AutoCAD Civil 3D :: Data Panel Is Missing / Data Connect Route Doesn't Work

May 3, 2013

I've just installed Civil3D, 64-bit on windows 7(running on bootcamp) and am trying to insert a georeferenced raster image but have encountered some issues. 

1. "Home tab>>Data panel>>>insert An Image" - The data panel is missing and it's also not found in "customize palettes" 

2. Trying the data connect route does not work either: Display manager>>>Data>>>Connect To Data - There is no 'Data' option and I cannot connect to Data.

View 1 Replies View Related

AutoCAD 2013 :: Embed Data In Table So That User Can Select From Group Of Data Within One Cell?

Oct 24, 2013

Is it possible to embedd data in a table so that a user can select from a group of data within one cell?

I use this technique quite often in Excel.  One cell in a table can have various values: A, B, C, or D.  While another cell can have a different set of values to choose from:  BLUE, RED, ORANGE, or PURPLE.  The user can pull down an arrow (similar to a dynamic block) and choose from a set list of values.

View 2 Replies View Related

AutoCAD Inventor :: Unwanted Data In Design Data Folder

Oct 12, 2011

I know that the xmls are very important in the design data folder and we shouldn't mess with them.What about the rest of the folders. I have around 11 folders. GOST, AEC Exchange, AIT, Cable & Harness, Bend Tables, DWG-DXF etc...

I need to know if any of these folders can be deleted? We don't use AEC Exchange, Cable Harness, BIm Exchange, Design Accelerator, Tube & Pipe.

What about the Optimisation, DXF-DWG.  I am not sure if I am using them unknowingly.Does this could be deleted? Is there a procedure to get rid of them.

View 1 Replies View Related

AutoCAD Map 3D :: Import Point Data With Object Data?

Jan 20, 2011

how to import point data that has Map Object Data also attached to it? "import it by attaching to a data source".

Example: I have a bunch of manholes. Each MH has X,Y,Z, but also Type, Invert Elevs., Pipe Sizes, Pipe Materials, Pipe Directions, Structure Type/Material, etc. etc. etc. I may have point data representing MH's, airport runway ends, trees, anything you can imagine, with all kinds of data imaginable. 

I want to import this data directly into Autocad/Civil 3D as either Autocad points, lines, or closed polylines (I also have utility lines, parking lots, etc.- all with data associated with it), all with the data attached as object data. I know that anything more complex than points might be hard to explain here, so I am hoping at least for a solution on how to import points - I have 99,999 MH's and obviously I don't want to have to type all that data in one by one.

I basically suck at using sql server. I can get around using the Map workspace and the different tabs. I have never used FDO, and I am not even sure what it is.

I fooled it today by creating 99,999 Autocad points at the correct XYZ, attaching the correct object data to them, then exporting as a shp file. I went into the shp_name.dbf file and edited it to add the data I wanted by cutting & pasting from Excel. then I re-imported the shp file. but, this is a workaround at best.

Surely Map can import objects and their associated data fields, all populated with valid data! all I need is to know how to do it. I mean, if this is not something I can do directly using Map commands should I take the money I earned by surveying 99,999 MH's with my GIS data collector that allows me to assign 101data fields to each object I survey, and buy something better?

C3D 2012 on 64bit Win 7 all up to date
Dell Precision 7core 8GB RAM
NVIDIA Quadro FX 1800M
LDT/C3D user since release 12

View 9 Replies View Related







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