Glutenberg / swtoolkit

SolidWorks Toolkit for Python
MIT License
52 stars 13 forks source link

More info on how to use this is needed #2

Open icancwhatusay opened 2 years ago

icancwhatusay commented 2 years ago

Hi, I just found your module and I'm very excited to use it. Can you please update the README for this? I'd very much like to use this but without knowing much about your call outs for things, it's nearly impossible.

yanjiuwang commented 2 years ago

I'm very excited to use it too.But I don't know use it to designe

fosteman commented 1 year ago

Same here. My task is to read through all features and components inside a part and serialize it into a console. how can I achieve it ?

CrafterSvK commented 3 months ago

I know I am little bit late. You can read Solidworks API for your current version and check code in swtoolkit to find 1:1 mapping for that method, if that method is not available usually you can access COM object throught _instance and/or system_object of that particular class and call methods from API directly.

The problem starts when you need to use out arguments, but that can be figured out. Ask more if you have difficulty.

I tried this method and it does not require anything else besides installing swtoolkit running

sld = SldWorks()

Which gives you access to ISldWorks interface more or less directly.

fosteman commented 3 months ago

thanks mate! never late.

On 13 Jun 2024, at 3:21 AM, Jakub Janek @.***> wrote:

I know I am little bit late. You can read Solidworks API https://help.solidworks.com/2024/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.ISldWorks.html for your current version and check code in swtoolkit to find 1:1 mapping for that method, if that method is not available usually you can access COM object throught _instance and/or system_object of that particular class and call methods directly.

The problem starts when you need to use out arguments, but that can be figured out. Ask more if you have difficulty.

— Reply to this email directly, view it on GitHub https://github.com/Glutenberg/swtoolkit/issues/2#issuecomment-2165101156, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH2UEVJV4CFGLPDRITU7CMLZHFQAZAVCNFSM6AAAAABJH7OPNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRVGEYDCMJVGY. You are receiving this because you commented.