Recently I just started using C# to develop something to work with Solidworks.
Someone please help me to get started...
Below just the code to change a dimension in a opened document(I added two COM reference just as they instructed here):
public partial class Form1 : Form
private void button1_Click(object sender, EventArgs e)
swApp = new SldWorks.SldWorks();
Part = swApp.ActivateDoc; //Cannot convert Object
Part.Parameter("D1@Sketch1").Systemvalue = 0.1;
//swApp = null;
However, Visual Studio complain about the code in red colour?!!
Please help how to write that part please... I just need to assign opened document to it, but it refuse to work!