SOLIDWORKS API for the Total Beginner - 5/6 Creating a Drawing

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 33

  • @md_ez
    @md_ez Місяць тому

    SOLIDWORKS API for the Total Beginner - 5/6 Creating a Drawing
    ua-cam.com/video/KbZnKfZdbQQ/v-deo.html
    11:43 dfrns btwn , dim swap as sldw and set swap = aplcsh
    13:24 api help > index > stndrd view
    32:26 supprt in vsul wndo :

  • @azimsyafiq1786
    @azimsyafiq1786 2 роки тому

    I followed through your code until 16:50, but somehow it doesn't create the 3rd angle view. No errors whatsoever. When I ran the macro, seems like it stop at "swDraw = swModel" because drawing sheet is open.

    • @MLCCADSystems
      @MLCCADSystems  2 роки тому

      It appears that the macro is intended to open the drawing, not work with an already open one. A more robust code would have logic included that would either warn the user that the drawing is already open, or would modify the approach based on if the model is currently open. At this very early stage of the project you will have to make sure the starting conditions are met, and add complexity over time.

  • @danielwieser2269
    @danielwieser2269 2 роки тому +1

    Hi. The dimension which were automatically added are in Meters on my drawing. is there a way to convert them in mm inside the macro?

    • @MLCCADSystems
      @MLCCADSystems  2 роки тому

      You have a couple of options. Ideally you would open the drawing template (File > Open > File Type = Templates, open the specified/default template) and change the units there, save it, and then all future drawings would retain those values. It should also be possible to change the document units but you would just have to find the command to do it.

  • @MEMANOJKUMARP
    @MEMANOJKUMARP 3 роки тому +1

    Hi Keith , I have got an error in the Create3rdAngleViews2 line... It says that the object variable or with block variable is not set... Please help me with this

    • @MLCCADSystems
      @MLCCADSystems  3 роки тому

      When debugging it should highlight the line you are working on. Double check that all arguments are there, no extra spaces or incorrect punctuation, and if needed try recreating that line to see if that resolves the issue. Refer to the documentation for additional details about what variables are allowed for that command.

    • @pedroherrera4060
      @pedroherrera4060 2 роки тому

      @19ME021 MANOJ KUMAR P I am attempting the same and get the same issue on this line. When I check what swModel is now set equal to, it states it is set equal to nothing. Do you think that could be the cause of the issue?

    • @mohammedo5712
      @mohammedo5712 2 роки тому +1

      In the line where you wrote the drawing path, dont forget to put .(SLDDRW) at the end, even if your file name dont have it. I know it does not make scence, but i tried it, and it works!

    • @ronakkumar6232
      @ronakkumar6232 Рік тому

      I am getting the same error and after reading the below comments. I have tried the work arounds but didn't helped. Can you please help @MLC CAD Systems.

  • @somsakbureethong2412
    @somsakbureethong2412 2 роки тому +1

    Thank you for the video, would you mind giving us some advice, how come my Index search for API help does not have anything that shows as the video shown? do I need to update to help? and how?

    • @MLCCADSystems
      @MLCCADSystems  2 роки тому

      This tutorial is old but it shows a fundamental workflow that is useful for beginners. Your help file is likely to look different from this one.

    • @Basil43D
      @Basil43D 2 роки тому +1

      I know this was a while ago but I encountered a similar issue while watching these videos. I realized I was opening the help section from the VB Editor rather than the API help from inside solidworks, and that they show different content

  • @danielwieser2269
    @danielwieser2269 2 роки тому +1

    how can i add the isometric view on the drawing?

    • @MLCCADSystems
      @MLCCADSystems  2 роки тому

      Yes, if you can do it with a mouse and a keyboard it is almost certainly possible with the API. If you watch the entire series of videos you'll see how to find the command and structure the code.

  • @plataoplomo3173
    @plataoplomo3173 2 роки тому +1

    How to use macros in assembly
    And motion created sir..?

    • @MLCCADSystems
      @MLCCADSystems  2 роки тому

      The basic principles shown in this tutorial can be applied to almost all of the functions within SOLIDWORKS, good luck!

  • @kalusalingamarumugam8467
    @kalusalingamarumugam8467 8 місяців тому

    Thanks for sharing the information. Your video is blurry in between. So I could not read the video content in between. Example: 5:16, 19:26, I crosschecked it in different browsers. Still, it is the same blurry image in a video. So we could not follow. Appreciate your effort in sharing the information.

    • @MLCCADSystems
      @MLCCADSystems  7 місяців тому

      Sorry about that, this video wasn't recorded in full HD because it is much older but is still a great introduction to the workflow of programming. I'm glad you appreciate the content, if you want more like this you can also check out CADSharp.com.

  • @guntis3716
    @guntis3716 2 роки тому +1

    would you mind sharing this code please ?

    • @MLCCADSystems
      @MLCCADSystems  2 роки тому

      Unfortunately, we do not have a copy of the finished code. The video is supplied as educational only. Similar code can be found online and in the help documentation.

  • @rameshkumarpanneerselvam9578
    @rameshkumarpanneerselvam9578 2 роки тому

    Hi Keith,
    Could you please help me to sort out this error? see the below screenshot

    • @MLCCADSystems
      @MLCCADSystems  2 роки тому

      For API support you will get best results by going direct to your Reseller, SOLIDWORKS, or an API forum online. You can also check out www.cadsharp.com/ which is Keith's company, he was a featured guest on our channel for this video series.

  • @md_ez
    @md_ez 3 місяці тому

    15:00
    25:00

  • @Luffy45279
    @Luffy45279 10 місяців тому

    Any intersted in learning solidworks API advance learning please ping me

    • @MLCCADSystems
      @MLCCADSystems  10 місяців тому

      We're happy to discuss it, you can reach out with your contact information at www.mlc-cad.com/contact-us/ or reach out to CAD Sharp at www.cadsharp.com/, they are the ones we collaborated with for this particular event and they have a lot of on-demand content.

  • @md_ez
    @md_ez 3 місяці тому

    23
    30

  • @bulgakovdotorg
    @bulgakovdotorg Рік тому

    Hi,
    thank you for the informative series. How can I choose drawing view 3 to add the dimensions?
    I changed the line:
    swModel.Extension.SelectByID2 "Drawing View1", "DRAWINGVIEW", 0, 0, 0, False, 0, Nothing, 0
    to:
    swModel.Extension.SelectByID2 "Drawing View3", "DRAWINGVIEW", 0, 0, 0, False, 0, Nothing, 0
    The result is the same, even if I try to activate the view:
    swDraw.ActivateView "Drawing View3"
    Thank you.

    • @MLCCADSystems
      @MLCCADSystems  Рік тому

      I recommend reaching out to the community for support learning how to use and develop with the API. The SOLIDWORKS Forum forum.solidworks.com/ or the Reddit SOLIDWORKS community www.reddit.com/r/SolidWorks/ should be able to assist.