Search the Community
Showing results for tags 'visual basic'.
-
Hi Everyone, I am trying to get this script to work but I keep getting error messages that say sendkeys.vbs is an unknown variable this is the script select item.cid case 61, 4 sendkeys.vbs "maskview {ENTER}" Endselect I've heard that a lisp could do this but my boss doesn't want me using lisps because loading them in each drawing is too inconvenient. Does anyone know why the sendkeys command isn't being recognized? Thanks, -Fracture
-
Hi all, I'm currently using AutoCAD 2014. I'm use to using AutoCAD but have never used VBA or AutoLISP before. Really just found out about them from doing some research on the internet and hoping for some help with my dilemma. I have a floor plan already drawn and each individual room already has a separate hatch created as a block with a unique identifier. What I would like to be able to do is somehow make the layer of the block change to represent the percent completion of each room. I would ideally like to just be able to make an Excel spreadsheet that contains in column A the block title like Kitchen, Bath Room 1, Living Room, etc. and column B would contain the layer I want to move it to. So when I change column B from 20 to 30 the layer updates automatically. A couple different people will be inputting to the spreadsheet which is why I want it to be able to the update automatically when needed. My floor plan contains about 60 different spaces (blocks) and has about 10 different colors (layers) to represent the percent completes. I'm not really sure how to go about this but I'm very much willing to learn. Eventually the drawing will grow to have over 300 individual blocks and around 12 layers. So you can see the amount of effort it would save versus selecting each block and changing it's layer individually. Thanks, JMB
- 5 replies
-
- layer change
- excel
-
(and 2 more)
Tagged with:
-
Map 2013,calling vla-GetInterfaceObject to Visual Basic 6.0 dll on Windows7 64 bits
marbile posted a topic in .NET, ObjectARX & VBA
I have a Visual Basic compiled ActiveX dll, (call marVbUtils.dll, with a lot of map utilites) written in Visual Basic 6.0. It works fine in XP with Map 2009 There, I connect with the ActiveX dll from visual lisp, like this: (vla-GetInterfaceObject (vlax-get-acad-object) ""marVBasic.marVbUtils") and get the com object with no problem (in XP). Now, I am migrating to Map 2013 64bits (in Windows 7 64bits) I managed to install Visual Basic 6.0 on the Windows 7 64 bits, and nicely compile the same dll (changing some references to the new Autocad Map) Then I register the dll with system32/regsvr32, for the 64 bits, AND also with syswow64/regsvr32 for the 32bit implementation. But... when trying to get the interface from lisp, as in (vla-GetInterfaceObject (vlax-get-acad-object) ""marVBasic.marVbUtils") it returns: "Automation Error. Problem in loading application" (I have a lot of work done in Visual Basic 6.0 since map 2001, and migrating it means a big big time consumming issue, like months..., or ...forever) I am afraid of guessing that it is not possible at all to run in 2013 64bits, a dll compiled in Visual Basic 6.0. But before i commit suicide i want to take a last chance to save my life in this forum. If anyone knows how to migrate a Visual Basic 6.0 dll to use in Windows 7 64bits with Autocad Map 2013 64 bits, please let me know before its too late. Thanks anyway!- 1 reply
-
- visual basic
- vb6
-
(and 3 more)
Tagged with:
-
Hi everybody, should anyone help me converting this vb code to vlisp? Public Declare Function LoadKeyboardLayout Lib "user32" Alias "LoadKeyboardLayoutA" (ByVal pwszKLID As String, ByVal Flags As Long) As Long LoadKeyboardLayout "00000409", 1 End Function any help is greatly appreciated
- 7 replies
-
- visual basic
- user32
-
(and 2 more)
Tagged with:
-
Hi All, is it a way to use vba code directly from within Visual LISP? Assume that we use this visual lisp code: (vla-addcustominfo (vla-get-summaryinfo (vla-get-activedocument (Vlax-get-acad-object)) ) "Key" "Value" ) Is it possible to use: ActiveDocument.SummaryInfo.AddCustomInfo "Key" "Value" inside visual lisp program?
- 3 replies
-
- visual basic
- vba
-
(and 1 more)
Tagged with: