cmacca
Mechanical
- Mar 19, 2008
- 66
We are in the process of setting up our drawing templates. We would like to be able to automatically assign text to our revision description block on our standard template drawing boarder.
Currently we are using a tabular note with one row and column ie one cell and the boarders invisible. The note calls up an attribute called REV_DESC. The reason why we are using a tabular note is so we can wrap the text over two lines if the text description is long.
This tabular note is saved as a .prt file and can be dragged and dropped onto the drawing border from a palette we have set up. Problem is we want the note to be inserted to a specific point not just dragged and dropped anywhere.
We have now looked into automating this process by recording a journal file and modifying to suit. We are using File->Import->Part as the basis for the journal file and have modified the code to suit our needs.
This is all working well except that the font keeps changing from ideas_greek to blockfont after importing. I have manually added this note through File->Import->Part and have had the same result.
I have checked the font settings in Preferences->Annotation->Lettering->Dim Text etc for both the tabular note prt file and the file I am importing to and they are both set to ideas_greek. I've also checked under Customer Defaults->Lettering Fonts and the Drafting Standard->Customize Standard->Annotation etc to make sure the fonts are ideas_greek. I've also changed the setting UGII_CHARACTER_FONT_DEFAULT to equal ideas_greek in the ugii_env.dat file.
I have tried the File->Import->Part on normal text and this has worked fine but we need to use a tabular note to wrap over two lines.
Is there a fix for this or a way to change the tabular note font via vb code? Or is there a better way to automatically attach a tabular note to a drawing to specified coords?
We are using NX5.0.5.3 but I have also unsuccessfully tried this on NX6.0.0.24
Currently we are using a tabular note with one row and column ie one cell and the boarders invisible. The note calls up an attribute called REV_DESC. The reason why we are using a tabular note is so we can wrap the text over two lines if the text description is long.
This tabular note is saved as a .prt file and can be dragged and dropped onto the drawing border from a palette we have set up. Problem is we want the note to be inserted to a specific point not just dragged and dropped anywhere.
We have now looked into automating this process by recording a journal file and modifying to suit. We are using File->Import->Part as the basis for the journal file and have modified the code to suit our needs.
This is all working well except that the font keeps changing from ideas_greek to blockfont after importing. I have manually added this note through File->Import->Part and have had the same result.
I have checked the font settings in Preferences->Annotation->Lettering->Dim Text etc for both the tabular note prt file and the file I am importing to and they are both set to ideas_greek. I've also checked under Customer Defaults->Lettering Fonts and the Drafting Standard->Customize Standard->Annotation etc to make sure the fonts are ideas_greek. I've also changed the setting UGII_CHARACTER_FONT_DEFAULT to equal ideas_greek in the ugii_env.dat file.
I have tried the File->Import->Part on normal text and this has worked fine but we need to use a tabular note to wrap over two lines.
Is there a fix for this or a way to change the tabular note font via vb code? Or is there a better way to automatically attach a tabular note to a drawing to specified coords?
We are using NX5.0.5.3 but I have also unsuccessfully tried this on NX6.0.0.24