Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solid Edge and VB

Status
Not open for further replies.

Sannie

Mechanical
Jun 2, 2003
11
hi

I'm starting to write some programs in visual basic.
I have downloaded the 'programmers Guide' from the EDS-site
and I wonder if someone has some other websites or documentation
for programming Solid Edge

Any help would be much appreciated


thx,
Sannie
Solvit NV Engineering


 
Replies continue below

Recommended for you

Hi azueayob,
I'm trying to create simple shapes from the code in VB into Solid Edge.
But the problem is that every time I give coordinates, they start from (0,0) on the axes. And thats not the meaning, because I want to try to make a rectangle or triangle or so.
I try it out form the Programmer's Guide from EDS, but most of the examples are to difficult to understand for a beginner.
Thx
Sannie
 
Hi Sannie,

The easiest way I know of to do what you are asking is to first create the basic shapes and save the files (e.g. "square.par", "triangle.par"). You can then manipulate the variables via VB code using VB forms or Excel and save files under new names. I have written a program to create basic steel shapes in Edge, but I had to first create template files to work from. What do you want your end program to do?
 
Hi Satchmo,

As you have the Hexpro macro as example in SE, I want to create other shapes like this.
I have followed the programmer's guide, but when I give a size and after that 4x2 points for a rectangle, SE gives me 3 lines on eachother and one somewhere else. I really cannot follow what is going wrong!!
So I just want to create easy shapes in the beginning and that the client can give his own size and protrusion hihgt.
Thans, Sannie
 
hi satchmo,

I'm a colleague of Sannie and I try to help her with this
problem.
We are tryint to create libraries of standard DIN-parts using Edge and VB. I know i can use the library-macro that can be found in hte Custom-directory, but that doesn't work good enough for me.
Our idea is to write a macro in VB that gives us a pop-up screen containing several buttons (e.g. HEA, HEB, UNP, ....), then after we push one of these buttons we get a screen with all the specific sizes for that profile (HEA100, HEA120, HEA140, ...).
So we also must have a data-file containing the dimensions of the profiles.
When this macro is written we are going on trying to write several other usefull macros for example a way to control your assembly-configurations in excel, the modelling of a chain starting from an associative profile,
So you see, we have plans enough but as you know yourself, the starting up is the most difficult part.
Can you please send us an example of a square and a description how you did it.
Would be much appreciated.

greetings,
snoopy
 
Hi Sannie/snoopy,

I don't have a copy of my code on the computer I am currently on. I'll have it Monday. My apologies. I can't give you specific syntax without the code, and I'll only confuse the issue if I try to wing it. You mentioned Excel. Edge is fairly easy to automate from Excel. Have you tried that yet? You won't have near the functionality you would with VB, but it's a start.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor