Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XData with the same Application name with different descriptions

8 REPLIES 8
Reply
Message 1 of 9
АлексЮстасу
728 Views, 8 Replies

XData with the same Application name with different descriptions

Hi,

 

Are there Lisp or the like that would find objects with XData with the same Application names, but with different field descriptions? With different number of fields, with different sequence, etc.?

 

Example in the attached dwg.
Polylines have XData "MYAPP."
But some "MYAPP" consists of four fields for data, and others of two. And the types of fields are different. And the types of fields in the field sequence are different.

 


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

Object-modeling _ odclass-odedit.com _ Help

8 REPLIES 8
Message 2 of 9

You can use the same appname over and over again with all different kinds of data in each entity (subject to standards).

The worst was when working on the World Trade Center rebuild, we would get DWGs from other consultants with over 34,000 different appnames.  The drawings would take 25 minutes each to open until I found a way to purge them (before the PURGE command included regapps).

John F. Uhden

Message 3 of 9
ronjonp
in reply to: john.uhden


@john.uhden wrote:

...

The worst was when working on the World Trade Center rebuild, we would get DWGs from other consultants with over 34,000 different appnames.  The drawings would take 25 minutes each to open until I found a way to purge them (before the PURGE command included regapps).


Unfortunately this REGAPP 'virus' is still here today. I regularly purge thousands a day. Worst clients in the 100k+ per drawing. These drawings get referenced into other drawings and it spreads ... I wonder if this will ever get fixed.

 

'Empty' drawing with 100000 regapps then xreffed into another drawing:

ronjonp_0-1625094979748.png

I use this as well as other inhouse code to manage this carp.

Message 4 of 9
john.uhden
in reply to: ronjonp

@ronjonp
I think the only fix is giving any number of idiots a frontal lobotomy.
BTW, shortly after I conquered the villains (c. 2008±), Autodesk came up
with a stand alone executable to purge regapps. I wonder if it still
exists. If it does, how's your batch programming?
@Anonymous off
for %%f in ... do ...
💀

John F. Uhden

Message 5 of 9


@john.uhden wrote:

You can use the same appname over and over again with all different kinds of data in each entity (subject to standards).


Is there any tool that would find regapps, objects with regapps - which have the same names, but different structures in the same dwg at the same time?

 


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

Object-modeling _ odclass-odedit.com _ Help

Message 6 of 9

I don't know of one that exists, but one could be written in AutoLisp.

It would help to know what you mean by structure.  I would presume that each piece of xdata is fairly unique otherwise there wouldn't be much point to it.  A handle is enough to differentiate one object from another.

Maybe you mean the same order and quantity of dxf codes?  That can be done pretty easily.  Most likely, if the creator had any sense of organization, the codes would be the same for each regapp, but the values for each code would differ.

Then again, I tend to prefer extension dictionaries which can contain almost unlimited data of all types.

John F. Uhden

Message 7 of 9


@john.uhden wrote:

Maybe you mean the same order and quantity of dxf codes?  That can be done pretty easily.

 

Then again, I tend to prefer extension dictionaries which can contain almost unlimited data of all types.


If some XData were created manually by the XDATA Express command, if data from different DWG files were combined, etc., etc., then there may be the same application name, but with different "order and number of DXF codes".
It would be great to combine this task with general statistics about XData in dwg.
Let's say a list of strings: Appname, how many objects, and a mark about this difference. "Multiple" or the like.
Something like:

* Registered Application Name:  CIRCLE   3
* Registered Application Name:  MYAPP   5   Multiple
...

This could be useful not only for this task, but for general information about XData in dwg.

 

... I also prefer Object Data (Map/Civil) and Xrecord, but here and now we are talking about XData.  🙂

 


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

Object-modeling _ odclass-odedit.com _ Help

Message 8 of 9

... Or, better, the statistics are more complete (approximately, as done for Object Data on the image):

 

* Objects: 1599
* Objects with no XData: 917
* Objects with XData: 682
* Registered Application Name: 130
* Registered Application Name: CIRCLE 3
* Registered Application Name: MYAPP 5 Multiple
* Registered Application Name: TEST 447
...

 

odedit_stat.png

 

... By the way, I asked this question for this project - https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/programs-for-xdata/td-p/10423416.

 


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

Object-modeling _ odclass-odedit.com _ Help

Message 9 of 9


@john.uhden  написал (-а):

I don't know of one that exists, but one could be written in AutoLisp.

 

Maybe you mean the same order and quantity of dxf codes?  That can be done pretty easily.


Excuse me!
It didn't turn out to be easy to do?
Or is bad that immediately also about statistics?
I thought that the detection of such different Apps of the same name is well combined with general statistics. After all, to detect such Apps need to view them all...

I'm not insisting on anything.  🙂


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

Object-modeling _ odclass-odedit.com _ Help

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report