Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

drawing borders 2

Status
Not open for further replies.

vitulaaak

Automotive
Jul 5, 2007
70
US
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
 
Replies continue below

Recommended for you

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
 
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
 
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 :eek:)
 
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
 
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?
 
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
 
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

 
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.
 
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...
 
Vitulaaak,

Give

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

or

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

a try,

Regards,
 
jpetach

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

Part and Inventory Search

Sponsor

Back
Top