×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Solid Edge and VB

Solid Edge and VB

Solid Edge and VB

(OP)
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


RE: Solid Edge and VB

what is the progrrame you're writing

RE: Solid Edge and VB

(OP)
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

RE: Solid Edge and VB

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?

RE: Solid Edge and VB

(OP)
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

RE: Solid Edge and VB

(OP)
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

RE: Solid Edge and VB

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources