additions for Object Data

additions for Object Data

АлексЮстасу
Advisor Advisor
18,026 Views
118 Replies
Message 1 of 119

additions for Object Data

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

As a task manager, I created for myself such additions for Object Data:
 - OD management
    - Copy definitions from file
    - usage stats
    - Rename columns
    - Reorder fields
    - Update definitions
    - Batch update definitions
    - Remove unused
 - Search OD
    - Find entities with no OD
    - Find entities with OD
    - Find entities with duplicate OD
    - Find entities with multiple OD
    - Find entities with no specific OD
    - Find entities with specific OD
    - Find entities with specific OD values
 - Attach/Detach OD
    - Attach/detach
    - Detach all
    - Detach specified
    - Detach duplicate
 - Copy OD
    - Copy OD from reference
    - Copy values from reference
    - Copy properties/OD from reference
    - Copy properties/OD values from reference
 - Set/edit OD values
    - Set values from XYZ
    - Set values from geometric properties
    - Set values from text
    - Create IDs
    - Replace values
    - Values from field in field
 - Modify entities
    - Convert to 2D polylines
    - Convert to 3D polylines
    - Break
 - Import /export
    - Export to mif/mid
    - Batch  export to mif/mid
    - Export to csv
    - Import from csv
 - - OD table

A small example recently posted on the forum: statistics about OD, viewing OD in the table, finding elements without the specified OD, attaching these elements to the required OD.

This list corresponds to the wishes and ideas from this forum: MAP New features - 01 - Improvments on Object Data, http://forums.autodesk.com/t5/autocad-map-3d-general/object-data-how-to-use-the-find-command/td-p/54... etc.


But the list is longer. The necessity of these possibilities is confirmed by daily use - they greatly accelerate, simplify and improve the work.

What other advanced features of working with Object Data may be needed?
For example, add a drawing with the Object Data on the sample of the specified existing object.  Import/export in kml/kmz, geojson. What else?

The resulting plugin could be a prototype for Autodesk add-ons for Object Data.
We could gather such additions to the forum participants, and offer as a general idea from many experienced users.


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

Object-modeling _ odclass-odedit.com _ Help

18,027 Views
118 Replies
Replies (118)
Message 41 of 119

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

Thank, noambbb.

New slightly revised version:

odedit_demo_OD_2011-12_32b.arx - https://yadi.sk/d/b2_NrBNQ-bMXKA
odedit_demo_OD_2011-12_64b.arx - https://yadi.sk/d/E-H7bNSkkuiMgg
odedit_demo_OD_2013-14_32b.arx - https://yadi.sk/d/Z3V2xlEGaslY-g
odedit_demo_OD_2013-14_64b.arx - https://yadi.sk/d/J6v0F36caFRAKg
odedit_demo_OD_2015-16_32b.arx - https://yadi.sk/d/i5v-3rqYFNovvw
odedit_demo_OD_2015-16_64b.arx - https://yadi.sk/d/IEQOnaXRKbqoLw
odedit_demo_OD_2017_64b.arx - https://yadi.sk/d/wJE_c_CDGLXFfQ
odedit_demo_OD_2018_64b.arx - https://yadi.sk/d/lcOy0Touei9S2g
odedit_demo_OD_2019_64b.arx - https://yadi.sk/d/uq1InWXoTjiIeA

 

You can _APPLOAD the desired arx, you can replace arx in C:\ProgramData\Autodesk\ApplicationPlugins\Alexander Sharov ODEDIT for Object Data.bundle\Contents if installed from the App Store.

 


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

Object-modeling _ odclass-odedit.com _ Help

Message 42 of 119

ODEDIT published in the App Store:

https://apps.autodesk.com/CIV3D/en/Detail/Index?id=6058493316603791142&appLang=en&os=Win64

 


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

Object-modeling _ odclass-odedit.com _ Help

Message 43 of 119

Anonymous
Not applicable

Hello~~~

 

I installed ODEDIT for Object Data 1.125.2 on my Civil 3D 2019.2 and checked the menu, but I can not see them except Explication under Export / Import menu. I wonder if there is a workaround.

0 Likes
Message 44 of 119

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

Hi,

 

Yes, in the ODCLASS free version there are no other commands from Export/Import.

In the free version is missing some more commands.

Map 3D has its own export capabilities based on OD.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 45 of 119

Anonymous
Not applicable

Hi,

 

Thank you very much for the tips!

I think your work is very interesting. 

I'm a intern at an engineering firm and I'm researching possibilities for an simple way to attach data to Object data.

Your idea of CSV import, for me is very interesting. Definitely something I hope, will develop in the future.

If I can be of any assistance, I would like to hear it.

 

Greets,

Tink

0 Likes
Message 46 of 119

Barzdil
Advocate
Advocate

I agree, great and very useful ODEdit and ODClass jobs from Alexander

0 Likes
Message 47 of 119

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

Thank yoy, Tink!

Thank you, Barzdil!

 

ODEDIT is basically tools for working with already attached Object data, automating work with values ​​in OD fields.


Attaching OD and entering values ​​into fields is more convenient with ODCLASS.
The required ODs are automatically attached to the graphic elements in ODCLASS as they are drawn.
ODCLASS allows you to automatically attach the necessary OD to the already drawn graphic elements based on their graphic properties - ODCLASS_CLASSIFY_AUTO (Edit - Define).
In ODCLASS, you can check whether the ODs are properly attached to graphic elements.
In ODCLASS, values ​​are entered into the fields with the given constraints. And there is a selection of items with invalid values ​​in the OD.


ODEDIT and ODCLASS are more convenient to use together. For example, it is very convenient to use ODEDIT_TABLE and ODCLASS_PROPERTIES at the same time. In the table, you can select the desired rows, and enter values ​​in the properties window.
Etc.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 48 of 119

Anonymous
Not applicable

Hi,

Did the command ODEDIT_SETTEXT already work?

I thought it worked yesterday, but now I get a error.

Maybe I made a mistake or I did it by hand and forgot Smiley LOL 

I was thinking about making a excel sheet and getting it in autocad.

And look what happens if I set it with your tool  'set from text'.

Still have to figure out how to use ODClass, but I already downloaded it 🙂

https://www.youtube.com/watch?v=Jm-8ruz6plo 

0 Likes
Message 49 of 119

Anonymous
Not applicable

Hi,

For the people who are interested. What I'm doing.

I'm currently working on a research for the underground infrastructure, cables and pipes.

In the Netherlands we can get a KLIC, a AutoCAD file with the underground infrastructure.

We have to add data to these lines. And we want to use Object Data, because of the export possibilities.

Through Mapexport we make a .shp file. In infraworks we load in the .shp file. 

The object data from AutoCAD can be found in Infraworks and attached. 

 

The only thing we are looking for is an easy way to attach value to Object Data in a short time.

There are more than 100 cables and it will take a long time to attach data to every line.

Maybe you have some idea's? The use of Excel would be very nice. 

 

Greetings from The Netherlands - Tink 🙂

 

0 Likes
Message 50 of 119

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

ODEDIT_SETTEXT works. It is necessary to specify graphic elements and texts.


Describe, show what you are doing and how. And what error?


ODEDIT_SETTEXT designates texts as circles as errors if there is no matching text-graphic element with OD.
For example, there is more than one text next to a graphic element. Or next to the text there is no graphic element.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 51 of 119

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

If you are comfortable with data in Excel, then for MAPEXPORT/MAPIMPORT it is better to use MIF/MID format. This is a txt format. MID files are actually CSV. The MID contains values in the fields of the tables separated by commas.

 

Attach sample data to better understand your task.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 52 of 119

Anonymous
Not applicable

Its definitely something I did wrong but I'm not sure what. 

I put the file in attachments. 

https://www.youtube.com/watch?v=Jm-8ruz6plo

I watch this video a lot, but still can't find out why its doesn't work while yesterday it worked perfectly. 

I definitely need to learn more about AutoCAD Smiley LOL

0 Likes
Message 53 of 119

Anonymous
Not applicable

I attached a line, that I use to test with Autocad and Infraworks. 

When I use MAPEXPORT I get a dpf. 

I open the dpf in excel, and I can convert it in a CSV easily. 

What would be nice is if I could attach the CSV to the object data. 

In my mind I would go like this:

- Make objectdata table 

- Attach data

- every line gets its own nummer (So you know which line is which )

- mapexport --> shp

- use dpf in excel fill the blank space

- import the excel or CSV to object data in Autocad 

Something like that would be very nice. 


CIVIL OBJECT DATACIVIL OBJECT DATAEXCEL through DBFEXCEL through DBFCIVIL OBJECT DATACIVIL OBJECT DATAINFRAWORKSMODEL WITH ODINFRAWORKSMODEL WITH OD

0 Likes
Message 54 of 119

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

What exactly is not working for you? Attach an example, screen, describe your actions.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 55 of 119

Anonymous
Not applicable

Same as what you did in the video. 

But I found the problem.

I've got a polyline, just a single line. 

When I try it with a polyline I get:

Completed 0 out of 1 (1 out of range)

When I make a closed triangle or square, then it works. 

Conclusion: on single lines 'set to text' doesn't 'yet?' work. 

Closed lineClosed linesingle linesingle line

 

0 Likes
Message 56 of 119

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

For non-closed lines, for points, blocks, etc. _SETTEXT also works, but you need to specify Tolerance at the bottom of the window.
If the distance from the text insertion point to the element is greater than Tolerance, then the text does not load.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 57 of 119

Anonymous
Not applicable

Ah oke thanks for the tip!

It didn't work in the way I wanted but I found another sollution to my problem.

Because we have to give every line a own unique name, we wanted to use excel.

But with your 'Create IDs' every line gets its own number without typing it millions of times.  

I want to thank you for all your help, I think I found what I'm looking for.

I will definitly recommend your creation to my colleagues 🙂

 

Message 58 of 119

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

To establish a one-to-one correspondence between texts and objects, a criterion is needed. Tolerance. Otherwise there will be uncertainty and it will be impossible to solve the problem programmatically.

 

Yes, Create IDs, the ODEDIT_SETID command is quite convenient. I myself use it almost daily.
Still, it may be useful to add commands from one OD field to another. Or from the field of one OD to the field of another OD, if different OD are attached to the graphic element.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 59 of 119

Anonymous
Not applicable

I definitely have to figure out how to get the tolerance good. At the moment I get a lot of circles. 

I think I need to try everything and figure out what works best for me. 

Thank you very much for the help! 🙂

 

0 Likes
Message 60 of 119

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

Send an example - I'll try to figure it out.

 


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

Object-modeling _ odclass-odedit.com _ Help

0 Likes