Writing a short simple application to control some dimensions of a Cube in SolidWorks using C#. Thanks to Blue Byte Systems, Inc. for the video on the SolidWorks Singleton code! / @bluebytesystemsinc • SOLIDWORKS C# STANDALO...
Пікірлер: 10
@TheEverydayEngineerGC6 ай бұрын
This was extremely useful, thank you very much!
@ajarivas726 ай бұрын
It is my experience that Macros in SolidWorks sometimes don’t work. For example, sometimes a sketch is broken depending on where you begin drawing.
@yiliang58838 ай бұрын
You explained it in great detail. If I want to extract the length, width, and height dimensions of the cude through a program, how should I implement it
@ajarivas726 ай бұрын
Extract the edges of the cube.
@MushtaqAhmad-ro9qm8 ай бұрын
Sir how we can make code for automation of FEA analysis in SOLIDWORKS??? Plz help i have a project on that.
@ajarivas726 ай бұрын
That can be done very easily with a VBA macro.
@drsurfer61 Жыл бұрын
Do you have an idea why on my test PC swModel.Parameter("name") has not the .Value property (SW 2020)? I managed to get dimensions from model with this code: Dimension swDim; swDim = (Dimension)swModel.Parameter("width@Sketch1"); txtWidth.Text = (swDim.SystemValue * 1000.0).ToString(); Of course this has not immediate reverse form. I'm using .Net 5.0, I had to overcome the absence of Marshal method, but I don't think it's related at all.
@kalkhasse Жыл бұрын
Sorry to say, I have no idea why .Value is not present. But according to SolidWorks API help its an old (obsolete) way of getting and setting the value. In your example it would be swDim.GetValue3() or swDim.SetValue3(). Check the link below for more info. Hope it works out! help.solidworks.com/2020/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IDimension_members.html
@jccourtney317 Жыл бұрын
You talk pretty quietly. I had to have my volume on max to be able to hear you, which ends up jolting me because ads or other videos are much, much louder. If I can add a suggestion: increase your microphone volume by like 30 or 40 percent.
@kalkhasse Жыл бұрын
Thanks for the feedback! I will keep that in mind in the future.