The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.'
― Confucian Analects
You're going to have to explain in a lot more detail exactly what you are trying to do: remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
And I for one have no idea how you propose to use them from C#, or why.
Sent from my Amstrad PC 1640 Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
Hi, I'm trying to make a solution in visual studio called "select all schedule views and export them". Originate a button and a panel in revit, so that when pressed it appears a check list box to select the schedules views. I am trying to select all the schedules through a CHECK LIST BOX. First I used a filtered element collector to select all the schedules, then I tried the checklistbox.add method,and checked list box.data source but nothing appears when I start the method and open revit. Has anyone worked with chekc list box as a revit button? how does check list box works to select items?
using Form = System.Windows.Forms.Form;
using Application = Autodesk.Revit.ApplicationServices.Application;
public partial class Formulario_Schedules_Export : Form
private Document doc;
private UIApplication uiapp;
private UIDocument uidoc = null;
private IEnumerable<ViewSchedule> col;
private string _export_folder_name;
private string _ext;
private ViewScheduleExportOptions opt;
private UIApplication Application;
public Formulario_Schedules_Export(UIDocument uIDocument)
//pasar parametro de entrada
private void button1_Click(object sender, EventArgs e)
private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e)
Document doc = uidoc.Document;
List<ViewSchedule> sched_list = new List<ViewSchedule>(new FilteredElementCollector(doc).OfClass(typeof(ViewSchedule)).Cast<ViewSchedule>();
checkedListBox1.DataSource = sched_list;
checkedListBox1.DisplayMember = "Name";
Lately i have stumbled upon a Library called mXparser which i think can be useful for your cause.It gives you a lot of flexibility, such as variables, functions, constants, operators.You can check it out.
I'm using the 2015 version of visual studio C#.
I was told that the 2017 version was not stable in places but there are some nice features I'd like to use in the 2017 version.
Does anyone know of a any recent releases of visual studio. Hopefully the next release is more stable.
This What's new in Visual Studio 2019 - Visual Studio[^] shows the difference between the 15, 17 and 19. I didn't like 15 as it was wacky, 17 was a better one, as it is more integrated with Azure and added Angular stuff. If you have access to the 2019 version, then yeah 19 for sure.
I have been using VS 2017 for the past two years. Never experienced any issues. The updates were frequent and things were dine nicely. Just a week ago, I installed VS 2019. Certain things like cloud development are easier in VS 2019. As backup, I keep pervious version. So, I uninstalled VS 2015.
I am using a laptop that I purchased in 2012 with intel core i5 16 GB Ram and have not experienced any issues with VS 2019 with respect to memory or disk. I think what you are building within the Visual Studio could cause issues, but not necessarily by IDE.
I have 3 Network adapaters. I neeed the IP address of the primary, so I'm using this:
foreach (NetworkInterface ni in NetworkInterface.GetAllNetworkInterfaces())
if (ni.NetworkInterfaceType == NetworkInterfaceType.Ethernet)
foreach (UnicastIPAddressInformation ip in ni.GetIPProperties().UnicastAddresses)
if (ip.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
The question is, does NetworkInterface.GetAllNetworkInterfaces() return them in the correct order? How do you know which is the primary?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
That doesn't make sense as there's no such thing as a "primary" network adapter.
You can have a machine connected to multiple networks on multiple adapters. Which one is "primary" depends on which network subnet you arbitrarily consider "primary", and which adapater handles that subnet in the routing table.
The routing table also changes when network status changes, such as when you connect a VPN, or pop a laptop in/out of a dock and switch between wireless and wired networks.