If FolderBrowserDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
Dim myFileDir As New System.IO.DirectoryInfo(FolderBrowserDialog1.SelectedPath)
For Each myFiles As System.IO.FileInfo In myFileDir.GetFiles("*.*")
DataGridView1.Rows.Add(myFiles.Name)
Next
I am able to get the files.I have 2 columns "filename" & "readonly"
a) how can I filter just .dwg
b) how can I get readonly a tag that says "yes" into datagridview, so I can see which files are set to readonly.
c) I will be launching the list of files through autocad (I know the process.start method to launch, is there any way I can launch then via desktop shortcut, the reason I ask is there is a script file attached to the shortcut, which amends the drawing when autocad is launched:
I have a VB.NET project in which it would be extremely helpful to the users if they would be able to print multiple .DWG files at the same time without manually opening each one and clicking on the print button.
Is this possible to do in VB.NET using the Autocad API's?
I am making a Visual Basic program that launches Halo CE, and two other programs at the same time. The two other applications load fine but when it tries to launch Halo CE an error windows comes up saying that there is missing files which there is not. I use "Process.Start("C:Program Files/Microsoft Games/Halo Custom Edition/haloce.exe")". I have tried to copy and paste numerous files into the "Debug" folder from the Halo CE folder but there is one file that is demanded but is simply not on my computer. I would also not want to put programs files in the debug folder because I wish to publish this to "Halo Maps."
Im a newb so if I word this a little funny im sorry. I am using VB.net 2005 developer edition and Im trying to import a layout of a conveyor belt system onto a screen. We will be using the screen to show status on motor overloads and devices attached to the conveyor. For example here is a jpeg of one of the screens I would like to make:
We will have to change the color of the symbols when the are active or non active. Also, we want to have the ability to scroll over the symbols and have a message box pop up and tell the status. I am just trying to figure out the most logical way of doing this. I can change the file format of the drawing to Jpeg or bitmap or even PDF.
problem statement is to open the image file on form & edit the image in same form & to set the properites of the object in that image when clcik on the image & then provide the edited image to controller which will run a robo on it Input image is autocad factory map
I also wanted to know how can i get the object of autocad files as they have table block structure inside their file format i wnat to store these image so what should i use??
I am using AutoCAD 2012 and the .NET API. Can someone help me how can i loop through the document objects of all the open documents? i am trying to do something like the code below..I have this question on Autodesk Forum too.[code]...
I'm currently developing an AutoCAD 2008 Addin in Visual Basic (.Net 3.0, VisualStudio 2010).I'm able to define my own command and I want the user to be able to cancel my command by hitting the ESC key.In AutoCAD 2010 or higher there exists the
HostApplicationServices.Current.UserBreak
method. But not in ACAD 2008. how the user may be able to cancel my command?
I am trying to open a dwg file in vb.net forms without opening a autocad application But tere occur a problem : The specified module could not be found. (Exception from HRESULT: 0x8007007E).Also i want to edit the image in dwg file i.e most probably a factory layout & store information about object used in layout to figure out the best possible way to reach from source to destination.This factory layout map is input for a robot which will move according the path avaiable.
I have made a userform in AutoCAD, I made some buttons where I want to start software from.The programm I want to run is started by an VBScript from the manufacturer.When I double click the VBScript the program starts, but trying to execute if from a button_click on my AutoCAD userform it returns that I am missing MSVCR70.dll files.The missing file is in the folder of the program I want to run, aswel in my System32 folder.I tried to execute it the next ways:
Process.Start("C:WINDOWSsystem32cscript.exe", """C:Program Files (x86)ProgramRun.vbs") and
Process.Start("C:Program Files (x86)ProgramRun.vbs") What is going wrong ?
I am trying to create an autocad drawing in visual studio with the code :
Dim strTemplatePath As String = "C:\acad.dwt" Dim acDocMgr As DocumentCollection = Application.DocumentManager Dim acDoc As Document = acDocMgr.Add(strTemplatePath) acDocMgr.MdiActiveDocument = acDoc
However, when I try to run the program I get an filenotfoundexception and the program asks me to verify if the file exists in the specified location. The file does exist in the specified location.
I'm trying to write a program. This should be a simple task for most of you, but I have taken one class of programming back in High School so I'm kinda lost.
The program needs to do the following: -Open AutoCAD File -File=>Export=>PDF=>Save -Close AutoCAD
If possible to select a whole folder full of these AutoCAD drawings and have the program run a loop until all the files in the folder have been exported into a pdf file.
<%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html>
[Code]....
I'm using ASP.net (just learning) with VB. I can't seem to get Javascript code to work with ASP VB code. My main problem seems to be that .js files are not loading. In the example, basic.js just contains a function click() that calls an alert() message. How do I get .js files to load with ASP code?
I have been using Visual Basic for Applications (VBA) in MS Office packages and in Auto CAD. The Visual Basic for Applications (VBA) engine is no longer provided with AutoCAD OEM installation media, but it supports VB.net.I am bit confused of Visual Basic 2010 and VB.net Which version shall I go for to learn VB.net.
How I can change Autocad information inside block Attributes(I think on width, rotate, text style, layer, height..etc ) in visual basic? For example, We have some block with 2 attributes and I want replace width factor.
I'm starting with VB 2010. I have an Excel file with a lot of info (dates, kilometers, price, name, etc.). I have been reading about that but I don't do it right. I want to now If someone of you have some code to study or any other resource.
i tried to load .swf or .flv files in vb 2008 i can load image files in it by typing picturebox1.image = my.resources.nameofimage but if i try to type AxShockwaveFlash1.Movie = My.Resources.nameoffile
I'm making a simple app that will need some DLLs that I'm using, but I don't want them to be in the same place as the main exe.How can I make my app to load these dlls from a specified folder, like %mainappfolder%filesdlls ?
i want to write a code that user can drag and drop an icon to layout which this layout become consist of coordinate (x,y) and when icon was dropped to layout by right click appear a menu.
let's say I have 5 DLL files that are each a partial class, that they should form together... Is there a way I could load these 5 files into 1 assembly object ?
I apologize if this is a rudimentry question, but I have an application that makes several calls to several .dll's. I notice that the first time the function is called, it seems to take a very long time (about 10 seconds) for the functions to complete.
I accomplished the task of creating a picture viewer that finds pictures in a directory,adds them to a listbox, and displays them in a picturebox at intervals using a timer. Now, I am trying to achieve a similar task using an array in a continuous timer-display fashion so that after the last image the process starts over from the first image again
Public Class Form1 im file(5) As System.IO.File Dim num As Integer
I have a problem when trying to show details of XML file by choosing an item from Combobox. I have two XML files, called Employee.XML & Subject.XML. The format is like below
The Combobox contains Employee and its Position also (eg: A1 - IT professor). When I choose an item in here, its Subject details will automatically show in Textbox (one EmployeeID can have many subjects). I cannot use Combobox.SelectItem because I already set Option Explicit On & Option Strict On. I also make EmployeeID by ascending coming up with its position. How can I show details in TextBox by using Subject.XML? I tried many methods but none can work properly.
I have in my form 2 RichTextBox , one Listbox , one OpenFileDialog and one Button . In those 2 RichTextBox I would like to load two (*.RTF) FILES .
Application Steps :
1- When I click the button , an OpenFileDialog open .
2- I choose those two files (*.RTF) and when I press the OK in OpenFileDialog, the path of those two files are written in the ListBox as Items.
3- After getting the path of those two files , I would like to load them into those two richtextboxs .
The problem is that I don't want to specify the richtextboxs names in order to load the files . What am I saying ? I.E : I don't want to use that code : "RichTextBox1.Loadfile(Listbox1.items.item)" When I debug my application : everything goes well , only when the listbox items are loaded in the richtextboxs control I get only one file loaded on those two richtextboxs. Right Now I have written these codes :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click OpenFileDialog1.Filter = "RTF Files (*.rtf) |*.rtf"
I'm having one basic aspx script that needs to load some "plugins". Every plugin has its own settings and it should perform different logics. What i'd do in php is create a class for each plugin, load that class, pass the settings file to it and call some method on that class that would give me some output. But is it even possible in vb.net? I'd need to have multiple files with multiple classes, load those files, depending on the plugin name and call some method on them to parse that plugin's settings.
I am creating a program that uses XML files and saves them automatically when the user updates information. When I have XElement.Save("Name.xml") it saves the XML file in the same directory as the EXE. What I am trying to do is allow the user so select the location of the XML. Also is loading XML files through the loaddialog box basically the same way as XElement.Load("Name.xml")?