
To import the points, it is considered necessary that the point file to be imported has XLS extension (from versions prior to office 2007) or XLSX (version 2007 or later) And in the file the coordinates are formatted with the format: P, N, E, C, D, ( Ptogether, NOrte, Este Cota DDescription), as shown in the following image: ROUTINE EXPORTING COORDINATE POINTS FROM LINES TO A CSV FILE Indicates the location and name of the CSV file in which the exported coordinates will be generated.ġ2.Select the objects from which the coordinates will be exported (note that you will select points, texts and blocks (if you find them).To use the routine you must do the following: The exported coordinates have the format P, N, E, C (Point, North = Y, East = X, Cota = Z) And as it is exported to a CSV file (separated by commas), when opening the file each value will occupy its separate cell.
AUTOCAD LISP GREATER OR EQUAL THEN CODE
It is advisable to select objects That have a single insertion point, such as Blocks or points of AutoCAD, That way it is safer that the exported coordinates are the ones that correspond.Īs we mentioned earlier, this routine exports coordinates from points, texts (or also Mtext) and blocks, but You can supplement the source code to take into account other entities Such as: circles, initial points of lines, among other objects that in its database have the code 10. You must have special Care in case the objects are texts, Since the point of insertion that is taken into account at the time of exporting the coordinates, Depends on the justification that these texts have, If you are sure that the justification of the texts is correct there is no problem in exporting the points. According to the Generation Mode selected, a point is indicated or two points are indicated to generate a windowġ1.Color: It is the color that will have inserted texts, by default the initial color is the current color defined.Justification: Of the inserted text, so there are two options: Fit (Fit in cell) and Middle (Half of the cell).Text height: It is the height that the inserted text will have, the default height has a value of «0.25».Default text: The command can be instructed to insert a default value ("0.00") in each generated cell, this value can be customized and can be changed by any other.This command also allows you to generate the table using two options, The first option allows defining the table Through a fixed height and width of the cells And the other option adjust these values so that the specified number of rows and columns Enter the designation of a window.Īdditional options include the following: This routine Generates a table with the number of rows and columns specified, is similar to the AutoCAD table command, but lighter to use, although it does not link data with Excel you have the option to fill the table with a predefined value which by default is «0.00» and is placed in each cell to be edited later. The command will end automatically after the cut and fill attributes have been selected.Ī sample CAD file is included with the lisp for a better understanding of the command.ħ.Select one by one the attributes of the block to modify, starting with the attribute of progressive.Select by means of a window all the punctures of cut and fill of the section, including the text of the progressive one of the same one.To use this routine you must do the following: The selection of the objects is done by means of a window that includes all the punctures including the text of the progressive of the section. To do this, you must first select the attribute of the progressive block, this is an invisible attribute, but the list just before the selection shows it and then hide it again, this is done with the command « Attdisp«, Then the attributes of the cut and fill areas will be selected and these will be updated according to the values of the areas found. The lisp adds all the areas of the shadows that are in the layer « ShadingCut✺nd all the shading areas of the layer« ShadowFill✺nd once the selection of the slabs is finished, the attributes of the block of areas are updated. The selected shaders should be in a layer that describes the type of area to be obtained, by default the lisp will read two layer names, which are the following: « ShadingCut" Y " ShadowFill«.
