Applications for Object Data

Applications for Object Data

АлексЮстасу
Advisor Advisor
17,618 Views
92 Replies
Message 1 of 93

Applications for Object Data

АлексЮстасу
Advisor
Advisor

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.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

17,619 Views
92 Replies
Replies (92)
Message 81 of 93

АлексЮстасу
Advisor
Advisor

I almost immediately published the previous new commands (from CADaSchtroumpf) on my website in Additionally.

Now there are three more commands for OD:

 

From Michiel.Valcke, OD_COPY_MHV, OD_DELETE_MHV - https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-map-civil-3d-object-data...

From CADaSchtroumpf, ALL_copy_OD - https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/help-needed-map-civil-3d-object-data...

 

In OD_DELETE_MHV there was a mistake therefore it is better for OD_COPY_MHV.lsp to take from the enclosed file. Or on the website.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 82 of 93

braudpat
Mentor
Mentor

 

SORRY Bad message from Patrice

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 83 of 93

АлексЮстасу
Advisor
Advisor

Thank you!
In principle:
- One general command with options would be better.
- It would be better not to link OD selection with graphical properties - these are heterogeneous, i.e. potentially independent information...
But I haven't looked closely yet...

 

***

 

There are two more new programs from CADaSchtroumpf on the forum recently:

Point&OD@Vertex.lsp - creating points on polyline vertices with OD "PT_AT_VERTEX",

OD2Label_Pt.lsp - creating MTexts from the values of this OD. For example, vertex numbers.

!

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 84 of 93

CADaSchtroumpf has updated/improved its Point&OD@Vertex.lsp and OD2Label_Pt.lsp - for vertices and points.
I also updated their description and downloading on the website.

 

And

 

CADaSchtroumpf also created Ptorblk&OD@Vertex.lsp - similar to Point&OD@Vertex.lsp, but on vertices can create not only points, but also Map 3D blocks - Map_Survey_Point. Immediately with the corresponding values of their attributes.

 

Bravo, CADaSchtroumpf!

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 85 of 93

The code of a routine to convert OdTables to PropertySets appeared. To transfer users descriptive non-graphic data from OD to Civil, Architecture, MEP.
This seems to be a .Net.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 86 of 93

Two very simple but useful routines from mmitchellH6TRW, https://forums.autodesk.com/t5/autocad-map-3d-developer/select-all-object-that-have-object-data/m-p/...:


1. SDO - find all objects with Object Data,
2. SDOC - find all objects without Object Data. (I gave the name)

 

Those who know about our ODEDIT know about similar two commands:
1. ODEDIT_HAS_OD,
2. ODEDIT_HAS_NO_OD.
SDO and SDOC differ in that they do not use user selection of objects, and do not ignore objects on locked, frozen, and disabled layers.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 87 of 93

braudpat
Mentor
Mentor

Hello @АлексЮстасу 

 

Exactly the same routine into ONE routine from CADaSchtroump - Thanks Bruno !

 

The routine "ODYesNo" which selects entities from your selection (not ALL the DWG) WITH or WITHOUT ODs

 

The Health, Bye, Patrice (The Old French EE Froggy)

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 88 of 93

braudpat
Mentor
Mentor

Hello

 

A new version of the beautiful Routine  "Sel_By_OD"  from CADaSchtroumpf / Bruno / Bonuscad

 

I have removed the OLD versions ...

 

The NEW v2.02 has the bug on String OD field with the Test "DIFFERENT" corrected !

 

Many THANKS to @CADaSchtroumpf 

 

The Health, Bye, Patrice (The Old French EE Froggy)

 

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 89 of 93

braudpat
Mentor
Mentor

Hello @АлексЮстасу 

 

An other beautiful routine "OD&PROP2CSV" from CADaSchtroumpf / Bruno / Bonuscad !

 

Which exports to .CSV Properties and OD values ...

 

Bye, Pat

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 90 of 93

braudpat
Mentor
Mentor

Hello @АлексЮстасу 

 

A routine "OD_Incr_Numeric_" for ODs which increments a numeric OD Field ...

 

NO Error management so you must select ONLY :

-- Objects on unlocked layers

-- Objects with the RIGHT OD Table AND the RIGHT OD numeric Field

 

Bye, Pat

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 91 of 93

BriamR
Advocate
Advocate

Hi @АлексЮстасу 

I share this AutoLISP script that allows you to change the type of a specific field in an Object Data (OD) table, transforming it between “integer” and “character”. It automatically creates a new table with the modified field, migrates the data from the original table, deletes the old table and renames the new table to the original name. It is an effective lisp to maintain data integrity when updating field types without losing information. for use OD_TypeField

 

Credits and help for its creation to @O_Eckmann 

 

Message 92 of 93

braudpat
Mentor
Mentor

Hello

 

An other useful routine "OD__ANGLEDEGRE" for Blocks before running MAPEXPORT ...

 

The Rotation is always in RADIANS so it is not comfortable with other GIS Software

 

So this routine will fill a Numeric OD Field with the ROTATION in DEGRES !

 

(princ "\n------ ATTENTION : ZERO Error Management - Objects ON Unlocked Layers ")
(princ "\n------ Select Objects WITH The RIGHT Table OD AND Field OD ")
(princ "\n------ Please RUN into the Model Space and into the WCS \n")

 

Bye, Pat

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 93 of 93

franc_as
Enthusiast
Enthusiast

By the way....I need more a lisp routine, to purge all unused OD tables from the list..... You know, after objects deletion, their OD tables remains on the list...

any Ideas?

0 Likes