{"id":19133387,"url":"https://github.com/vasnake/dwg2csv","last_synced_at":"2025-05-06T19:14:17.553Z","repository":{"id":20611100,"uuid":"23892266","full_name":"vasnake/dwg2csv","owner":"vasnake","description":"Export data from dwg files via AutoCAD ActiveX API","archived":false,"fork":false,"pushed_at":"2014-09-17T20:45:40.000Z","size":936,"stargazers_count":19,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-06T19:14:11.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vasnake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-10T21:06:58.000Z","updated_at":"2025-01-29T13:36:13.000Z","dependencies_parsed_at":"2022-07-26T09:32:09.019Z","dependency_job_id":null,"html_url":"https://github.com/vasnake/dwg2csv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasnake%2Fdwg2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasnake%2Fdwg2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasnake%2Fdwg2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasnake%2Fdwg2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasnake","download_url":"https://codeload.github.com/vasnake/dwg2csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252752071,"owners_count":21798724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T06:22:16.451Z","updated_at":"2025-05-06T19:14:17.533Z","avatar_url":"https://github.com/vasnake.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"dwg2csv\n=======\n\nExport data from dwg files via AutoCAD ActiveX API\n\nThis set of Python scripts and other files was born in 2011, when I was working on a task with goal to migrate some data from AutoCAD to a GIS solution.\nFor data access interface I had chosen AutoCAD ActiveX API (that was a mistake, after all).\nFor data processing and scripting the Python was selected because it's my favorite programming language.\n\nExport from DWG (AutoCAD) to CSV.\n\nCOM (ActiveX) AutoCAD API was used for access to drawing entities and for extracting geometry and attributes from them.\n\nPython modules `comtypes.client`, `comtypes.gen` used for interaction with AutoCAD.\nModule `csv.writer` for data export.\n\nFor make it work you will need MS Windows, Autodesk AutoCAD, Python \u003e= 2.5.\n\nContents:\n\n* dwg.dump.py -- exporting program, work with current AutoCAD drawing unless you're run this script with a parameter: filename.dwg.\n* snippets.py -- AutoCAD ActiveX objects wrapper.\n* trig.py -- functions for coordinates transformation and other math stuff.\n* dwg.list -- list of input dwg files example.\n* rip.cmd -- runner cmd script example.\n* test.py -- tests for recovery DWG entities from exported data.\n* ora/csv.lob2ora.py -- CSV to Oracle loader, load data exported from DWG to Oracle DB using cx_Oracle. For coords data CLOB field was used because of data size.\n* ora/csv2ora.cmd -- cmd script for csv2ora loader.\n* ora/building.py -- select buildings data (polygon) from raw material and load to featureclass table.\n* ora/fountain_p.py -- same thing for fountains (point).\n\nextra/autocad.bulge/FacetBulge_rev1.zip -- some formulas (partly correct) from\nhttp://www.cadtutor.net/forum/showthread.php?51511-Points-along-a-lwpoly-arc\n\nMy related blog posts:\n\n* http://vasnake.blogspot.com/2011/06/export-from-dwg-to-csv.html\n* http://vasnake.blogspot.com/search/label/Autodesk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasnake%2Fdwg2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasnake%2Fdwg2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasnake%2Fdwg2csv/lists"}