Azakalabaza
Electrical
- Jul 31, 2020
- 1
Hello All,
I hope you can help me with some advice for NX12 Journal, I need to create a macro that adds specific attributes to a part, assembly and drawings but I am not sure how journal can identify if I am using a part assembly or drawing and also if we have part in millimetres or inches
In short words:
1.- Identify if it is a part / assembly / drawing.
2.- Identify if units are mm / inches
So we have different scenarios:
Part in mm
AttributeA Value = A mm
AttributeB Value = B mm
AttributeC Value = C mm
Part in inches
AttributeA Value = A in
AttributeB Value = B in
AttributeC Value = C mm
Assembly in mm
AttributeD Value = D mm
AttributeE Value = E mm
AttributeF Value = F mm
Assembly in inches
AttributeD Value = D in
AttributeE Value = E in
AttributeF Value = F in
Drawing in mm
AttributeX Value = X mm
AttributeY Value = Y mm
AttributeZ Value = Z mm
Drawing in inches
AttributeX Value = X in
AttributeY Value = Y in
AttributeZ Value = Z in
So basically I can create the parameters with Journal but I do not know how to add if statements and get the function to identify type of file and units.
Thanks.
I hope you can help me with some advice for NX12 Journal, I need to create a macro that adds specific attributes to a part, assembly and drawings but I am not sure how journal can identify if I am using a part assembly or drawing and also if we have part in millimetres or inches
In short words:
1.- Identify if it is a part / assembly / drawing.
2.- Identify if units are mm / inches
So we have different scenarios:
Part in mm
AttributeA Value = A mm
AttributeB Value = B mm
AttributeC Value = C mm
Part in inches
AttributeA Value = A in
AttributeB Value = B in
AttributeC Value = C mm
Assembly in mm
AttributeD Value = D mm
AttributeE Value = E mm
AttributeF Value = F mm
Assembly in inches
AttributeD Value = D in
AttributeE Value = E in
AttributeF Value = F in
Drawing in mm
AttributeX Value = X mm
AttributeY Value = Y mm
AttributeZ Value = Z mm
Drawing in inches
AttributeX Value = X in
AttributeY Value = Y in
AttributeZ Value = Z in
So basically I can create the parameters with Journal but I do not know how to add if statements and get the function to identify type of file and units.
Thanks.