Message 1 of 15
Changing Dtext with VBA

Not applicable
02-04-2009
01:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
What I'm trying to do is change some existing text with what the user types
into a TextBox. I don't want to look for certain text and replace it. I know
the coordinates of the text that I want to change. I figured it would be
easier to change existing text that is already set on the correct layer,
style, height, width, and so on, than it would be to set all that with code.
Been searching here and the internet, but all I keep finding is people
wanting to search for certain text and then replace it, without opening the
dwg. Or they are using GetEnity. Which that seems to ask the user to select
the enity.
What I'm envisioning is the user will start a new drawing with the template,
then click a button and a UserForm will pop up that has TextBoxes, the user
will then fill in the job number, name, site address, and so on. After the
user has type in the information, they will then click a CommandButton. Then
VBA will go to the right text, based on which TextBox the user entered data
in, and change the existing text to what the user entered in the TextBox.
There will be one TextBox for each text to change.
Can anybody help me on this, or at least give me a push in the right
direction?
Thanks
What I'm trying to do is change some existing text with what the user types
into a TextBox. I don't want to look for certain text and replace it. I know
the coordinates of the text that I want to change. I figured it would be
easier to change existing text that is already set on the correct layer,
style, height, width, and so on, than it would be to set all that with code.
Been searching here and the internet, but all I keep finding is people
wanting to search for certain text and then replace it, without opening the
dwg. Or they are using GetEnity. Which that seems to ask the user to select
the enity.
What I'm envisioning is the user will start a new drawing with the template,
then click a button and a UserForm will pop up that has TextBoxes, the user
will then fill in the job number, name, site address, and so on. After the
user has type in the information, they will then click a CommandButton. Then
VBA will go to the right text, based on which TextBox the user entered data
in, and change the existing text to what the user entered in the TextBox.
There will be one TextBox for each text to change.
Can anybody help me on this, or at least give me a push in the right
direction?
Thanks