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!

Can proe relations fulfil the function of Matlab?

Status
Not open for further replies.

raby

Computer
Apr 13, 2003
19
Hi,here with a question: just like Matlab, with designate the variable intervals, can we use edit relations or programs to fulfil the matlab-like function to create curves and surfaces? Thanks
 
Replies continue below

Recommended for you

Keeping in mind I'm no Matlab expert....

The closest Pro/E can come to doing what you asked is to create a curve based from equations.

This will let you create a curve based on a set of parametric equations, in Cartesian (X,Y,Z), Cylindrical (r,theta,z) or Spherical (r,theta,phi) coordinate systems. The equation editor works very much like the relation editor like you asked.

Each involve a single parameter, t, which goes from 0 to 1 through the span of the curve.

As far as surfaces go, I don't believe you can create them in the same way that you would in Matlab. Some clever surfacing may let you work around this (defining boundary curves from equations possibly?)

Working in Matlab and working in Pro/E are two very different things, since the output of either program serve very different (but possibly complimentary) goals.

It may be possible to generate a surface in Matlab and import it into Pro/Engineer, but that is beyond my present cabablilites with Matlab.
 
Thanks justkeepgiviner, that's enough for me.
 
Hi

I know this comes a lot later but I've stumbled on another possible solution (while working on something else) that might help you.

Using the tool : Insert-->Advanced--> Blend from File

You can import an *.IBL file of the following format:

Code:
Open Index Arclength

Begin Section ! 1

      Begin Curve ! 1
      1 X        Y       Z
      2 X        Y       Z
      3 X        Y       Z


Begin Section ! 2

      Begin  Curve ! 2
      1 X        Y       Z
      2 X        Y       Z
      3 X        Y       Z

Where each section is composed of as many curves as needed to construct a cross section through your surface.

You could construct a matlab script to output a file like this and then read it into Pro/E. I'm working on something similar with Excel at the moment.
 
I tried that but got a message:

Line 17: Expected 'Begin curve'
Not all elements are defined. Select element(s) or action(s) from dialog box.

(I assume line 1 starts with "Open Index Arclength")

Please see the content of the .ibl below:
=====================
Open Index Arclength
Begin Section ! 1
Begin Curve ! 1
1 1.160100 2.163200 0.000000
2 1.162500 2.176500 0.000000
3 1.167900 2.196600 0.000000
4 1.169800 2.205600 0.000000
5 1.173500 2.232200 0.000000
6 1.175500 2.240900 0.000000
7 1.180600 2.266800 0.000000
8 1.182600 2.277300 0.000000
9 1.187700 2.298300 0.000000
10 1.189500 2.310200 0.000000
11 1.194400 2.330600 0.000000
12 1.196300 2.341200 0.000000
===================

Am I missing something?

T.
 
By the way, I did Insert > Advanced > Blend from File > Surface.

I even tried Insert > Advanced > Blend from File > Protrusion

and Insert > Advanced > Blend from File > Thin Protrusion

Still none works.

Is it something in the config.pro?

T.
 
So at line 17, I added: Begin Curve to the ibl file you see above.

and ran the Insert Advanced again.

Then ProE froze afterward..

Will keep trying..
 
trillicomm,

you might try breaking it up

Insert datum curve>from file> select your co-ord system

then select your ibl file ...files

then build your surface from those sections

depends really what you're looking for
 
cadcamguy,

I did exactly that. It will not work (I tried in WF2 and WF3).

The same message shows again:

Line 17: Expected 'Begin curve'.
Not all elements are defined. Select element(s) or action(s) from dialog box.

T.
 
T,
Not sure if this could be the problem, but it did cause some problems with cnc code.

Is you file created in a plain editor such as notepad, not Word? because word will throw in little extras that are not really visible....just a thought.. I can get some info and cut and paste your numbers, but right now I have to get going to work
 
It works this time when I used the Offset Coordinate System Point Tool. And import the ibl file.

Case is closed.

T.
 
trillicomm

The problem you were running into was due to the fact that a blended surface, by definition, must contain more than one section.

Consider the following IBL file:
Code:
Open Index Arclength
Begin Section ! 0 <comments come after ! >
Begin Curve ! 0.1
1	0	0	0
2	5	5	5
3	10	10	10

Begin Section ! 1
Begin Curve ! 1.1
1	0	0	0
2	5	7.5	10
3	10	10	15

It's best to think of this in terms of a blend feature, that is, each section is like a "sketch" in 3D space. Each section is composed of one or more curves. For the blend to work, there should the an equal number of curves per section, and the order in which the curves are input is important (think of the blend start point).

NB: You can also have the first line say:
Closed Index Arclength
(For solid blends with closed sections)

Hope it helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor