Error Visual Basic Solidworks 2008
Contents |
Forums3D ContentCentralAdministrationAPI/MacrosComposerData ManagementDrawing and DetailingeDrawingsEducators and StudentsGeneralImport/ExportModeling and AssembliesSimulationSOLIDWORKS Add-InsSOLIDWORKS PCBSOLIDWORKS VisualizeUser InterfaceSOLIDWORKS World Top Ten ListLog in0SearchSearchSearchCancelError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. All Places solidworks visual basic tutorial > API/Macros > Discussions Please enter a title. You can not post a blank message. vba solidworks Please type your message and try again. 8 Replies Latest reply on Jan 3, 2011 10:12 AM by Terry Raymond Microsoft Visual solidworks api help Basic Compile Error: Can't find project or library Cathy Ross Apr 28, 2010 9:24 AM I'm sure this question has been answered somewhere before but I could not find anything. We are upgrading to 64 bit and visual basic autocad Windows 7. When I was testing the new system I tried running the macro we've had for years (created in 2001) and got the message: Compile Error Can't find project or library. The macro was last edited using VB 6. It is a very simple macro that adds some custom properties to our parts that are then added to the drawings.Any suggestions would be helpful. Thanks! 6254Views Categories: API Tags: none (add) This
Visual Basic Catia
content has been marked as final. Show 8 replies Re: Microsoft Visual Basic Compile Error: Can't find project or library Jacob Cordingley Apr 28, 2010 10:27 AM (in response to Cathy Ross) in VB goto tool/references...Look at the list and find where it has MISSING and the re-link write down the file name and remove it from the list the add an new reference and find the file it will be a .DLL or .TLB Like Show 0 Likes(0) Actions Re: Microsoft Visual Basic Compile Error: Can't find project or library Cathy Ross Apr 28, 2010 10:39 AM (in response to Jacob Cordingley) Sorry, I should have mentioned I went to tools/ref and there were no missing Library or projects. The suggestions I found with VB web sites appear to focus on access databases which I am not using. The macro is very simple: Create custom property names and add them to Part Properties. Like Show 0 Likes(0) Actions Re: Microsoft Visual Basic Compile Error: Can't find project or library Jacob Cordingley Apr 28, 2010 11:02 AM (in response to Cathy Ross) record a new marco and just click stop and now copy and past your code in the new marco and run it to see if it works Like Show 0 Likes(0) Actions Re: Microsoft Visual Basic
to the Macro > Introduction Macros in SolidWorks are extremely powerful and useful. They can be however difficult to maintain, especially when upgrading to new versions of SW and requires a good knowledge of SW API and VB/C++. There
Pro Engineer Visual Basic
are also many macros available for SolidWorks, (lenny's SW Macros, 3D ContentCentral Macros, Loronos SW microsoft c++ 2005 redistributable (x64) (installation) solidworks Macro Downloads, SolidWorks Forums - login required, and SolidWorks API Examples - broken, even when logged in) which are particularly helpful to study and use as microsoft c++ 2008 redistributable x64 a foundation to build your own macro. Unfortunately there are very few macros available for Workgroup PDM and some of which seem to get lost, especially links on the SolidWorks website (the sample pdm api project on the main solidworks help https://forum.solidworks.com/thread/33063 website is broken - FAIL). Also most of the active work regarding managing SW data is going towards SolidWorks Enterprise PDM which sits on a SQL server as opposed to a file based DB with Workgroup PDM. SolidWorks Workgroup PDM is a product that comes with SolidWorks Professional and SolidWorks Premium. It allows for revision control of SolidWorks files, and allows multiple people to work on the same SolidWorks project. All SolidWorks files (and http://solidworks.burkesys.com/tag/visual-basic/ other files such as DWG, doc, jpg) gets stored in a main Vault on a central server. There is no direct access to files in the PDM Vault. Access must be through either SolidWorks or SolidWorks Explorer with a PDM Add-In. Files in the vault cannot be accessed directly via Windows Network Share/SMB. As a result interaction with data in Workgroup PDM must be done manually. However here is where SolidWorks Macros and the PDM API comes in. This macro is the first of a few that I am going to write on Workgroup PDM. If your beginning to write macros, I'd recommend starting with this Macro which is a good foundation. The Macro This macro allows a user to copy/save a single specified file from the PDM Vault onto their computer. While this is quite a small task, it is an excellent beginning to learn the SolidWorks PDM API. Download Zip file of the Macro > ' Title of Macro: Save a single file out from the Workgroup PDM Vault ' Further info: http://solidworks.burkesys.com/category/macro/ ' Author: Stephen Burke | www.sburke.eu ' Version: SolidWorks 2010 ' Instructions: Replace "123456.SLDDRW", with the file required. ' Add in "SolidWorks Workgroup PDM 1.0 Type Library" under: Tools - References ' Date: 23/09/2010 Option Explicit Dim swApp As Object Sub main() Dim connection As PDM
Du siehst YouTube auf Deutsch. Du kannst diese Einstellung unten ändern. Learn more You're viewing YouTube in German. You https://www.youtube.com/watch?v=aoXJGKAwhbc can change this preference below. Schließen Ja, ich möchte http://stackoverflow.com/questions/13585342/connect-visual-studio-2010-to-solid-works sie behalten Rückgängig machen Schließen Dieses Video ist nicht verfügbar. WiedergabelisteWarteschlangeWiedergabelisteWarteschlange Alle entfernenBeenden Wird geladen... Wiedergabeliste Warteschlange __count__/__total__ SolidWorks API Stand-Alone Application Artem Taturevich AbonnierenAbonniertAbo beenden107107 Wird geladen... Wird geladen... Wird verarbeitet... Hinzufügen Möchtest du dieses visual basic Video später noch einmal ansehen? Wenn du bei YouTube angemeldet bist, kannst du dieses Video zu einer Playlist hinzufügen. Anmelden Teilen Mehr Melden Möchtest du dieses Video melden? Melde dich an, um unangemessene Inhalte zu melden. Anmelden Statistik 15.697 Aufrufe 36 Dieses Video gefällt error visual basic dir? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 37 0 Dieses Video gefällt dir nicht? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 1 Wird geladen... Wird geladen... Wird geladen... Die Bewertungsfunktion ist nach Ausleihen des Videos verfügbar. Diese Funktion ist zurzeit nicht verfügbar. Bitte versuche es später erneut. Veröffentlicht am 24.04.2013This video demonstrates how to create a stand-alone (.exe) application, connect to SolidWorks and invoke SolidWorks APIs. The sample projects created in VB.NET, C# and C++ using the MS Visual Studio 2008 Professional (similar steps may be used in other versions of Visual Studio including the free Express edition).Feel free to join the LinkedIn SolidWorks API Education Group: http://www.linkedin.com/groups/SolidW... Kategorie Wissenschaft & Technik Lizenz Standard-YouTube-Lizenz Mehr anzeigen Weniger anzeigen Wird geladen... Autoplay Wenn Auto
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up connect visual studio 2010 to Solid Works up vote 1 down vote favorite I have created form in visual sutio 2010 and added button in that when user clicks the button it should open Solid Works tool so code is : Imports SolidWorks.Interop.sldworks Imports SolidWorks.Interop.swconst Imports System.Runtime.InteropServices Imports System Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim swDoc As ModelDoc2 = Nothing Dim swPart As PartDoc = Nothing Dim swDrawing As DrawingDoc = Nothing Dim swAssembly As AssemblyDoc = Nothing Dim boolstatus As Boolean = False swDoc = CType(swApp.NewDocument("C:\ProgramData\SolidWorks\SolidWorks 2012\templates\Part.prtdot", 0, 0, 0), ModelDoc2) swDoc = CType(swApp.ActiveDoc, ModelDoc2) boolstatus = swDoc.Extension.SelectByID2("Top Plane", "PLANE", 0, 0, 0, False, 0, Nothing, 0) swDoc.SketchManager.InsertSketch(True) Dim skSegment As SketchSegment = Nothing skSegment = CType(swDoc.SketchManager.CreateCircle(-0.020947, 0.005368, 0, 0.012306, -0.016627, 0), SketchSegment) boolstatus = swDoc.EditRebuild3() End Sub End Class but unfortunately i am getting error in importing please help me error are : imports does not contain any public member or cannot be found visual-studio-2010 visual-studio-2008 solidworks share|improve this question edited Nov 27 '12 at 13:48 JcFx 7,87942859 asked Nov 27 '12 at 13:30 M_S_SAJJAN 771414 Remove CAPS please, and precise which error you get –Steve B Nov 27 '12 at 13:32 @SteveB please check the edited qstn –M_S_SAJJAN Nov 27 '12 at 13:35 please change the question title to something meaningful, and include Solid Works –Antonio Bakula Nov 27 '12 at 13:41 @AntonioBakula edited thank you –M_S_SAJJAN Nov 27 '12 at 13:44 @jcfx pleas