How to embed a userform in dwt or dwg?

How to embed a userform in dwt or dwg?

tramyer7mactavish
Contributor Contributor
459 Views
2 Replies
Message 1 of 3

How to embed a userform in dwt or dwg?

tramyer7mactavish
Contributor
Contributor

Hi,

I have created a userform in some of my dwt files. but When i opened it. 

It was gone. How do i embed my userform inside a file of dwt or dwg?

How do i make it stick there like when i open dwt (template file) its there.

thank you and krgds,

 

Tramyer

0 Likes
460 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor

In the VBAMAN dialog, you select your dvb and then click on the embed button. However, I don't recommend embedding it into your template. Then the code will be replicated everywhere. Not only will it bloat the dwg, but you would have trouble updating all the files it's in. The best way is to leave it in a dvb and load the dvb automatically so that it's always available. I recommend creating a cuix partial menu and ribbon button to run your command. Then create a mnl file that loads your dvb. It will then be loaded at startup, when your menu loads.

 

I think the only practical reason for embedding is to ship it with your drawing if you are sending it to someone else.

2022-07-08_07-05-29.png

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 3

Ed__Jobe
Mentor
Mentor

@tramyer7mactavish Did my code answer your question? If so, please mark it as the solution.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes