How to remove RXClasses (custom objectdbx) from DWG file

How to remove RXClasses (custom objectdbx) from DWG file

Anonymous
Not applicable
3,724 Views
23 Replies
Message 1 of 24

How to remove RXClasses (custom objectdbx) from DWG file

Anonymous
Not applicable

Using .Net API how can we remove RXClasses (custom objectdbx) from DWG file. I have purged all the instances of those RXClasses but if I look at at the DXFOUT of the file, I can still see those classes. Looks like in ObjectARX there is deleteAcRxClass() function to remove your custom classes from the AcRx runtime tree so essentially I want to know how to do the same thing in .NET.

Accepted solutions (2)
3,725 Views
23 Replies
Replies (23)
Message 21 of 24

JamesMaeding
Advisor
Advisor

all I mean is nuke the code starting with "class" up to next "class" like in this snippet:

280
     0
281
     0
  0
CLASS
  1
AEC_REFEDIT_STATUS_TRACKER
  2
AecDbRefEditStatusTracker
  3
AecArchBase70|Product Desc: Autodesk Architectural Desktop 2007 |Company: Autodesk,Inc. |WEB Address: www.autodesk.com
 90
      129
 91
        0
280
     0
281
     0
  0
CLASS
  1
NPOCOLLECTION
  2
AcDbImpNonPersistentObjectsCollection
  3

I did not try that, but seems too easy if if works.

This is why I love text files, you can fix them instead of going through someone else's interface.


internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties

0 Likes
Message 22 of 24

Alexander.Rivilis
Mentor
Mentor

@JamesMaeding

 

I'm sorry but you do not understand me. If I have a dwg-file and I save it as a dxf-file, it can then not open in AutoCAD or it may not fully match the original dwg-file. So I would not recommend working with dxf files.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes
Message 23 of 24

Anonymous
Not applicable

Agreed...

0 Likes
Message 24 of 24

JamesMaeding
Advisor
Advisor

@Alexander.Rivilis

oh, I definitely agree with that. Dxf's are junk IMO.

The idea of a text file following a schema is not junk though, and I wish there was such a schema, though it would be really bulky with xml tags.

The same pattern happens for civil engineering data. We have LandXML, and its ok, but underdeveloped in terms of what we need.


internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties

0 Likes