简体   繁体   中英

How to use Python to copy an AutoCAD block from one file to another

I am trying to use python to simply copy a block from one file to another in autocad, but there is a surprisingly small amount of information on how to copy things with python and autocad from what i can find.

I can see there are libraries for autocad, but I could not find how to copy, let alone copy to another file.

Does anyone know how to do this?

Another option is to use the ezdxf module if you do not mind using dxf files instead of dwg. See this answer: Python and ezdxf copying blocks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM