I am trying to check in a document and I keep getting theerror "Object Doesn't support this property or method" The document does get updated in the vault. What and why is thiserror being thrown. pDoc = connection.CheckIn(MyWorkingPath + Part.Name, Part.Project,Part.Number, Part.Description, _ "Centering View", PDMWorks.PDMWRevisionOptionType.Default, " ",Part.GetStatus(), False, Nothing) SolidworksApi macros
SOLIDWORKS User Forum
12 anni fa
I am creating a batch macro that will create a PDF and a DXFand tell me in Excel how many sheet are in a drawing for whateverdrawings I specify. However, I only want a DXF of the last sheet. I know the command to return how many sheet there are. How do Ispecify that I want to save the last sheet as a DXF?
SOLIDWORKS User Forum
12 anni fa
Hi everyone, Just a reminder that voting for the SolidWorks World 2014 Top Ten list ends on Wednesday January 15, 2014. Please be sure to submit your votes as soon as possible to have your opinion heard. Please click [HERE]
SOLIDWORKS User Forum
7 anni fa
Hello Friends, I am working on large assembly in there is more than 250 parts, to apply material manually its taking time. Is there any macro to apply material in assembly to all parts or any short cut method. SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Does anybody know the Difference in Solidworks PDM API Library, 1.Interface, 2.Enumerations 3.Structure SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Option Explicit Dim swApp As SldWorks.SldWorks Dim swModel As ModelDoc2 Dim sketch As sketch Dim feature As feature Sub main() Set swApp = Application.SldWorks Set swModel = swApp.ActiveDoc swModel.SketchManager.InsertSketch True Set sketch = swModel.SketchManager.ActiveSketch Set feature = sketch MsgBox feature.Name End Sub ' i want to get the name of active sketch/ feature; SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Hi, I will be writing and sharing series of articles related to the fundamental concepts of SOLIDWORKS API. I will start with Assembly Context. This article explains what is assembly and model context, how to edit part in the context of the assembly, how to convert the pointers between contexts. Please let me know if you have any questions.
SOLIDWORKS User Forum
2 anni fa
I don’t believe you can as of PDM 2018. For required entires we add (req’d) next to the label and make it a different color. Beginning with PDM 2018 the user receives a message with detailed information on why the transition failed. SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
All my macro's were a bit disorganised. As time allows I'm working through them and posting up anything that may be useful. I'd welcome any suggestions and feedback. I'm really enjoying learning the API.
SOLIDWORKS User Forum
2 anni fa
Macro to check scale of all views (on active or all sheet) of active drawing and set them to use sheet scale (in case of parent views) and use parent view scale in case of projected views. The macro would skip section views and detail views. SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
nestingworks mm out inch problems edrawnig How can I convert mm SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
FYI- I couldn't figure out why some of my macros ran differently on different PC's. Finally I found that swmodel.gettitle gives different results based on windows settings. For example: PC1 - ABC123 PC2 - ABC123.SLDASM I have read that some people prefer to use swmodel.getpathname instead and strip out the file name from that string instead. SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Hi, In some cases SOLIDWORKS API function is not available in the SDK. This blog post explain additional options of calling SOLIDWORKS function from the code in case API is not available: SOLIDWORKS API Command Doesn't Exist? Need plan B Thanks, Artem SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Hi, I have published a blog post which is explaining the Basic Concepts of Automating Drawings Using SOLIDWORKS API This includes explanation and code examples for drawing sheet and drawing view contexts, transformation of coordinate and entities between context, dimensioning techniques. Thanks, Artem SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Hi, I have published a blog post Storing Data In SOLIDWORKS 3rd Party Storage And Store which has in-depth explanation of 3rd party storage and 3rd party storage store, difference between them and how and when to use them. It also contains several examples of reading and writing the data using SOLIDWORKS API and SOLIDWORKS Document Manager API. Thanks, Artem SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Hi, I have published a blog article which explains how to call functions of the add-in from another applications (macros, stand-alone, scripts or other add-ins). I.e. this enables adding yur own APIs to the add-in. Follow the link for more information and code examples: How To Call Functions Of SOLIDWORKS add-in Thanks, Artem SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Hi, In this blog post: Automatically Run Macro On Model Open I explain two ways and provide source code to automatically run VBA code when model is opened Using Events Using Macro Feature In both cases it is not requried to create add-in or install any additional software. Thanks, Artem SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Hello, We have SolidWorks drawings that have tables spread across different sheets. Wondering if there is any macro that will read the drawings and extract the table information and copy into excel spreadsheets automatically. Thanks, Ananth SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Hi, I have published SOLIDWORKS Macros: comprehensive guide blog post which explains all the important aspects of using macros in SOLIDWORKS. It compares different types of macros: VBA, SWBasic, VSTA, VSTA3 macros. This can be useful both for macro developers and SW users who are using or want to use macros in their job. Thanks, Artem SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
SOLIDWORKS User Forum
2 anni fa
I'm trying to write a macro that creates a note, but I don't want to define a position. I want the note to be attached to the cursor for the user to place it where they want (just like if they were inserting a note manually). The effect shown in the following image GIF SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
I am looking to show the value in bubble tip when mouse over on graphics area in my add-in. Tried by using ShowBubbleTooltipAt but it will show only one bubble tip at a time. How to show multiple bubble tips for multiple mouse clicks. Is there a better solution?
SOLIDWORKS User Forum
2 anni fa
I was wondering if there is a macro existing for applying a part appearance to a part. I would like to apply an appearance that is in the library Appearances -> Painted -> Car -> White I know i have seen macros that you specify the RGB values for colors but i do not recall seeing anything like this. SolidworksApi/macros
SOLIDWORKS User Forum
2 anni fa
Hi there! I wonder if anyone can help me here. I'm looking for a Solidworks macro that can save a part as IGES with Coordinate System in a specific folder. By the way, i don't know if that's important but i'm using Solidworks 2014 SP 5.0 Thanks.
SOLIDWORKS User Forum
2 anni fa