SolidWorks API: Controling a Cube with C#

  Рет қаралды 3,647

Carl-Johan Jonsson

Carl-Johan Jonsson

Күн бұрын

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
@TheEverydayEngineerGC
@TheEverydayEngineerGC 6 ай бұрын
This was extremely useful, thank you very much!
@ajarivas72
@ajarivas72 6 ай бұрын
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.
@yiliang5883
@yiliang5883 8 ай бұрын
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
@ajarivas72
@ajarivas72 6 ай бұрын
Extract the edges of the cube.
@MushtaqAhmad-ro9qm
@MushtaqAhmad-ro9qm 8 ай бұрын
Sir how we can make code for automation of FEA analysis in SOLIDWORKS??? Plz help i have a project on that.
@ajarivas72
@ajarivas72 6 ай бұрын
That can be done very easily with a VBA macro.
@drsurfer61
@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
@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
@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
@kalkhasse Жыл бұрын
Thanks for the feedback! I will keep that in mind in the future.
SOLIDWORKS Forums API/Macros: How to write a SOLIDWORKS AddIn in C#?
16:48
Blue Byte Systems Inc.
Рет қаралды 13 М.
SOLIDWORKS API for the Total Beginner - 6/6 Saving Files and Conclusion
32:37
Worst flight ever
00:55
Adam W
Рет қаралды 6 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 33 МЛН
.NET and C# are in trouble. Here is what I'd do.
10:57
Ed Andersen
Рет қаралды 64 М.
SOLIDWORKS 2024 Tips & Tricks Part 1
19:21
Visiativ UK & Ireland
Рет қаралды 2 М.
SOLIDWORKS eDrawings API in Windows Forms
9:22
Code Stack
Рет қаралды 6 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 307 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 637 М.
Getting Started with the SOLIDWORKS API Programing
54:08
Hawk Ridge Systems
Рет қаралды 29 М.
Want to build a good API? Here's 5 Tips for API Design.
10:57
CodeOpinion
Рет қаралды 205 М.