gvgbabu Posted March 23, 2014 Posted March 23, 2014 hi everbody i am new to autocad .net customisation. i want to know that how can we use user interface for user inputs and what is the alternative for DCL in autolisp. for example i have a program(dll) in vb.net. it creates one array how can take one value from the user. i want to use combobox and then populate it from the array. then take the input from the user and againg do some code. is it possible? if yes how can i do it. please guide me. thank in advance gvg Quote
SEANT Posted March 23, 2014 Posted March 23, 2014 Winforms are still a useful and easy way to design a UI for your routine. There are numerous tutorials online demonstrating their use. If you prefer a modeless - always present - Windows Presentation Foundation (WPF) can be used within AutoCAD palettes. This link contains some resources: http://through-the-interface.typepad.com/through_the_interface/2009/08/hosting-wpf-content-inside-an-autocad-palette.html Quote
SEANT Posted March 23, 2014 Posted March 23, 2014 This thread contains a good discourse on the ins and outs of Winforms. The code is C#, but everything is relevant to VB.NET. You will have to sign up to have access to the "Show Your Stuff" section. http://www.theswamp.org/index.php?topic=31435.msg369867#msg369867 Quote
BlackBox Posted March 23, 2014 Posted March 23, 2014 1+ I'm a big fan of WPF these days; I use it for both AutoCAD plug-ins, and Browser Applications. I still have a great deal to learn, but even with only little, one can do much... If that makes sense. Cheers Quote
SEANT Posted March 23, 2014 Posted March 23, 2014 I haven’t done much integration of WPF with my AutoCAD development. Though, I have been making some time with XAML in a Windows Store App I’ve been messing around with. From what I can tell, the two (WPF and XAML) are the same. Maybe an item or two missing from one or the other. I have to admit that Expression Blend (now included with Visual Studio Express 2013) is pretty handy. I still get in there to make sure the XAML makes sense, but Blend allows for more immediate visual feedback. Quote
gvgbabu Posted March 23, 2014 Author Posted March 23, 2014 thank you seant & black box for your replies. i will look into it. Quote
gvgbabu Posted March 24, 2014 Author Posted March 24, 2014 hi i created a program with a class and an usercontrol as palette. i put a button and a combobox and populated the combobox with an array from the class. upto this step i suceeded. Now i struck at this place. i want to select one value in the combobox on palette using button click. then that value from the button click should pass to a variable in the class. how to do it. please guide me. thanks in advance gvg Quote
SEANT Posted March 24, 2014 Posted March 24, 2014 This tutorial may shed some light on the matter: http://www.tutorialspoint.com/vb.net/vb.net_combobox.htm 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.