3 Replies Latest reply on Oct 25, 2014 5:08 PM by Hang Shi

    How to split a FACE of an extruded rectangle by split line?

    Hang Shi

      Hello everyone,

       

      I'm a student who is working on a school project.

      What I'm doing is to implement a macro to create a model automatically.

      And I'm a complete novice at Solidworks API.

       

      Now I will describe my probelm:)

       

      I have already created a rectangle and extruded it by 0.001mm.

      Now I want to insert an split line to split the top face of the "cube". but I could not insert a SketchLine.

      the API I use to create line is  "CreateLine",

       

      The only way that I found to create a line successfully is to call "Inersert3DSketch()" in advance before calling "CreateLine", however it's a 3D line, I can't make it as a split line.

       

      Does anyone have some sample codes for this purpose?  Then I could study it.

       

      As English is not my first language, if you feel confused about my description and want to help me out, please let me know. I will try my best to explain it clearly.

       

      Thanks.