Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5560

Re: FW: help please

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'languages,': 0.03; 'python.': 0.05; 'python:': 0.05; 'python': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'books:': 0.16; 'creat': 0.16; 'from:addr:yahoo.com.ar': 0.16; '"python': 0.16; 'subject:please': 0.16; 'subject:help': 0.19; 'tue,': 0.20; 'programming': 0.20; 'itself,': 0.23; 'translated': 0.23; 'objects': 0.24; 'url:mailman': 0.27; 'google': 0.27; 'problem': 0.29; 'server': 0.29; 'charset:iso-8859-15': 0.31; 'book,': 0.31; 'invoke': 0.31; 'url:books': 0.31; 'actual': 0.31; 'to:addr :python-list': 0.32; 'url:listinfo': 0.33; 'header:X-Complaints- To:1': 0.34; 'skip:" 10': 0.34; 'post': 0.34; 'there': 0.35; 'header:User-Agent:1': 0.35; 'two': 0.37; 'url:python': 0.37; 'exactly': 0.37; 'but': 0.38; 'url:google': 0.38; 'url:org': 0.38; 'received:org': 0.38; 'help': 0.39; 'list:': 0.39; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'how': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'chapter': 0.60; 'learn': 0.60; 'com': 0.60; '2011': 0.62; 'free': 0.62; 'preview': 0.68; 'url:ar': 0.68; 'works,': 0.69; 'url:f': 0.73; '-0300,': 0.84; 'genellina': 0.84; 'url:pg': 0.84; 'vba': 0.84; 'gabriel': 0.91; 'need,': 0.91; 'received:186': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From "Gabriel Genellina" <gagsl-py2@yahoo.com.ar>
Subject Re: FW: help please
Date Tue, 17 May 2011 09:17:10 -0300
References <SNT133-w132306F4C6FF6C016368BAA98C0@phx.gbl> <SNT133-W59B3B30F115296458BAE8EA98C0@phx.gbl>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15; format=flowed; delsp=yes
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host 186.19.171.200
User-Agent Opera Mail/11.10 (Win32)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1668.1305634633.9059.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 82.94.164.166
X-Trace 1305634633 news.xs4all.nl 49176 [::ffff:82.94.164.166]:57596
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5560

Show key headers only | View raw


En Tue, 17 May 2011 06:43:51 -0300, hamed azarkeshb  
<hamed3099@hotmail.com> escribió:

> hi dearinwant to useautomation with catiaby python,but i dont know,how  
> do we can creat catsafearrayvariant in python?please help me.i need  
> urhelp by one example.thank u forany thing 		 	   		

There are two sides when you want to use automation with Python:

* learn how to do automation by itself, how COM works, how to invoke a COM  
server from Python. This is mostly application-independent. A good  
resource is "Python Programming in Win32" book by Mark Hammond. Chapter 5  
"Introduction to COM" is exactly what you need, and is available for  
preview in Google Books:  
http://books.google.com.ar/books?id=fzUCGtyg0MMC&lpg=PA65&pg=PA65#v=onepage&f=false

* learn how to use the actual objects exposed by the desired application.  
Usually, documentation is available for VBA or other languages, but can be  
easily translated into Python terms.

So I'd say you first read the book, then search the documentation about  
CATSafeArrayVariant and see how to create it, and then translate that into  
Python. Feel free to post any problem you encounter, a better place would  
be the python-win32 list:  
http://mail.python.org/mailman/listinfo/python-win32

Good luck!
-- 
Gabriel Genellina

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: FW: help please "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> - 2011-05-17 09:17 -0300

csiph-web