Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I have a generic model with hole feature and has some instances. In one of the instance the feature is set to NO while others have set to Yes. The distance from edge to the centre of hole is added as feature in generic and is part of the family table. Now for the instance where the hole is not there the dimension is displayed from the generic model.. If the dimension for the particular instance is not available then it should be set to dash or left blank . How to solve the issue?
Solved! Go to Solution.
@KSHITISH_S wrote:
I have attached the drawing and part
Hi,
I modified prt+drw in Creo 7.0.5.0.
prt
1.] I added parameters DD, HOLE_EXISTS
2.] I modified FT
3.] I modified relations
4.] I verified FT and saved the model
drw
1.] I modified repeat region filters
2.] resulting drawing table
I uploaded modified files.
Hi,
please publish some pictures showing the problem. Also pack your model into zip file and upload this zip file.
Hi,
please upload your model.
Note related to Family Table-image1.JPG
DISTANCE:FID_315 is measurement. The value is driven by geometry. Remove this column from family table. Family table usually contain variable items, only.
I don't think you can set a dimensional value to be a non-numeric.
If I were going to do something like this, I'd probably take this approach:
(1) Define a parameter as a YES/NO (boolean) such as featActive
(2) Add featActive to the family table.
(3) Set featActive to the same setting as your feature activation.
(4) Define a parameter to represent the dimension value, such as dimValue.
(5) Use a relation to set the dimValue, based on the setting of featActive.
For example:
IF featActive
dimValue = [Dimension rendered as text]
ELSE
dimValue = "-"
ENDIF
Hopefully that is helpful. Converting a real number to text is something you can look for on here, it has been discussed many times.
If this isn't exactly what you're looking for, maybe explain in more detail what you are trying to do with this dimension. I am assuming, perhaps wrongly, that you want to put the value into a table on a drawing, or some such thing?
I want the drawing to have the L, W, A and D dimensions populated in the family table. The dimension D is for feature Hole_1 which is not in instance1 and instance 2. But in the Drawing for instance 1 and instance 2 also the dimension D is populated as 82. Person reading the drawing assumes some error in table in the drawing.
Which version/release of Creo are you using as that can make a difference.
I use Creo 7
I want the drawing to have the L, W, A and D dimensions populated in the family table. The dimension D is for feature Hole_1 which is not in instance1 and instance 2. But in the Drawing for instance 1 and instance 2 also the dimension D is populated as 82. Person reading the drawing assumes some error in table in the drawing.
@KSHITISH_S wrote:
I want the drawing to have the L, W, A and D dimensions populated in the family table. The dimension D is for feature Hole_1 which is not in instance1 and instance 2. But in the Drawing for instance 1 and instance 2 also the dimension D is populated as 82. Person reading the drawing assumes some error in table in the drawing.
Hi,
please pack prt+drw into zip file and upload this zip file. This enable us to investigate them.
@KSHITISH_S wrote:
I have attached the drawing and part
Hi,
I modified prt+drw in Creo 7.0.5.0.
prt
1.] I added parameters DD, HOLE_EXISTS
2.] I modified FT
3.] I modified relations
4.] I verified FT and saved the model
drw
1.] I modified repeat region filters
2.] resulting drawing table
I uploaded modified files.
Hello @MartinHanak , Thanks for the solution. Its a work around but can work for me.
Thanks
Hello
You can just leave the dimension as *, so it would take the dimension from the generic as shown.
Regards
Pushkar Khanna