Applications for Object Data

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

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

Reply
12,343 Views
87 Replies
Replies (87)

Barzdil
Advocate
Advocate

hello, please explicate Your thoughts on the role of wipeout in "line breaking" 🙂  thanks.

0 Likes

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

@Barzdil wrote:

hello, please explicate Your thoughts on the role of wipeout in "line breaking" 🙂  thanks.


I think I was wrong!


I 've decided that CUT_POLY@INS breaks the polylines under the entire block area.

That 's why I thought of wipeout.


CUT_POLY@INS breaks polylines at block insertion points, and so can really be a much needed tool.

 


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

Object-modeling _ odclass-odedit.com _ Help

Barzdil
Advocate
Advocate

even if the polylines are deleted in the whole block area, I would say it is not a problem, because again with the help of the same Mapclean command and its Cleanup Action "Apparent Intersection" it is possible to "restore" the polylines sections destroyed in the block area with just one click 🙂 So the CADaSchtroumpf command is great. Only because of its slowness to decompose a large number of polylines, it is more justified to decompose a small number of polylines, and if we are talking about the numbers of polylines and blocks mentioned by CADaSchtroumpf (".. 550 polylines with a selection of 4940 points .."), then in some cases it pays more to do the following: to make a temporary copy of all polylines --> explode that copy into lines --> apply a topology to those exploded lines (which You Alexander mentioned a few months ago) by creating blocks at the ends of the lines (these blocks in realy would be lines that do not pass within the specific distance to the block insertion point) -->explode these blocks created after topology --> and finally using the "mapclean" command with Cleanup Action "Extend Undershoots" and its corresponding cleanup parameter "Break Target" to extend these exploded blocks to the polylines You need to break  🙂

0 Likes

I collected all the programs for Object Data on website odclass-odedit.com - on the "Additionally" page.

 

Almost all programs are free LISP programs created by one person - CADaSchtroumpf, Bruno Valsecchi! 🙂

 

If there are errors of description, no programs are given, there are questions - inform.
Especially I doubt my googlenglish.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes

O_Eckmann
Mentor
Mentor

Hi Alexander,

 

I've written a plug-in to manage OD in Map 3D.

It's a bundle with some commands

image.png

 

1. ShowOD is to show object data in grid. You can select one or more lines in grid to select object in drawing, OR yoy can select objet in drawing to highlight corresponding lines in grid. You can filter objects with ou without OD.  

image.png

And you can export in CSV file properties from selected (CAD info and OD).

 

2. MQSelect you can query objects int the drawing from there OD info to select object(s) with these data.

image.png

You select Tables / field / operator and values (request all available values).

You can add 2 conditions with AND or OR and when execute query, all objects requesting conditions are selected in the drawing.

 

3. Bati 3D : is a specific commands to transform closed poly2D to 3D solid from 2 datas in OD => elevation (base of solid) and height (height of building)

 

4. CN 3D : is a command to set elevation of poly2D from OD value.

Used for contour line imported from SHP without to use drawing source and request from Map 3D

 

5 & 6. MAPODOUT/MAPODIN : works same as ATTOUT and ATTIN.

From selected entitites you can export in txt file (Tab separator) all field values you select, then modify values in TXT file or after loading in excel, and synchronise back your OD.

 

Olivier

Olivier Eckmann

EESignature

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

Hi, Oliver,

 

How do I install your plugin correctly?

 


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

Object-modeling _ odclass-odedit.com _ Help

O_Eckmann
Mentor
Mentor

Hi,

 

You unzip joined file and copy directory  to "C:\ProgramData\Autodesk\ApplicationPlugins" like other plugins already installed by default.

 

Olivier

Olivier Eckmann

EESignature

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

The menu is loaded, but the "Unknown command".

 


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

Object-modeling _ odclass-odedit.com _ Help

O_Eckmann
Mentor
Mentor

Hi,

 

My plugin should work from 2012 to 2020 (xxx18.DLL  can be loaded from 2010).

Version 2021 not yet supported.

I've only french version of Map 3D and Civil 3D. Which version are you using?

 

Olivier 

Olivier Eckmann

EESignature

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

If I am trying to load NETLOAD directly, the message is:

\QueryShowOD.bundle\Contents\Windows\QueryShowOD21.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
   at loadmgd()

I tried in 2012, 2018, 2019.

 


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

Object-modeling _ odclass-odedit.com _ Help

