call family table instance with pro/programs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
call family table instance with pro/programs
hello everyone,
i want to replace *.prt with pro/programm from family table
but this *.prt is generic it have a family table
how can i replace?
Best Regards,
Cömert YILMAZ
Solved! Go to Solution.
- Labels:
-
General
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If you know the name of the instance you want to place, it's easy...
Put this in your RELATIONS (or use an INPUT PARAMETER)
MY_INSTANCE = "510FB0158_1"
Then open your PRO/PROGRAM and look where the current part is being placed.
ADD PART 510FB0_158_159_160
...
END ADD
Now replace "510FB0_158_159_160" with "(MY_INSTANCE)"
ADD PART (MY_INSTANCE)
..
END ADD
Now change the value of MY_INSTANCE 🙂
When this succeeds, you could also look into the "lookup_inst" function...but that's a whole different ballgame
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
See Creo Parametric Help Center Example: A Parametric Design for a Blender Cover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If you know the name of the instance you want to place, it's easy...
Put this in your RELATIONS (or use an INPUT PARAMETER)
MY_INSTANCE = "510FB0158_1"
Then open your PRO/PROGRAM and look where the current part is being placed.
ADD PART 510FB0_158_159_160
...
END ADD
Now replace "510FB0_158_159_160" with "(MY_INSTANCE)"
ADD PART (MY_INSTANCE)
..
END ADD
Now change the value of MY_INSTANCE 🙂
When this succeeds, you could also look into the "lookup_inst" function...but that's a whole different ballgame
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
No problem.
If you want to know more about the lookup_inst then just give a shout 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi TeunHam,
i don't know lookup_ins or what does it .
but i have i problem .
i have two parts and there are generic part. (510FB0161.ASM and 510FB0166_167_168.ASM)
if my chose 510FB0161_1 i want to the suppress 510FB0166_167_168.ASM
or
if my chose 510FB0166_1 i want to the suppress 510FB0161.ASM
you can see program;
VERSION 3.0
REVNUM 474
LISTING FOR ASSEMBLY S1_FAN_OMEGA
INPUT
S1_OMEGA_TIPI NUMBER
"OMEGA TİPİNİ SEÇİNİZ. ( 1=SINGLE , 2=DUAL )"
S1_HAVA_AKIS_YONU NUMBER
"HAVA AKIŞ YÖNÜ SEÇİNİZ. ( 1=SAĞ , 2=SOL )"
S1_TEK_PARCA_FB_SINGLE STRING
"FB KODUNU GİRİNİZ.(510FB0161_...)"
S1_PARCALI_FB_SINGLE STRING
"FB KODUNU GİRİNİZ.(510FB0166_.,510FB0167_.,510FB0168_.)"
S1_TEK_PARCA_FB_DUAL STRING
"FB KODUNU GİRİNİZ.(510FB0152_...)"
S1_IKI_PARCALI_FB_DUAL STRING
"FB KODUNU GİRİNİZ.(510FB0157_...)"
S1_PARCALI_FB_DUAL STRING
"FB KODUNU GİRİNİZ.(510FB0163_.,510FB0164_.,510FB0165_.)"
END INPUT
RELATIONS
WEIGHT=PRO_MP_MASS
END RELATIONS
ADD FEATURE (initial number 1)
INTERNAL FEATURE ID 1
DATUM PLANE
NO. ELEMENT NAME INFO
--- ------------- -------------
1 Feature Name Defined
2 Constraints Defined
2.1 Constraint #1 Defined
2.1.1 Constr Type X Axis
3 Flip Datum Dir Defined
4 Fit Defined
4.1 Fit Type Default
NAME = ASM_RIGHT
FEATURE IS IN LAYER(S) :
01__ASM_ALL_DTM_PLN - OPERATION = SHOWN
01__ASM_DEF_DTM_PLN - OPERATION = SHOWN
END ADD
ADD FEATURE (initial number 2)
INTERNAL FEATURE ID 3
DATUM PLANE
NO. ELEMENT NAME INFO
--- ------------- -------------
1 Feature Name Defined
2 Constraints Defined
2.1 Constraint #1 Defined
2.1.1 Constr Type Y Axis
3 Flip Datum Dir Defined
4 Fit Defined
4.1 Fit Type Default
NAME = ASM_TOP
FEATURE IS IN LAYER(S) :
01__ASM_ALL_DTM_PLN - OPERATION = SHOWN
01__ASM_DEF_DTM_PLN - OPERATION = SHOWN
END ADD
ADD FEATURE (initial number 3)
INTERNAL FEATURE ID 5
DATUM PLANE
NO. ELEMENT NAME INFO
--- ------------- -------------
1 Feature Name Defined
2 Constraints Defined
2.1 Constraint #1 Defined
2.1.1 Constr Type Z Axis
3 Flip Datum Dir Defined
4 Fit Defined
4.1 Fit Type Default
NAME = ASM_FRONT
FEATURE IS IN LAYER(S) :
01__ASM_ALL_DTM_PLN - OPERATION = SHOWN
01__ASM_DEF_DTM_PLN - OPERATION = SHOWN
END ADD
ADD FEATURE (initial number 4)
INTERNAL FEATURE ID 7
TYPE = COORDINATE SYSTEM
NAME = ASM_DEF_CSYS
FEATURE IS IN LAYER(S) :
05__ASM_ALL_DTM_CSYS - OPERATION = SHOWN
05__ASM_DEF_DTM_CSYS - OPERATION = SHOWN
END ADD
IF S1_OMEGA_TIPI==2
ADD SUBASSEMBLY S1_OMEGA_DUAL
INTERNAL COMPONENT ID 40
END ADD
END IF
IF S1_OMEGA_TIPI==1
ADD SUBASSEMBLY S1_OMEGA_SINGLE
INTERNAL COMPONENT ID 49
END ADD
END IF
IF S1_OMEGA_TIPI==1
IF S1_HAVA_AKIS_YONU==2
ADD SUBASSEMBLY (S1_TEK_PARCA_FB_SINGLE)
INTERNAL COMPONENT ID 60
PARENTS = 49(#5)
END ADD
ADD SUBASSEMBLY (S1_PARCALI_FB_SINGLE)
INTERNAL COMPONENT ID 63
PARENTS = 49(#5)
END ADD
END IF
IF S1_HAVA_AKIS_YONU==1
ADD SUBASSEMBLY (S1_TEK_PARCA_FB_SINGLE)
INTERNAL COMPONENT ID 68
PARENTS = 49(#5)
END ADD
ADD SUBASSEMBLY (S1_PARCALI_FB_SINGLE)
INTERNAL COMPONENT ID 73
PARENTS = 49(#5)
END ADD
END IF
END IF
IF S1_OMEGA_TIPI==2
IF S1_HAVA_AKIS_YONU==2
ADD SUBASSEMBLY (S1_TEK_PARCA_FB_DUAL)
INTERNAL COMPONENT ID 76
PARENTS = 40(*)
END ADD
ADD SUBASSEMBLY (S1_IKI_PARCALI_FB_DUAL)
INTERNAL COMPONENT ID 83
PARENTS = 40(*)
END ADD
ADD SUBASSEMBLY (S1_PARCALI_FB_DUAL)
INTERNAL COMPONENT ID 88
PARENTS = 40(*)
END ADD
END IF
IF S1_HAVA_AKIS_YONU==1
ADD SUBASSEMBLY (S1_TEK_PARCA_FB_DUAL)
INTERNAL COMPONENT ID 93
PARENTS = 40(*)
END ADD
ADD SUBASSEMBLY (S1_IKI_PARCALI_FB_DUAL)
INTERNAL COMPONENT ID 98
PARENTS = 40(*)
END ADD
ADD SUBASSEMBLY (S1_PARCALI_FB_DUAL)
INTERNAL COMPONENT ID 103
PARENTS = 40(*)
END ADD
END IF
END IF
MASSPROP
END MASSPROP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
In my creo I don't have the aax extension, but I'm able to open and edit Pro program.
I know it's out of context but I still haven't figure out, what aax unlocks.
