×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

drawing borders
2

drawing borders

drawing borders

(OP)
Hello,

I am using NX 3 and have the following question:

lets say we have some borders, that we import when we start the drawings, is it somehow possible to have them with automaticaly filled notes using the parameters? If yes, how can you do that? This is something, what I used in Proe, but dont really know, if it works in UG also.
thanks
Vit

RE: drawing borders

You can create notes in your border that are linked to attributes and if those attributes have been assigned values, when the border is add, they will automatically update to reflect the 'values' of the attributes.

John R. Baker, P.E.
Product 'Evangelist'
UGS NX Product Line
SIEMENS PLM Software
Cypress, CA
http://www.siemens.com/ugs
http://www.plmworld.org/museum/

RE: drawing borders

(OP)
well, i thought it should work, but problem is, that our company borders are imported as a part and therefore i wasnt able to find a way to put the note there...do you have some example?
thanks
vit

RE: drawing borders

(OP)
the thing is, that I cant find an option to change the pattern... I can only replace it or load it...

RE: drawing borders

(OP)
The custom symbol wont really help...
my expectations were, that in my start part, i define the parameters (drawn, date, part name etc.) and when i start the drawing, they will autmaticaly fill in in the imported borders with the notes....

RE: drawing borders

We use seed files for this, which include the pattern and any text we want to be automatically updated with attributes.

RE: drawing borders

(OP)
can you give me an example of such file???
thanks vit

RE: drawing borders

Do you know how to create an annotation that references an attribute in the file. If not it is provided for in the attributes dialog and shouldn't be hard to find. I'll have to leave you to chase it up via the documentation as I can't stay online.

We use templates with patterns for the borders but not the text fields. UG actually is shipped with examples for this that you should be able to find and adapt to your purpose. Very easy and convenient to use.

Regards

Hudson

RE: drawing borders

P.S. add a parts list to your template for best effect. Doing so gives you the ability to automate the display of information from another part, which we use even if it is a detail drawing. Some site like to create separate templates for detail drawings and assembly drawings because they set up the part list levels differently.

Regards

Hudson

RE: drawing borders

(OP)
well,
there are few other questions:
i would like to create a start part with predefined parameters, that i fill in when i start to model the part...
when i do file/properties/attributes   i can only define string valued attributes...why? how can I use part weight as attribute?

lets assume that i have all these attributes defines, i have to get them to the borders and here...i dont know how to do that....

RE: drawing borders

I am writing this as I had done earlier assuming that you're using master model system whereby the drawing and geometry are always in two seperate files.

To edit a parts list what you want to do is select the column and then under your right mouse button select style. If you have trouble with this to start with make sure that you're on object selection mode. In drafting the other common mode is component selection and I keep the icons displayed to deal with getting caught out after changing between parts (see below).

Under the columns tab you'll find everything you should need, column type, key fields  and the various available attributes under the arrow icon if you don't want to type in the name.

To gather the mass of loaded parts the attribute is below.

<W$=@$MASS>

under the metric system if you want to use grams as of NX-3 the attribute will be multiplied by 1000.

<W$=@$MASS>*1000

To add attributes to your part files obviously you need a consistent naming standard for the attributes that concurs with the parts list you'll set up.

First off I find it easiest to select the work part from the ANT under the right button select properties and then the attributes tab. You'll see your title and values fields which you fill out and hit enter to accept. They can just as easily be deleted to it's dead easy.

After that I often find a part with the attributes already assigned selecting it the same way off the ANT. From there you can <shift> select a range of attributes, find the copy icon and use it to save those values onto the clipboard. Next you just switch parts to your new model and getting back into the properties dialog use the paste icon to transfer all the values from the other part. A handy tip because often not all the values change and you'll want to keep the same titled attributes for you parts list to work.

Best of Luck

Hudson

RE: drawing borders

(OP)
Ok, this is good but...
the problem is, that it only works in the components table...but i want to put notes on the places i like so that they can call the attributes...thats one thing and the other is, that i still have no clue how to put the notes directly to the borders...

RE: drawing borders

