Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Pro/Relation Wishes

conrat

New member
A few things PTC could do to make me love them.





1. Create a RTOS (Real Number to String) function.





2. Allow user defined functions in Relations.



ie:



function calcHoleSpacing(myLength, myHole_inset) {<br style="color: rgb(0, 0, 255);">
oc_spacing = 8<br style="color: rgb(0, 0, 255);">
end_to_end = myLength - myHole_inset * 2<br style="color: rgb(0, 0, 255);">
num_spaces = ceil(end_to_end/oc_spacing)<br style="color: rgb(0, 0, 255);">
num_holes = num_spaces + 1<br style="color: rgb(0, 0, 255);">
hole_spacing = end_to_end/num_spaces

return hole_spacing<br style="color: rgb(0, 0, 255);">
}

myHoleSpacing = calcHoleSpacing(36, 2)



3. Allow includes of these functions, so you could call a file that has all of your functions.





4. Allow FOR loops. Or ANY looping would be nice.



Just wishing.

Jim
 
how about just VBA.. be done with it
smiley4.gif
 
wsylvester said:
how about just VBA.. be done with it
smiley4.gif
Not exactly a Unix/Linux compatable solution. Of course, PTC is killing Linux support after WF3 but they will probably be supporting HP & Sun Unix for a while.
 
Do you need to use Toolkit to use VBA? We do not have it and it is expensive.



I have been messing with J/Link to do some of these things, as it is free.



It just seems like these things could be included in the software. Maybe it is just me, but even QBasic does loops.



Anywho, thanks for the suggestion. Let me know if Toolkit is required to do VBA.



Also, does anyone know where to find a good book on Pro/Engineer and J/Link?



Thanks,

Jim
 
not meaning to mislead you conrat.. noVBA with ProE


just seems if they want to do Windows...why not have vba


acad,word,excel,solidworks?<maybe Sw> all do





after all this is the Wish list forum
smiley2.gif
 
Oh, I see what you mean. Yes, VBA would make it easier to interface with the outside world.



I am beginning to see the Pro/PROFIT mentality that goes on at
PTC. I had this problem where I had three cuts in a sheet metal
part. I then had to add a pattern of cuts to this part. The
pattern of cuts could not intersect with the original three cuts.



I did this crazy chicken dance to get the cuts to come in right, and even then, it didn't work consistently.



I found that PTC offers a behavioral modeling extension, for an added
cost, that would assist me with this. I kept thinking, ALL I NEED
IS A FOR LOOP. If I had had the looping capability, I could have
determined the locations accurately and easily, but instead will need
to either pay for the added extension or do it in Java.



Needless to say, I am looking to do it over in Java.



Unfortunately, I am not schooled in Java. I do have a decent
background in other OOP languages, so I hope the transition isn't too
painful.



Thanks for your clarification,

Jim
 
Conrat, I totally agree with your original post (RTOS, Functions) would be immensly helpfull. I thought I heard once in a furture version of Pro that we were going to be able to write functions in Pro/Toolkitcould be added to and becomeavailable in relations.
 
If that does happen, I hope it isn't in Pro/E Wildfire release 24.



I think that they should have adopted a language like javascript.
Easy to use and understand. From what I have read, Web/Link
extends Pro/E using javascript. Why not add it to Pro/Relation
directly?



Javascript does automatic data type conversions. For instance, if
you pass a Number to a String, it will read the number as a string and
allow you to use it to concatenate numbers into formatted
strings. This would be a Godsend for displaying notes with
dimensions or using real numbers in strings. ITOS is nice, but
the hoops you have to jump through to format a real number to a string
using it is a PITA.



I just hate to use an external program to do things that could be
easily done inside of the app itself if it offered this basic
functionality.



Oh well, we can hope and dream can't we.



I must add here, MCAD Central is the greatest CAD/CAM site I have
found. You guys are all professional in your responses and have
helped me out immensely. You guys make this site a great resource
for the CAD/CAM Community. Or is that - Cadmmunity?
smiley36.gif




Thanks again,

Jim
 

Sponsor

Articles From 3DCAD World

Back
Top