Click here to Skip to main content
14,271,759 members
   

C#

 
AnswerRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
Gerry Schmitz15-Aug-19 4:02
mveGerry Schmitz15-Aug-19 4:02 
GeneralRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
OriginalGriff15-Aug-19 4:12
protectorOriginalGriff15-Aug-19 4:12 
GeneralRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
Richard Deeming15-Aug-19 4:33
mveRichard Deeming15-Aug-19 4:33 
GeneralRe: ZKTeco merge 3 finger print C# with ZKFingerSDK Pin
Gerry Schmitz15-Aug-19 9:26
mveGerry Schmitz15-Aug-19 9:26 
QuestionHow i can convert perl scripts to exe file to use in c#? Pin
Member 1455624211-Aug-19 1:25
memberMember 1455624211-Aug-19 1:25 
AnswerRe: How i can convert perl scripts to exe file to use in c#? Pin
OriginalGriff11-Aug-19 1:28
protectorOriginalGriff11-Aug-19 1:28 
AnswerRe: How i can convert perl scripts to exe file to use in c#? Pin
Richard MacCutchan11-Aug-19 3:32
protectorRichard MacCutchan11-Aug-19 3:32 
QuestionCheck List Box en C# to select View Schedules in Revit from Visual Studio Pin
Member 145554449-Aug-19 9:44
memberMember 145554449-Aug-19 9:44 
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 System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System.IO;
using Form = System.Windows.Forms.Form;
using System.Text.RegularExpressions;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.UI.Selection;
using Application = Autodesk.Revit.ApplicationServices.Application;

namespace Schedules_DuplicateRename
{
    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()
        {
            InitializeComponent();            
        }


        public Formulario_Schedules_Export(UIDocument uIDocument)
        {
            InitializeComponent();
            //pasar parametro de entrada
            uidoc= uIDocument;
        }



        private void button1_Click(object sender, EventArgs e)
        {
            Dispose();
        }                               





        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";           


        }


    }


}

QuestionParse arithmetics in ONE string, e.g. "2 + 5 x 1024 - (32 x 512 - 16 x 14) + 256"? Pin
arnold_w8-Aug-19 23:49
memberarnold_w8-Aug-19 23:49 
AnswerRe: Parse arithmetics in ONE string, e.g. "2 + 5 x 1024 - (32 x 512 - 16 x 14) + 256"? Pin
Eddy Vluggen9-Aug-19 0:19
mveEddy Vluggen9-Aug-19 0:19 
GeneralRe: Parse arithmetics in ONE string, e.g. "2 + 5 x 1024 - (32 x 512 - 16 x 14) + 256"? Pin
arnold_w9-Aug-19 0:43
memberarnold_w9-Aug-19 0:43 
AnswerRe: Parse arithmetics in ONE string, e.g. "2 + 5 x 1024 - (32 x 512 - 16 x 14) + 256"? Pin
OriginalGriff9-Aug-19 0:34
protectorOriginalGriff9-Aug-19 0:34 
GeneralRe: Parse arithmetics in ONE string, e.g. "2 + 5 x 1024 - (32 x 512 - 16 x 14) + 256"? Pin
arnold_w9-Aug-19 0:43
memberarnold_w9-Aug-19 0:43 
GeneralRe: Parse arithmetics in ONE string, e.g. "2 + 5 x 1024 - (32 x 512 - 16 x 14) + 256"? Pin
OriginalGriff9-Aug-19 0:49
protectorOriginalGriff9-Aug-19 0:49 
AnswerRe: Parse arithmetics in ONE string, e.g. "2 + 5 x 1024 - (32 x 512 - 16 x 14) + 256"? Pin
BillWoodruff17-Aug-19 20:01
mveBillWoodruff17-Aug-19 20:01 
AnswerRe: Parse arithmetics in ONE string, e.g. "2 + 5 x 1024 - (32 x 512 - 16 x 14) + 256"? Pin
Ashirwad Satapathi19-Aug-19 0:56
memberAshirwad Satapathi19-Aug-19 0:56 
QuestionNew version of visual studio Pin
Brian_TheLion7-Aug-19 18:55
memberBrian_TheLion7-Aug-19 18:55 
AnswerRe: New version of visual studio Pin
OriginalGriff7-Aug-19 19:15
protectorOriginalGriff7-Aug-19 19:15 
GeneralRe: New version of visual studio Pin
Brian_TheLion7-Aug-19 19:27
memberBrian_TheLion7-Aug-19 19:27 
AnswerRe: New version of visual studio Pin
Swinkaran11-Aug-19 14:43
professionalSwinkaran11-Aug-19 14:43 
AnswerRe: New version of visual studio Pin
Benktesh Sharma14-Aug-19 2:11
memberBenktesh Sharma14-Aug-19 2:11 
GeneralRe: New version of visual studio Pin
Brian_TheLion14-Aug-19 17:55
memberBrian_TheLion14-Aug-19 17:55 
GeneralRe: New version of visual studio Pin
Benktesh Sharma15-Aug-19 2:09
memberBenktesh Sharma15-Aug-19 2:09 
QuestionC# Get IP Address of Primary NIC - A Question Pin
Kevin Marois7-Aug-19 7:28
professionalKevin Marois7-Aug-19 7:28 
AnswerRe: C# Get IP Address of Primary NIC - A Question Pin
Dave Kreskowiak7-Aug-19 7:31
mveDave Kreskowiak7-Aug-19 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.