Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:create': 0.09; 'subject:script': 0.09; 'python': 0.10; 'jan': 0.11; 'read.': 0.13; 'subject:python': 0.14; 'coordinates': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'tkinter.': 0.16; 'wrote:': 0.16; 'input': 0.18; 'all,': 0.20; 'am,': 0.23; '(or': 0.23; 'import': 0.24; 'header :In-Reply-To:1': 0.24; 'script': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'idea': 0.28; 'anyone': 0.32; 'file': 0.34; 'that,': 0.34; 'formats': 0.35; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'display': 0.37; 'received:org': 0.37; 'does': 0.39; 'easily': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'email addr:gmail.com': 0.62; 'export': 0.63; 'readers': 0.66; 'potentially': 0.67; 'centers': 0.72; 'square': 0.76; 'circles': 0.84; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Use python script to create a part for Abaqus Date: Wed, 29 Jul 2015 13:59:53 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-98-114-97-173.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1438192804 news.xs4all.nl 2854 [2001:888:2000:d::a6]:56214 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3502 X-Received-Body-CRC: 3682891713 Xref: csiph.com comp.lang.python:94747 On 7/29/2015 8:12 AM, saber.chelaghma@gmail.com wrote: > Hi all, I want to create a part in 2D composed by: > > -A square -Inside the square there is a lot of circles > > I have a input file .dat where we can find the coordinates of the > circles' centers and their radius. You can easily display a square with circles using tkinter. However, it can only export a postscript file that not all postscript readers can read. > I want to create this part using a python script and import it in > Abaqus/CAE. Does anyone have an idea (or examples) on how I can do this ? What input file formats does Abaqus/CAE recognize? If you know that, you can potentially write a file in the proper format. -- Terry Jan Reedy