fieldguy
Advisor
Advisor

that is a "code access security" policy from microsoft. search google for "caspol". if possible don't load and run acad executables (*.dll) from a network location. if you have to, iirc you have to edit acad,exe.config to allow network access to executables.

>> check this << and >> this <<.

 

 

 

O_Eckmann
Mentor
Mentor

Hi,

 

Because ZIP has been download from internet, you have to unblock DLL

Right-click on DLL / properties. In general tab under attributes you check unblock 

image.png

explanation here : https://www.tenforums.com/tutorials/5357-unblock-file-windows-10-a.html 

 

Olivier

Olivier Eckmann

EESignature

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

Thank you! Yeah, Unblock helped me.

 

You have made a powerful plugin!
All actions are useful.
In MapShowOD it is very convenient to export not only OD, but also CAD properties.
It would be good if MapBati3D allowed OD to be copied to the 3DSolids.
In MapOdOut, it is convenient to unload the selected fields.
Etc.


I inserted a plugin into the website in "Additionally" in the "Plugins..." section.

If need to fix something, add something, tell me.

It seems to me that on the website on a special page it is more convenient to find and choose the necessary programs. So it is possible to see everything at once, and there it is possible to give their general descriptions.

 


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

Object-modeling _ odclass-odedit.com _ Help


@АлексЮстасу wrote:

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.

Note that in csv always adds the "Number of records" field.


CADaSchtroumpf has updated these programs.

No additional "Number of records" field is now created in CSV.

 

On the website in Additionally, I also updated them.
If you have my website blocked, let me know!

 


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

Object-modeling _ odclass-odedit.com _ Help

A new program "Operate_OD" from CADaSchtroumpf has appeared for arithmetic calculations in the OD fields.

 

Already posted in my collection on the website in Additionally.
If you have my website blocked, let me know!

 

Thank you for the message and CADaSchtroumpf for creating this program!

 


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

Object-modeling _ odclass-odedit.com _ Help

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

Hi, Olivier,

 

Sort numeric values only like this?

table_sort_ms.png
1,2,3,10,11, 100, etc. ascending-descending is possible?

 


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

Object-modeling _ odclass-odedit.com _ Help

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

An interesting topic about the ability to create COGOPoints instead of blocks with OD transfer to COGOPoints.

 

Udo Hübner proposed a solution - two lisp:
1. UHODCOPY.VLX - copies an OD to an object from a specified object.
2. UHBLock2CivilpointwithODCopy.LSP - creates COGOPoints at block insertion points.


UHBLock2Civilpoint works for all specified points if UHODCOPY is preloaded.
UHODCOPY works independently, but independently for individual object pairs.

 


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

Object-modeling _ odclass-odedit.com _ Help

braudpat
Mentor
Mentor

Hello

 

An other interesting routine from Bruno - Thanks to @CADaSchtroumpf !

 

This new version 1.2 of  "Text2OD_MPOL" routine will detect TEXT (Not MTEXT) inside MPolygon (Not 2D Closed Plines) and then copy the TEXT value to an OD Field ...

 

So you select MANY MPolygons with many TEXT inside ...

Please ONE TEXT per ONE MPolygon !

ATTENTION : if many TEXT inside then NO COPY !

 

Plaese look at the LSP and DWG Test joined ...

 

THE HEALTH, Regards, Patrice (The Retired 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


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

Hi, Patrice,

 

Thanks for the good news!


But first criticism. 🙂
If there are holes in mpoligons, the values in the Object Data field are not loaded.
However, polylines are created on the external outlines of the mpoligons.
If the mpoligon has two holes, a polyline is created on its outer contour and a polyline is created on the contour of the first hole.
If there are three holes, polylines are created on the contours of the first two holes.
And so on.
These polylines are created immediately when you call TEXT2OD_MP, and are saved even after Cancel in the first window.

 


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

Object-modeling _ odclass-odedit.com _ Help

CADaSchtroumpf
Advisor
Advisor

Hello,

I offer you a routine to rename a field in an object table.
Currently we can rename a table but not a field.
This will allow you to do so without losing the attached data (whether the records are single or multiple)

Note that the layers will all be unlocked after this action.
Only the field is renamed, the description / comment and the type of data remain unchanged.
As the (wcmatch) function in the routine was designed for a French version, it may need to be adapted to your language.
If the file is large, processing may take a little while.

 

Note: of course, remember to update your queries if they have already been defined