solidworks

Some extrusions in loop in solidworks VBA don't work

。_饼干妹妹 提交于 2019-12-06 14:06:03
I am attempting to run a loop of extrusions in solidworks API using VBA. The height of each extrusion is determined by the brightness of the pixels in a bitmap. For the most part the code works as expected however about a quarter of the extrusions simply don't work. The Sketches are made but the extrusions aren't. I am at a loss as to the reason behind this as I don't see any pattern between the ones that don't work. I ran a quickwatch on the FeatureExtrusion2 and in the ones that didn't work it returned "Nothing" and the ones that did, did not have a return value. Any help at all will be

How do you pass parameters from a VBA script in excel to an external executable (C#) as arguments?

╄→尐↘猪︶ㄣ 提交于 2019-12-06 09:18:46
I have an embedded button in an excel sheet that calls a VBA script. In this script I am reading the current directory, parsing, and using that to generate values to pass string[] args to an external C# executable. I have gone through many iterations of this and it does call the executable, but it appears that the parameters being passed are null(empty) when the C# .exe runs. I am able to use this C# .exe in other programs and pass the arguments, but this VBA script isn't working as expected. I also know that it is passing the correct # of parameters as I don't get an out of bounds exception

Building a C# addin for Solidworks [closed]

陌路散爱 提交于 2019-12-06 02:33:46
It seems quite complicated on multiple sites. What are the proper steps to build a Solidworks Addin in C# with Visual Studio 2017? I'd like to share my experience on building a C# addin for Solidworks 2016 using Visual Studio Professional 2017 and Windows 10. I wish I had such a post to save me time so I think future users could find help into this one. 1. Downloading the C# template for visual Studio and installing it I basically followed the steps provided by Solidworks (requires a Solidworks Customer Portal account) that you can find here : Problem Encoutered : The exe would be extracted

Get thumbnail of any file including SolidWorks on Windows XP/Vista

亡梦爱人 提交于 2019-12-06 00:09:13
问题 There is a lot of build-in ThumbnailProviders inside every installed OS. Due to these providers Windows is able to show Thumbnail of many files. For example Windows Explorer can show content of *.jpg files, but from Solidworks *.sldprt files too (If SolidWorks is installed). But is there any way to get these thumbnails? I´ve tried to manage this using Windows API CodecPack, but I succeeded only on Windows 7. ShellFile shellFile = ShellFile.FromFilePath(filePath); Bitmap shellThumb = shellFile

Pointer callout for SelectById2

…衆ロ難τιáo~ 提交于 2019-12-05 21:53:21
I'm trying to port over some code I wrote in VBA to control Solidworks in to Python. Specifically automating sketch edits. I am having problems using Solidworks SelectById2 in Python. In VBA the following code works fine: Part.Extension.SelectByID2("Sketch1", "SKETCH", 0, 0, 0, False, 0, Nothing, 0) The problem I am having is replacing VBA's "Nothing" value with some Python equivalent. From the Solidworks API Docs, what SelectByID2 is looking for is: SelectByID2(Name, Type, X, Y, Z, Append, Mark, Callout, SelectOption) Where Callout is a pointer to the associated callout. I would prefer to not

SolidWorks的Add-in写入注册表。

最后都变了- 提交于 2019-12-03 04:45:27
SetUp Process 1. Create the Windows Installer setup project and files Create a new add-in using a SolidWorks API SOK template in Microsoft Visual Studio 2005 or 2008. Open the add-in's solution file in Visual Studio. Click File, Add, New Project to open the Add New Project dialog. Expand Other Project Types in Project Types. Click Setup and Deployment in Project Types. Click Setup Project in Templates. Type the name of your setup project in Name. Click OK. Select your new setup project in the Solution Explorer. Click Project, Add, Project Output to open the Add Project Output Group dialog.

达索SOLIDWORKS 2020年新增功能:性能改进

∥☆過路亽.° 提交于 2019-12-03 01:45:31
详图模式和图形加速 新的“详图”模式(如上所示)使您可以在几秒钟内打开图形,同时保持在图形内添加和编辑注释的能力。基本上,该软件使您可以非常快速地绘制图形,而无需在后台显示所有3D模型。 增加速度的部分原因在于,SOLIDWORKS现在还支持用于工程图的高端图形卡。通过利用现代OpenGL(4.5)和硬件加速的渲染功能,SOLIDWORKS可为大型工程图提供更灵敏的实时显示,这意味着在平移或缩放时具有较高的细节水平和更快的帧速率。 Envelope Publisher 假设您提出了一个大型机器组装。过去,如果您在另一个位置或子装配中引用了装配中的其他内容,则它们仅在顶级装配中同时存在。换句话说,您必须将包括所有零件在内的整个组件安装在屏幕上。您可以将任何更高级别的装配中的零件作为信封推入或“发布”到您要使用的子装配中。现在,只要您要处理该部件,就可以直接打开它而无需打开整个顶层部件。这极大地减少了需要打开的组件数量,从而缩短了打开时间,屏幕也不会混乱。 混合仿真网格 当您要进行线性静态分析时,可以创建一个混合网格,该网格在同一模拟算例中的网格中同时包含草稿质量和高质量项目。草稿品质的网格物体的求解时间更快,而高质量的网格物体在需要时可以提供更高的精度,整体求解时间更快。 大型设计审阅编辑 在SOLIDWORKS 2019中,我们允许您在进行大型设计审阅(LDR)时编辑装配

SolidWorks文档管理

微笑、不失礼 提交于 2019-12-02 00:07:15
  SolidWorks文档不同于PDF、Word等独立文件,大部分文档都依赖其他文档,由其他文档组合而成。所以一旦文档存放路径和文档名称有变动,而没有对依赖它的文档进行相应处理,依赖它的文档下次打开时就无法正确显示。 所以建议:如果是已经下发的图纸,需要进行改版变更,既不要改原文档名称也不要去移动文档路径,只是在文档内部内容中做出版本变更标记。 举例:SolidWorks文档通常是代号+名称进行命名,比如“kk-01 支架”,有些公司改版的时候,图省事喜欢把版本号加到代号里面“比如“kk-01A 支架”。现在需要修改,于是零件变成“kk-01B 支架”。假设有一装配体“kk-00 主机”,原本使用了“kk-01A 支架”,支架改版后(文件名称有改动),需要对该装配体处理,以记录新的支架文档名称,为了区分,最好把他也改成“kk-00A 主机”。然后如果有其他装配体用到了“kk-00 主机”,又得进行同样的处理。 难点是要找出有多少文档使用到了“kk-01 支架”、找到后还要逐个处理。 有专业的产品数据管理软件(PDM)可以对其进行管理,但是运行起来太慢。推荐: 使用gitblit(git的服务器版)。开源、免费、优秀、运行速度快、能妥善保留旧版本、协同编辑方便。 基本使用流程:管理员新建一个服务器端文档库的特殊分支,客户端获取这个分支到本地电脑,编辑完成后提交分支到服务器端

SolidWorks 2020新增功能之性能提升

末鹿安然 提交于 2019-11-30 21:33:20
SolidWorks解决方案组合的新功能和增强功能将帮助您最大程度地提高设计和制造资源的生产率,同时使您能够更快地交付创新产品。现在我们很激动地告诉你,三维设计SolidWorks 3D CAD 2020官宣了!令人瞩目的37个新增功能和增强功能终于来了! 现在给大家简述一下SolidWorks 3D CAD 2020新增功能中关于性能提升部分。 一是通过提高工程图,装配体和仿真的性能,加快大型装配体的设计和设计验证的速度。 二是使用新的详图模式立即打开大型工程图,同时仍然能够添加和编辑工程图注释。 三是通过将顶级装配体中的零部件作为子装配体的信封包含在内,可以使用新的Envelope Publisher提高设计速度。 四是使用同时包含拔模和高质量元素的混合网格,可以更快地运行仿真。 以下是具体的性能提升新增功能: 1.SolidWorks Manage 2020中的新增功能-项目管理增强功能 使用流行的格式(例如负载图,PERT图和网络图)可视化项目 优点 让您与项目资源和可交付成果紧密集成 2.SolidWorks Manage 2020中的新增功能-任务模板 创建任务模板来预定义主题,优先级,分配的时间,受让人,任务详细信息和可重复活动的注释 优点 可以快速创建和分配您的下一个任务 3.SolidWorks Manage 2020的新增功能-流程管理增强 引入了子流程