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
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.
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
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.
This was extremely useful, thank you very much!
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.
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
Extract the edges of the cube.
Sir how we can make code for automation of FEA analysis in SOLIDWORKS??? Plz help i have a project on that.
That can be done very easily with a VBA macro.
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.
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
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.
Thanks for the feedback! I will keep that in mind in the future.