attribute updater

attribute updater

Anonymous
Not applicable
545 Views
6 Replies
Message 1 of 7

attribute updater

Anonymous
Not applicable
Hello all,

I am trying to modify a code so I can open a drawing and update the titleblock's attributes with the previous drawing's attributes. I used userform.hide for the command button to retain the textbox values but
the new drawing does not update. The second titleblock that I open is identical to the first one. Can anyone point me in the right direction? I'm still using Acad 2003. Here is the code I am attempting to modify. Any help is greatly appreciated.
0 Likes
546 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
wrote in message news:6032156@discussion.autodesk.com...
Hello all,

I am trying to modify a code so I can open a drawing and update the
titleblock's attributes with the previous drawing's attributes. I used
userform.hide for the command button to retain the textbox values but
the new drawing does not update. The second titleblock that I open is
identical to the first one. Can anyone point me in the right direction? I'm
still using Acad 2003. Here is the code I am attempting to modify. Any help
is greatly appreciated.


The first thing i'd do is quit using the "default instance" of a user form
The second thing is give the form a meaningful name
eg. if you name the form frmAttUpdate...



Sub attabvba()
Dim f as frmAttUpdate
Set f = New frmAttUpdate
f.show
End Sub

also
You need two buttons, one to store the info from the dwg you want to read
and another to write the info to the dwg you want to write.
Then don't hide the form,

or you could gather the list of open dwgs in a listbox or whatever, select
the one to read and write to the rest or ..... possibilities are endless
:-)
hth
mark
0 Likes
Message 3 of 7

Anonymous
Not applicable
Thanks Mark,

I'm still a little lost. I used the sub as you suggested below and I received a compile error "user-defined type not defined". I'm still green to VBA so I apologize if I missed something in your post. I don't necessarily need to save any data. I just want to use the values still shown on the form's textboxes from the previous dwg.Then open another drawing and apply those values to the new dwg's attributes. I apologize again if I misunderstand.
0 Likes
Message 4 of 7

Anonymous
Not applicable
did you rename the form as I suggested?

wrote in message news:6032332@discussion.autodesk.com...
Thanks Mark,

I'm still a little lost. I used the sub as you suggested below and I
received a compile error "user-defined type not defined". I'm still green to
VBA so I apologize if I missed something in your post. I don't necessarily
need to save any data. I just want to use the values still shown on the
form's textboxes from the previous dwg.Then open another drawing and apply
those values to the new dwg's attributes. I apologize again if I
misunderstand.
0 Likes
Message 5 of 7

Anonymous
Not applicable
by rename the form i mean, select the form
go to properties
go to name
put what ever name you want to refer to it by (in my example i used
frmAttUpdate) use what ever you want
change the code to reference that name you choose


wrote in message news:6032332@discussion.autodesk.com...
Thanks Mark,

I'm still a little lost. I used the sub as you suggested below and I
received a compile error "user-defined type not defined". I'm still green to
VBA so I apologize if I missed something in your post. I don't necessarily
need to save any data. I just want to use the values still shown on the
form's textboxes from the previous dwg.Then open another drawing and apply
those values to the new dwg's attributes. I apologize again if I
misunderstand.
0 Likes
Message 6 of 7

Anonymous
Not applicable
Hi Mark

I renamed the form and was able to accomplish what I was trying to do. Thanks for the help !!
0 Likes
Message 7 of 7

Anonymous
Not applicable
wrote in message news:6033177@discussion.autodesk.com...
Hi Mark

I renamed the form and was able to accomplish what I was trying to do.
Thanks for the help !!

glad you got it working!
mark
0 Likes