TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: cmwade77 on June 13, 2018, 04:27:00 PM
-
I am getting frustrated by how AEC objects invade our drawings, I am wondering if anyone has a LISP routine to explode AEC objects? Yes, I know I could use the -exporttoautocad command, but that creates a new file and I simply want to explode the AEC objects in the existing file.
-
Entities, or objects? Not all objects can be exploded e.g. the ones created by the "-dwgunits" command.
-
All AEC objects can usually be exploded with the -exporttoautocad command, basically I want everything that command does to happen without having to create a new drawing.
-
Perhaps the AECOBJEXPLODE command?
(http://1.bp.blogspot.com/_rxRitzbsFPY/RjeBiVqmwqI/AAAAAAAAABk/ag4kgV_vP_Q/s400/ExplodeAECObjects.JPG)
-
Which version of autocad has AECOBJEXPLODE? Using Plain AutoCAD here, not a command.
-
Nobody said anything about vanilla AutoCAD.
The AEC objects are coming from some AEC equipped application, use it to execute this command.
-
Perhaps the AECOBJEXPLODE command?
I am using Autocad 2017 :-(
Command: AECOBJEXPLODE
Unknown command "AECOBJEXPLODE". Press F1 for help.
-
I am using Autocad 2017
You'll have to use Civil 3D (or perhaps AutoCAD Arch?) to run this command.
-
Sorry, I should have explained this is indeed with Vanilla AutoCAD, this command (and a completely command line version of it) should be included in vanilla AutoCAD, but since it isn't, I am wondering if someone else has figured out a way to eliminate these AEC viruses and yes, I consider them a virus, as if you xRef a file with AEC objects into your drawing, your drawing now has AEC objects, even if you detach the xRef.
-
So if you only have vanilla AutoCAD, how are these AEC objects getting into your drawings?
-
We receive files from other companies all the time, they either use these verticals or their drawings somehow got infected by this, as I said before, I can only call it a virus.
-
I suppose you are the sub, and you can't make them send you clean drawing files?
-
Exactly, we don't get that level of control, many of our clients either refuse or don't know how to do so. We also have so many infected drawings on our system that our files get infected quickly. Honestly, these are harder to eliminate than the Education Stamp was when that was an issue.
-
To start there's this (http://www.theswamp.org/index.php?topic=54143.msg587648#msg587648). That said, post an example if you can and I'll put it on the coroner's table. Cheers.
-
The problem with that is it appears to erase the AEC objects, unfortunately, these may be doors, walls, windows, etc. that we need to explode into linework instead of AEC objects.
-
From the little bit I've gleaned from this thread it appears all you need do is write a wrapper for -exporttoautocad and (perhaps the) ability to batch same.
-
Not really, as that creates a new drawing and often crashes in the process.
-
Exactly, we don't get that level of control, many of our clients either refuse or don't know how to do so. We also have so many infected drawings on our system that our files get infected quickly. Honestly, these are harder to eliminate than the Education Stamp was when that was an issue.
You can use the object enablers so there is no need to explode the objects. Sometimes it gives unpredictable results because of their design.
BTW, in AutoCAD 2019 the Educatational Plot Stamp is back. That might be worse news.
-
I am using Autocad 2017
You'll have to use Civil 3D (or perhaps AutoCAD Arch?) to run this command.
It is AutoCAD Architectural.
-
No, I can't, object enablers cause AutoCAD to run very, very poorly and crash A LOT more often. No, it is far better to eliminate these viruses.
-
Even if you figure out how to expolde the aec objects your drawing will still be "infected" and that's why the exporttoautocad command creates a new drawing. There are drawing variables, dictionaries, etc... that will still be drawing, cause object enablers to load, infect other drawings.
If your end goal is to get rid of all the AEC stuff, and not have it affect other drawings, I dont think you have another option than creating a new drawing.
I did what MP already mention, I coded up a routine that takes all .dwg files in folder and batches the exporttoacad command placing them into a folder called "exported".
-
All entities are objects, but not all objects are entities, so not everything can be literally "exploded". Non-entity objects must be deleted.
Not everything needs to come from verticals either. The "-dwgunits" command will load the base AEC enablers included with vanilla AutoCAD and add AEC objects to the file (and possibly other files already open in the same session, although I haven't deliberately tested that particular sequence).
-
have you tried http://www.maestrogroup.com.ua/support/ExplodeProxy.zip ?
-
have you tried http://www.maestrogroup.com.ua/support/ExplodeProxy.zip (http://www.maestrogroup.com.ua/support/ExplodeProxy.zip) ?
That works great! Do you know if there is an English language version?
-
That works great! Do you know if there is an English language version?
the author of this program is our fellow swamper Alexander Rivilis (https://www.theswamp.org/index.php?action=profile;u=955), so you can ask him directly :)
if you want Readme.txt translated just use google's translate
-
have you tried http://www.maestrogroup.com.ua/support/ExplodeProxy.zip (http://www.maestrogroup.com.ua/support/ExplodeProxy.zip) ?
That works great! Do you know if there is an English language version?
There is no English version, but it is easy to translate messages with help of Google translate.
For example:
Удалено Proxy: Новых объектов:
Removed Proxy: New objects:
-
have you tried http://www.maestrogroup.com.ua/support/ExplodeProxy.zip (http://www.maestrogroup.com.ua/support/ExplodeProxy.zip) ?
That works great! Do you know if there is an English language version?
There is no English version, but it is easy to translate messages with help of Google translate.
For example:
Удалено Proxy: Новых объектов:
Removed Proxy: New objects:
When I paste the Readme file into Google Translate, it can't recognize the text. I think it's because of the font?
-
When I paste the Readme file into Google Translate, it can't recognize the text. I think it's because of the font?
Google translate without problem:
(https://farm1.staticflickr.com/876/41011282090_6564536cc5_o.png)
-
Yeah, definitely a font issue, instead of what you see, we get characters like:
Copyright (c) 1998-2011 Александр Ривилис
============================================================================
Данная лицензия разрешает, безвозмездно, лицам, получившим копию данного
программного обеспечения и сопутствующей документации (в дальнейшем
именуемыми "Программное Обеспечение"), использовать Программное
Обеспечение без ограничений, включая неограниченное право
на использование, копирование, изменение, добавление, публикацию,
распространение, сублицензирование и/или продажу копий Программного
Обеспечения, также как и лицам, которым предоставляется данное
Программное Обеспечение, при соблюдении следующих условий:
Вышеупомянутый копирайт и данные условия должны быть включены во все
копии или значимые части данного Программного Обеспечения.
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ <КАК ЕСТЬ>, БЕЗ ЛЮБОГО ВИДА
ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ
ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО
КОНКРЕТНОМУ НАЗНАЧЕНИЮ И НЕНАРУШЕНИЯ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ
ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА,
УБЫТКОВ ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ
ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ
ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫМИ
ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ.
============================================================================
-
Yeah, definitely a font issue, instead of what you see, we get characters like...
Try opening the text file in Notepad++ :wink:
-
Yeah, definitely a font issue, instead of what you see, we get characters like:
You need to specify the Russian language on the left side then the English language on the right side in google translator to get the translation as I successfully did.
-
Yeah, definitely a font issue, instead of what you see, we get characters like...
Try opening the text file in Notepad++ ;)
Lee - Once again, you're the man! That worked perfectly!