I would probably be able to write a macro to do that. But I d rather have it as an annotation. The problem with the macro is, that you would have to run it everytime. Unless you could run it automaticaly...
I would like to create a followig note on my drawing:
sheet x of y
i would like x to be the number of current sheet and y the total number of sheets. Is there a way to create such annotation?
I used this macro from mark to assign the part properties into drawing file...
option strict off
Imports System
Imports NXOpen
Imports NXOpen.Assemblies
imports system.windows.forms
Module NXJournal
Dim thesession As Session = Session.GetSession()
sub Main
Dim thesession As Session =...
the problem is, that without the documentation i cant really do things i would like to...
could you please explain the followings:
dim c as component = comp.rootcomponent
prototype = CTYPE(child.prototype,part)
what exactly is rootcomponent and ctype
thanks
vit
I have done this:
Option Strict Off
Imports System
Imports NXOpen
Imports NXOpen.Assemblies
Module NXJournal
Dim Session As Session = Session.GetSession()
public part_name as string
Sub Walk(c As Component, level As Integer)
Dim children As Component() = c.GetChildren()
Dim...
to benson:
you wrote exactly what i wrote....the only thing is, that i can get working journal for one drawing file, but when i change the part, it doesnt work... its because its recorded macro and hence it is pointing to one exact part...i would need a macro, that goes into first level...
to Benson:
this is something, what i know...the problem is, how would you get the part name to the drawing file? I have tried the macro to make the part work part, assign its name to variable and then make the drawing file work again and sign the variable as attribute...the only problem is...
How would you do following:
i have a part, and part drawing as separate file...
how would you do a part name attribute of part drawing ?
i would expect something like making the part work part, saving the name as variable, making the assembly work part, saving the variable as attribute... the...