Community
AutoCAD Forum
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

CLEAN CADS FOR REVIT

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
1562 Views, 7 Replies

CLEAN CADS FOR REVIT

Hi all,

I am looking for a tool/app/script for cleaning drawings from autocad to use them in Revit.

 

These are the automated command that I need to go through every time we receive new drawings.

 

EXPLODE BLOCKS

DELETE HATCHES

DELETE SOLIDS

OVERKILL

PUT ALL THE CATEGORIES IN LAYER 0

SET COLOR BY LAYER

SET LINE WEIGHT CONTROL BY LAYER

.

.

.

PURGE

AUDIT

 

It would be greate if I can automate all this.

 

Many thanks and have a great weekend!!!

7 REPLIES 7
Message 2 of 8
Alfred.NESWADBA
in reply to: Anonymous

Hi,

 

is that a wish or do you think that is needed to get a drawing imported into Revit?

Depending on the drawings you have, e.g.

  • destroying blocks can result in files with a bigger filesize,
  • destroying blocks and setting all to layer 0 converts a structured drawing to an unusable one (also in Revit)

Maybe you can describe why you want to kill the drawing? Any backgroundinfo might help to hold the drawings as structured as possible.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 8
pendean
in reply to: Anonymous

Revit imports dwg files just file: simply run audit then purge commands to clean them up ( and QSAVE afterwards).
Message 4 of 8
Anonymous
in reply to: Anonymous

Thanks guys, but can you please focus on the topic?
Is there a quick way to do what I need???
Message 5 of 8
3wood
in reply to: Anonymous

If the blocks are nested, you need sort of routine to explode all levels.

Save following code as a script file (*.scr), download EXPLODEALL.vlx and get free registration, load it into AutoCAD with APPLOAD command, then use command SCRIPT to run the scr file.

Not sure about "CATEGORIES", it seems a term used in Revit, not AutoCAD. I assume you want to change everything into Layer 0. You can adjust the script to suit specific usage later.

;Batch process converting dwg to revit
;3wood CAD KITS 2015.01.31
(explodeall (ssget "_x"))
(if (setq s1 (ssget "_X" '((-4 . "<OR")(0 . "HATCH")(0 . "SOLID")(-4 . "OR>")))) (command "._Erase" s1 ""))
._-Overkill all  done
._Chprop all  layer 0 color Bylayer Lweight Bylayer 
._-Purge all * n
._Audit Y 

 

Message 6 of 8
Anonymous
in reply to: Anonymous

Thanks 3wood,
I will give it a go!!!;)
Message 7 of 8
pendean
in reply to: Anonymous

PLOT to DXB, then DXBIN: completely destroyed CAD files in two easy steps.
Message 8 of 8
Anonymous
in reply to: pendean

That definately killed the file,way to heave but thank you very much for your approach!Smiley Wink

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

Post to forums  

Autodesk Design & Make Report

ā€Boost