(OP)
ok, i have managed to have the borders with the parameters...the last thing, that i am struggling with is, can i have there the parameters of components??? even though i made the component table in my borders, its not displayed in the drawing, when i bring the borders...:o(

RE: drawing borders

(OP)
ok, another thing...i made a table of components in my drawing and i tried to put the mass in one column, but it doesnt show anything....

RE: drawing borders

There is another way to get the mass onto the face of the drawing. From the drawing file as your work part and starting in the modeling application you could use expressions to create a body measurement variable of the mass. It will be stored as a parameter.

i.e. p18 in the example below, where you add this note to the face of the drawing.
TOTAL MASS = <X0.2@p18> kg

If you do so in a template and re-use that in a number of drawings then you'll may have to edit the note if the value of the parameter changes because to need to re-create the body mass expression. It is a bit more manual and involved than the simple parts list but it does add up the total mass.

Beware you need to open the assembly fully to get this to work and if a component is not found or deleted in the assembly the drawing may hang upon opening and cause you some trouble.

I think this method quite clever and have seen it used to good effect, but I would steer away from it for very large assemblies.

Now for your other questions. We use patterns that is one file with the basic framework of the drawing in it. The template is a file with the border added as a pattern plus some attributes for items like the date, title, drawn by and perhaps a parts list added. Sounds like you were in part familiar with this.

So to add a title create in the file properties an attribute called title and give it some text in the values field. Next open the annotation editor, and expand the full dialog by clicking on an icon A with the pencil along side. Midway inside that window you should see some tabs and select relationships from the bottom right of the bunch. There are three icons for possibilities including expressions, object attributes and part attributes, you want to use the last one.
If you're hopefully working in a clean part when a list box pops up there will only be one option "title". Move your cursor over the main window to position the text on the drawing. Now you'll notice that what appears is just the text that you typed in the value field. Change the text style, to whatever size and font you like and move it's origin over the appropriate empty spot on your title block of the drawing and you're done.

If you're creating a template then chances are you'll only have to do this once.

Now if you want to pick up attributes from other files you can add text from an "object attribute" by selecting the component and picking one of it's attributes from the list box in the above described annotation dialog.

Better in most cases to use a parts list because it caters for changing components. Using the method above if you were to try substituting the component with the object attribute the note goes stale and needs basically to be re-created to update. It doesn't matter if the component you substitute with has an equivalent attribute or not, the system doesn't buy the swap. Using this method in a template is also unsound.

Hope you get it to work for you. If you struggle or are using a different version than NX-3 then try to pick up on the terminology that I'm using and delve into the documentation I'm sure you'll find what you're missing.

Regards

Hudson

RE: drawing borders

You need advanced assemblies. The mass comes from weight management under the part properties dialog.

Regards

Hudson

RE: drawing borders

(OP)
I dont understand what you mean by this:
There is another way to get the mass onto the face of the drawing. From the drawing file as your work part and starting in the modeling application you could use expressions to create a body measurement variable of the mass. It will be stored as a parameter.

i.e. p18 in the example below, where you add this note to the face of the drawing.
TOTAL MASS = <X0.2@p18> kg

If you do so in a template and re-use that in a number of drawings then you'll may have to edit the note if the value of the parameter changes because to need to re-create the body mass expression. It is a bit more manual and involved than the simple parts list but it does add up the total mass.


the problem is, that i dont understand, if UG already has some parameters ( mass, name etc.) or not... and if yes, why it doesnt work, if i call the mass in the components table?

RE: drawing borders

(OP)
Ok, next thing...when i create a parts list in the drawing, it has no problem, when there are no parts..the rows siply disappear...the thing is, when i create it in the borders, the table wont appear at all...even if the part has components...

RE: drawing borders

(OP)
well, i found out, that if i make the table in the borders, and doesnt matter what kind of table, its not going with the borders in the drawing...does anyone have an idea why???
thanks
vita

RE: drawing borders

When you do Analysis --> Measure Bodies (of Faces); a box pops up and the first icon is to save the parameters.

You go into expressions (ctrl-e), on the pull down menu, goto measurements and you can see the parameter names, or you can rename them.  We just rename them for the volume and surface and bonding areas.

In the text on the drawing, we just have <x.1@v> for Volume, etc.

Justin Ackley
Designer

RE: drawing borders

(OP)
well, it could work this way...but the problem with theis is, that you have to perform the measurement and rename the measurement result which is not as good clown

RE: drawing borders

(OP)
can you somehow make it as attribute???

RE: drawing borders

Like Hudson said, if its the same attribute across the board, sure.

I do this on a daily basis and it's not that big of a deal.

Justin Ackley
Designer

RE: drawing borders

(OP)
what do you mean the same attribute across the board???

i dont say its a big deal, the problem is, that in ug its not so easy to find it and other thing is, that i am used to proe, where this is easy and logical...

i tried to get the equation to the attributes, but it doesnt seem to work... could you explain exactly how? what menu u use etc.? this is something that i am struggling the most...to find it in the menus...

the other thing is, is there a way to do it without measuting it_?like built in attribute?

RE: drawing borders

(OP)
because our admin doesnt want to allow multiple partslist, which i wanted to create, i decided to use journal to assign the attributes. do you have a syntax for assigning file name to a variable???

for example dim name as string = theSession.Parts.Work.name

I dont know the exact syntax, can anybody help?
thanks
vita

RE: drawing borders

I don't know of any way to get a text value into an expression variable. If that's what you mean.

Anyway you wouldn't bother to do that. You should use an attribute. Then you create an annotation of the face of the drawing that always addresses an attribute of that name. You could use that drawing as a template as I described earlier. Whenever you reuse that drawing you would edit the attribute using file properties, or via the ANT. You will find that this will update the text of the face of the drawing.

Regards

Hudson

RE: drawing borders

(OP)
I want to assign attribute file name using journal. I dont want to fill in the attributes manualy. I am looking for something more automatic.

RE: drawing borders

(OP)
This is still something, what I can do... I wanted to know something else.
I wanted the joural to assign work part name to the attribute...but I dont know the syntax in visual basic to find it out...

you have this sentence there :

theSession.Parts.Work.SetAttribute("title", "the name of the drawing")

but the name of the drawing is not the variable...
something what i would expect is:

Dim partname As String
partname = theSession.Parts.Workpart.(syntax for name)

and then signing it to attribute:

theSession.Parts.Work.SetAttribute("title", &partname)

again I dont know the correct syntax ant thats what i needed...


I hope you understand it now...

RE: drawing borders

2
Vitulaaak,

Give

theSession.Parts.Work.SetAttribute("FILENAME",theSession.Parts.Work.Leaf)

or

theSession.Parts.Work.SetAttribute("FULLPATH",theSession.Parts.Work.FullPath)

a try,

Regards,

RE: drawing borders

(OP)
jpetach

that was exactly what i wanted...do you think, that if I use for example visual studio to edit, the intelisense would work?

RE: drawing borders

It worked and a learned something!

Thanks for the info.

RE: drawing borders

P.S. Edited the .vb journal with wordpad

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources