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??
BTW this issue occurs in any MS office program when the VB.Net (or even VBA) is processing information.Example: In Excel, a worksheet is displayed on the screen. I start either, a VB.Net or VBA procedure and within 30 seconds the Excel worksheet (previously displayed) blanks out. In both VB.Net and VBA,ScreenUpdating = False. My expectation is that the previously displayed screen would stay static as if I left my desk to get a cup of coffee; came back and the same ole Excel worksheet was still there?Of course, setting VBA Screen Updating = False accomplishes two goals: 1) speeds up processing and 2) saves the user from seeing unnecessary "garbage-processing" steps.Why does VBA or VB.Net ScreenUpdating = False not freeze the screen at the time of its invoking?
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?
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 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 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 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.
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 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.
I have a program that is able to print selected drawings to a printer near the person who requested the drawing. recently we updated from autocad 2008 and inventor 2008 to autocad 2010 en inventor 2010. With opening of inventor 2010 I don't have any problems. I'm usung visual studio 2005 I open autocad with the following text:
Now I'm creating at app in VB (Microsoft's, Visual Basic 2010) which will be in full screen but I want to know if I can put all my content in the centre of the screen. At the moment it's at the far top, left of the screen. When the screen size varies I want it will stay in the middle for all shapes and sizes. Like :
I have written an application that loads a form - frmCad as well as AutoCad. It does this via a class which detects when AutoCad quits.
Friend Class CadApp Private WithEvents AppObject As AcadApplication... Private Sub AppObject_BeginQuit(ByRef Cancel As Boolean) Handles AppObject.BeginQuit RaiseEvent Quit() End SubEnd Class
My main class loads frmCad as well as CadApp.
Public Class Cad Private WithEvents frmCad As CadForm Private WithEvents app As CadApp... Public Sub ShowForm() If frmCad Is Nothing Then frmCad = New CadForm frmCad.Visible = True End Sub... Private Sub app_Quit() Handles app.Quit frmCad.Dispose() frmCad = Nothing .... End Sub
When I debug the program, it stops at frmCad.Dispose()The program continues to execute, but all the code after it fails to work.Looking more carefully I get an error message which contains:-Cross-thread operation not valid: Control 'Autocad' accessed from a thread other than the thread it was created on.
I'm trying to get coordinates on my screen by holding down my mouse and placing it over different parts of the screen. I'm using the mouse_up and down events in a button to kinda simulate the mouse being held down. The problem I'm running into is that anytime I go past the button's bounds, the coordinates I want stop. This is what I have so far:
I have created a GUI and have set my 'Form1' window to match that of my PC monitor ( 1280x1024 ). However when i move the project to work on my netbook, the screen on my netbook is only 1024x600 and half my GUI is missing. Is there any way i can adjust my settings so that my 'Form1' GUI will auto adjust and display in full on both screen when i move the project back and forth?
I'm coding a splash screen in VB.Net that displays for 3 seconds then shows a login screen. But the splash shows up even when login shows and I have told the splash to hide. Here is my code:
I send a message a while ago and no one answerd, how can I draw directly on the screen (not on a specific window) just on the screen, neither if it's on the desktop or anything else.Is there is any option to bring up the switch between applications window (Alt + Tab), I don't want to use sendkeys because the user need to keep the key down and I just want the user to select the application with his mouse.
im about to develop a small appliacation for a bet system, which needs 6 screens, each screen will be a touch screen for each client... the application will be running in one computer only just with 6 screens. my question is does anyone knows how to control each screen separately?. somethign that would allow me to output each forms in different screens would work fine.
I am making a program that will put a black mask over an application (like a full screened game). This black mask will fade in and out, depending on certain criteria. Is there a way I can do that with VB? It's to help me dim my monitor without having to push anything.
I wanted to make a screen recorder (not screen capture) program, but I am not entirely sure how to get it started. I have seen many videos and things on how to make one, but all of these just take multiple pictures and then don't compile them into a movie file, and I don't want to take many pictures (unless that is the only way possible.) I am using Visual Basic 2010 Express and I have looked at the Windows Media Encoder, but I can't seem to figure out how to use/implement it (yes, I have downloaded and installed it.) Maybe I can use some kind of ActiveX control?
In my project is a form called "Secondary". It is suppose to appear on any and all screens (if any) other than the primary screen. The following code seems pretty logical to me, but Secondary is not appearing on any screen.