[python-win32] (no subject)

Sanaa Mouzahir sm5126 at columbia.edu
Tue Apr 5 11:22:00 EDT 2022


Hello.
I hope you are doing well. I have some questions regarding the mapping from
VBA to Python. This is regarding the COM object SOLIDWORKS. I am trying to
translate the following VBA code:
Set skSegment = Part.SketchManager.CreateSpline((pointArray))
    Part.ClearSelection2 True
    Part.SketchManager.InsertSketch True


    Set swSkMan = Part.SketchManager
    Set swSketch = skSegment.GetSketch
    vSketchSeg = swSketch.GetSketchSegments


On python. However,This part:
*Part.SketchManager.CreateSpline((pointArray)) *gives the following error;
Nonetype is not callable.

-- 
*Sanaa Mouzahir*
*Columbia University in the city of New York*
*M.S Computational and data-driven engineering mechanics*
*+19173614172*
www.linkedin.com/in/sanaamouzahir
<https://www.bing.com/images/search?view=detailV2&ccid=OExL%2fKES&id=953FACCCB479C2FAA1A53CA425902FD30CA440A4&thid=OIP.OExL_KES2EC3IRZLeDK1DAHaEK&mediaurl=https%3a%2f%2fwallpapercave.com%2fwp%2fwp2710561.jpg&cdnurl=https%3a%2f%2fth.bing.com%2fth%2fid%2fR.384c4bfca112d840b721164b7832b50c%3frik%3dpECkDNMvkCWkPA%26pid%3dImgRaw%26r%3d0&exph=1080&expw=1920&q=Columbia+University&simid=608011745402298620&FORM=IRPRST&ck=6D77295D8F2F476D59DBF884FA81D9F3&selectedIndex=7&ajaxhist=0&ajaxserp=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/python-win32/attachments/20220405/b3fbfe4a/attachment.html>


More information about the python-win32 mailing list