Draw Cylinder (with GRID lines) in OpenGL

Submitted by CAAadmin on Sat, 06/17/2017 - 09:40

Press space bar to ON/OFF grid appearance

 

Sample code - --

 

#include <iostream>
#include<conio.h>
#include <GL/freeglut.h>
//available at www.computeraidedautomation.com
using namespace std;

GLuint jijmodel;
float jijmodelrot;
//int x,y,z;

bool bUsePredefinedCamera = true;
bool grid = true;
bool bFullsreen = false;
int nWindowID;
bool init = false;

Tags

Create a cube in Solidworks VBA - Solidworks Automation

Submitted by techrev on Mon, 05/01/2017 - 11:10

The code for creating a simple cube in Solidworks with VBA (macros)

Edit X and Y and Z values for customization

Private Sub CommandButton1_Click()

Dim swApp As Object

Dim Part As Object

Dim boolstatus As Boolean

Dim longstatus As Long, longwarnings As Long

Set swApp = Application.SldWorks

Set Part = swApp.ActiveDoc

Dim myModelView As Object

Set myModelView = Part.ActiveView

myModelView.FrameState = swWindowState_e.swWindowMaximized

Tags

Arduino Stepper Motor Pin Config and Code

Submitted by techrev on Sun, 04/30/2017 - 08:13

Arduino and Stepper motor pin configuration

arduino stepper pin config

I/O Connect to Controller : to pins 8, 10, 9, 11

Use below program  for your stepper motor driver trials

#include <Stepper.h>
#define STEPS 32   
#define STEPSREV 32 * 64  //2048  

Stepper stepper1(STEPS, 8, 10, 9, 11);

int  Steps2Take;

void setup()  
{

}

Tags