Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

2001 pro/program in assemblies doubt 1

Status
Not open for further replies.

pascual

Mechanical
Jul 19, 2002
75
0
0
ES
hi,

I have an assembly that includes some parts from family tables. I want to control the size of all these parts from the assembly itself. I thought that using some variables I can resize the entire assembly.

The problem it's that my pro/program is limited and the help does not help me so much.

anyone could help me?
 
Replies continue below

Recommended for you

Hello,

The parts must contain Pro-Program as well

e.g.

If you have a shaft to fit in a square plate with a hole

the shaft will be

input
shaft_dia number
shaft_len number
end input

the plate will be
input
hole_dia number
hole_depth number
input

the assembly will need something like this

input
assy_shaft_dia number
assy_shaft_len number
assy_hole_dia number
assy_hole_depth number
end input

after the relations you will need to do this

execute part shaft.prt
shaft_dia=assy_shaft_dia
shaft_len=assy_shaft_len
end execute

execute part plate.prt
hole_dia=assy_hole_dia
hole_depth=assy_hole_depth
end execute

Is this clear?

Let me know of any more problems/questions.



----------------------------------
Hope this helps.
----------------------------------

maybe only a drafter
but the best user at this company!
 
I know this way but the problem it's that the parts I'm trying to insert come from a family table. I've tryed:

INPUT
param1 number
param2 number
param3 number
END INPUT

RELATIONS
inst_name = lookup_inst( "PLAT_P_VAP.PRT", 1, "d5", param1, "A2", param2, "B", param3)
END RELATIONS

...............
ADD PART (inst_name)
INTERNAL COMPONENT ID 44
PADRES = 41(#6)
END ADD

..............

the part "plat_p_vap.prt" has a lot of instances and some parameters more in the family table. The program gives me an error in the relation and I'm lost.

I've tryed also something like:

input
name string
end input
......
add part (name)
......

but it does not work

I expect to explain myself better this time.
 
Hello,

I think you may need to investigate the INterchange assembly method.

----------------------------------
Hope this helps.
----------------------------------

maybe only a drafter
but the best user at this company!
 
Hello,

I got this to work,

on my shaft part I have three instances 50, 100 & 150
on my plate part I have three instances p50, p100 & p150

In my assembly I have

INPUT
SHAFT_NO STRING
PLATE_NO STRING
END INPUT


ADD PART (PLATE_NO)
INTERNAL COMPONENT ID 33
END ADD

ADD PART (SHAFT_NO)
INTERNAL COMPONENT ID 34
PARENTS = 33(#6)
END ADD

WHen regenerating, if you change the part numbers the components change.
Is this anything like what you require?



----------------------------------
Hope this helps.
----------------------------------

maybe only a drafter
but the best user at this company!
 
Pascual,

You said "...the part "plat_p_vap.prt" has a lot of instances and some parameters more in the family table. The program gives me an error in the relation and I'm lost."

Can you please describe the error?

-Hora
 
Hora,

the error says that there is an error in the relations line. I've changed the program and haven't the same error.
 
finally the working code will be something like:


INPUT
ANOM STRING
BNOM STRING
CNOM STRING
NOM2 STRING
END INPUT

RELATIONS
NOM = ANOM +"x"+ BNOM + "x"+ CNOM
END RELATIONS

............

ADD PART (NOM)
INTERNAL COMPONENT ID 39
END ADD

ADD PART (NOM2)
INTERNAL COMPONENT ID 41
PADRES = 39(#5)
END ADD

.............

since I have all the parts named as its main dimensions. This code real works. I have to develop completly but I think will be easy.

The goal is to prepare a mould assembly with all the most common parts we use. Yes, I know there is a mould module, but it has not the standars I comontly use and the process to create a catalog is very long (in work and time). This method is simplier and I can include some things that there aren't in the standars.

thanks for your help
 
I've read the thread and it's similar to the solution I'll have. But now I have one doubt more.

I can replace the components by its names. But it'd be nice to have a name such as "plate_a" not "plate_a_245x245". I wonder if there is any way to change the name of the components or replace them by its parameters. I suppose I'll have to use the lookup_inst command. I'll try and post my results.

 
Status
Not open for further replies.
Back
Top