I suggest to collect free programs for Object Data.
And to discuss them.
For example, Autodesk, Copy object data from one object to a set of other objects - COPY_OD.LSP.
Contained in C:\Program Files\Autodesk\AutoCAD...\Sample
Autodesk (?), XD to OD conversions - XD2OD.lsp.
For example, braudpat published lisp to select objects by OD values - Sel_by_OD.lsp.
https://forums.autodesk.com/t5/autocad-map-3d-forum/object-data-how-to-use-the-find-command/m-
p/5445541#M43818
For example, CADaSchtroumpf published lisp for conversion from OD to XD - OD2XD.lsp.
https://forums.autodesk.com/t5/autocad-map-3d-forum/map-3d-od-to-autocad-dwg/m-p/9329382#M56358
In the text of this lisp you must specify the author and his data for the link.
once and for all I had this idea 🙂 In the sense of sharing useful information on the OD topic in such a way, that in the future there will be no duplication of newly created OD commands for a specific purpose 🙂 I attached a Lisp created by someone to show the OD content:
The author read_OD.lsp - CADaSchtroumpf? (The style is similar to the read_XD.lsp he recently published).
It is necessary to write the programs authors in the text of lisps and contacts with them.
It is published braudpat - https://forums.autodesk.com/t5/autocad-map-3d-forum/annotating-objects-label-along-polyline/m-p/5093...
;; MAP (or CIVIL) Routine : OD2Label_Side by Bruno V. ;; Can be used with : POLYLINE,LINE,ARC,CIRCLE,ELLIPSE,SPLINE ;; ;; Write & Place Dynamically a "Static" Text from an Object Data MAP Field ;; ;; Texts are written on a specific layer : LABEL ;; Texts depend from a specifig Text Style : Label-Text (using ISOCP.shx)
From Rakesh Rao, 4d-technologies, a library of 24 free Lisp functions:
AutoCAD Map library functions provides wrappers around AutoCAD Map Lisp API (AutoCAD Map Only)
http://www.4d-technologies.com/techcenter/index.htm
And the GeoTools and CADPower plug-ins from 4d-technologies -
https://rakeshrao.typepad.com/work_smarter_geotools/2019/09/geotools-cadpower-v-2004-a-significant-u...
Quite voluminous! And quite old.
In General, it seems that our ODCLASS-ODEDIT was largely following in the footsteps of 4d-technologies. 🙂
From Terry Dotson, DotSoft, in the paid Civil 3D Tools plugin, a group of actions with Object Data - http://www.dotsoft.com/c3dtools.htm#
Hello,
I send you here what I could write as a lisp for map.
I am a French person of sixty years who will soon leave the professional world and as I will not take with me all these codes, I leave the sources so that the next generation can appropriate them, modify them, correct them...
If you want to attach intellectual property to it, do it, but for me it doesn't matter too much; they are far from perfect and may soon be obsolete.
Enjoy
Yes, at first I was thinking about free programs for OD.
But then I decided that paid programs are no worse. 😀
For a complete description of the subject, all programs for OD must be considered.
Hi,
I can 't understand what transfert_OD.lsp and Properties2OD.lsp are doing yet?
@АлексЮстасу a écrit :Hi,
I can 't understand what transfert_OD.lsp and Properties2OD.lsp are doing yet?
Hi,
PROPERTIES2OD allows you to create a new table and populate it with selected properties.
If you select entities of different types, you will need to specify the characteristics you want for each type of entity.
A concrete example:
You have a number of polyline to which you would like to retrieve the length and name of the layer in a specific field.
You then make a manual or filtered selection. This selection made, you launch the PROPERTIES2OD command.
In the dialog box, you check LENGTH and LAYER and validate.
Your objects will then have a generated table 'TBL_AcDbPolyline' with LAYER and LENGTH fields filled in.
But you already had tables attached to these objects with either the LAYER and LENGTH fields or you modify this tables to add fields to accommodate this data because keeping the table generated automatically does not interest you. This is where the use of transfert_OD can be useful for transferring data to your table: source to target. This done you can delete the table 'TBL_AcDbPolyline'.
Note: If the selections are important, the treatment may take some time. It also requires relevant selections for everything to be done well, but there can certainly be bugs, I do not pretend to have done something flawless.
Yes, I have questions about how these lisps work, but in general they are useful. 🙂
I 've wanted to create a command like yours for a long time Properties2OD.lsp.
Hello
Read_OD & Sel_By_OD & OD2Label_Side & many others
are routines from @CADaSchtroumpf (Bruno) !
Bruno is a Lisp / VLisp French Master for ACAD and especially for ACAD MAP !!
THANKS to Bruno and his Generosity !!!
Bye, Pat (The Old French EE Froggy)
Patrice BRAUD
CADaSchtroumpf created what many were looking for and long awaited - export/import OD/csv.
These are two Lisp:
1. All_OD2CSV.lsp - export OD to csv,
2. CSV2OD.lsp - imports data from csv into the OD.
Quite powerful and quite comfortable.
Especially interesting is the approach to import - in csv you can remove-add fields with data, rename fields, change their places. During import, ODs with these fields and data corresponding to csv will be created.
You can control the loading of tables by deleting csv files from the folder specified for import.
The csv import location is specified by selecting any csv file.
Note that in csv always adds the "Number of records" field.
I publish with the author 's direct permission, CADaSchtroumpf.
Hello Alexander
Again THANKS to @CADaSchtroumpf (Bruno) for his generosity !
These 2 versions are the latest versions with your requests / remarks !?
Regards, Pat (The Old French EE Froggy)
The Froggy is At Home into his Bunker !!
Patrice BRAUD
Hi, Patrice,
I had a little more wishes, but these are the latest versions that Bruno CADaSchtroumpf sent me.
Hello,
During this period of confinement, I took care of developing a tool.
Cut 2D polyline (s) (LWPOLYLINE) at points or block insert, this from the WCS a USC and for polylines created in the WCS or in a UCS.
This without using the "_break" command, which implies that the entities can be outside the display screen, this does not prevent the operation.
The cut polylines keep the arcs and their respective widths.
In addition, if you have Autocad Map, the cutting polylines will keep the object data (OD) of the original polyline.
You will be asked to select the polyline then either the points or block inserts, these must of course be located on a polyline to be taken into account for the cut.
You will also be asked for the tolerance for equality. Indeed for this to work well in very large coordinates, the tolerance proposed will be 1E-01, but if you are in a classic coordinate system of a non-cartographic drawing, the tolerance can be 1E-08.
This routine also works if you don't have Map, in this case the OD part is not processed.
For my part on a cartographic DWG in Lambert93 during my tests, I treated on the whole drawing 550 polylines with a selection of 4940 points. The procedure lasted 25mn (and yes may be ..., but my personal PC is very average, confinement requires) and I obtained 5036 polylines with their object data this with a tolerance of 10cm for a good result.
Bugs are still possible, especially if the tolerance is poorly chosen. We then have this type of message during the process (in French):
Un sommet a été ajouté à une polyligne 2D (0) qui n'avait qu'un seul sommet.
(A vertex was added to a 2D polyline (0) that had only one vertex.)
PS: This code is free, you can modify it, improve it.
At asking by braudpat,I added to keep XData, if it is present as well as an oversight on my part on the line type scale (dxf 48) for the restored
Hi, Bruno,
It 's nice to see you here again! 🙂
I 'm sure this program will be useful.
But for the general case I would advise using wipeout in blocks or under texts.
Then polylines would remain whole, and that could be useful, too. 🙂
Can't find what you're looking for? Ask the community or share your knowledge.