muck Posted November 27, 2008 Posted November 27, 2008 How to get Dim Variables form an enitity w/VBA? I am interested in making two VBA programs. AutoCAD 2004-09 Is it possable to make a VBA program to get entity variables from a picked entity and display entity variables in a textbox in VBA. It would be something simular to the pull down menu properies box but it would have VBA access for a beginner programmer. The user would pick a button and the VBA form would temporary hide allow a user pick an entity. The VBA program will redisplay the form with the entity variable in a text box. This would complete program #1. for reference. For program #2. I am interested in Dim variables. I would like to modify copy program 1 and modify it into program 1. In this case I am interested in Dim Variables such as dim text height. I would like also like to display dim text height, Arrow head size, dim exo, exe variables, and offset variable in a text boxes on a form. Maybe dim text style would be another good variable for reset. I would eventually want a second button to reset default autocad reset default dim variables. This would allow a user to pick a Dim and reset autocad dim default values without manually chaning them in the dim style properties box. A program like this would be a good starter program for other entity modifications in Autocad. I was looking at ThisDrawing.Utility.GetEntity to make something like this but I have not got anywere with it. Can anyone help? Thank you, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.