Solidworks макрос ошибка

Menu

人間の創造性と技術の進歩は、設計者が 3D 設計の可能性を最大限に引き出す 2 つの重要な要素です。 人工知能 (AI) は、設計者やクリエイターに刺激的な新しい可能性をもたらします。 AI 主導のジェネレーティブデザインも、AI 支援によるモデリング ツールやワークフローも、設計者がイノベーションの限界を押し上げるのに必ずや役立つと思います。 これらの革新的なテクノロジーは、接続された膨大な量のデータと、つながっているユーザーの収集された知識およびノウハウの活用に依存していると考えます。

14 hours ago

After teaching 1000’s of students and writing about SOLIDWORKS for over 25 years, David Planchard, emeritus WPI, is exploring the 3DEXPERIENCE platform. Through the SOLIDWORKS and 3DEXPERIENCE Simulation Lesson series, David helps educators understand 3DEXPERIENCE Simulation fundamentals through simple examples. In this lesson learn the proper workflow to upload a SOLIDWORKS part to the 3DEXPERIENCE platform and perform a Simulation study using the Structural Model Creation App. Open a

SOLIDWORKS EDU Blog

18 hours ago

Having a great design tool such as SOLIDWORKS is one thing, connecting your data to the cloud-based 3DEXPERIENCE platform takes it to a whole new level where you can easily store, manage, and share your data. 3DEXPERIENCE SOLIDWORKS, the “connected” version of the SOLIDWORKS you know and love, enables you to connect your data to the platform and take advantage of those capabilities. We know your top priority is design, so throughout the year we work on making your workflow faster and easier, all

SOLIDWORKS Blog

1 day ago

9月13日に発表されたiPhone 15シリーズでは、 充電やデータ転送に使用するコネクタがLightningコネクタからUSB-TypeCコネクタに変更されるらしい。Apple社製製品のコネクタが特殊なため、他社製のそれを借りることができず、充電ケーブルを忘れると大変なことになった経験から、充電ケーブルだけは携帯することが習慣になった。そしてこのケーブルが良く壊れると感じる人は少なくないだろう。比較するのはおかしいかもしれないが、家電の差し込みプラグはそんなに小さい金属ではないにも関わらず、コンセント(プラグ受け)から外す時の考えられない引き抜き方向と、必要のない大きな力の作用のために、曲ってしまい差し込みづらくなるし、引き抜きづらくなる。

SOLIDWORKS JAPAN Blog

1 day ago

Worum geht es? Erhalten Sie einen umfassenden Einblick in die Welt des 3D-Designs und der Fertigung mit SOLIDWORKS und CAM. Wann? Am 29.

SOLIDWORKS DEUTSCH Blog

2 days ago

Itaminas Comércio de Minérios of Sarzedo, Brazil, is a world-class leading provider of equipment and services associated with the mining and extracting of iron ore. Since 1959 the company has grown by investing in technological improvements and updating its processes to ensure large-scale production that meets growing market demand. The company’s equipment currently produces roughly 6.5 million tons of iron ore annually. Itaminas uses SOLIDWORKS® to develop and engineer its products.

SOLIDWORKS Blog

3 days ago

Want to learn how to create expert-level mechanical assemblies, with an emphasis on mechanical mates, inside SOLIDWORKS? YouTube influencer and 3D printing whiz @JBVCreative joins us on LIVE Design to show us tried and true techniques from his channel on how the real world and ‘CAD’ world compare and contrast, with a focus on physical dynamics, motion testing, and much more. #solidworks #mechanical #3dprint JBV Website: https://jbvcreative.com/ JBV Instagram: https://www.instagram.com/

YouTube

5 days ago

Want industry-grade tips on design-thinking, simulation, and virtual prototyping from a lead mechanical engineer, who works at one of the most recognizable brands in the world? Dhanachezhian Duraikannu (Lead Mechanical Engineer @ GE Healthcare) joins us on LIVE Design to educate us on what he’s learned in the field when it comes to these topics, using software like SOLIDWORKS Flow Simulation, which help guide important design and engineering decisions affecting many across the globe. Episode

YouTube

5 days ago

Learn how to design a sink with SOLIDWORKS xShape, found in 3D Sculptor on the 3DEXPERIENCE platform. *Download the files needed to follow along with this tutorial using this link:* https://www.solidworks.com/xShapeTutorials-Sink xShape is a next-generation subdivision modeling tool that runs entirely in your browser. It takes a freeform approach to creating complex shapes and surfaces. You can design 100% in the cloud or seamlessly integrate your xShape models with your SOLIDWORKS designs.

YouTube

5 days ago

In this very special, on-location episode of Manufacturing Live, SOLIDWORKS Manufacturing expert Mike Buchli sits down with David Wallace, CNC Manager at Speedway Motors, in Lincoln, Nebraska, to talk about the ways in which their organization approaches design, testing, prototyping and production, all while running America’s Oldest Speedshop online! The interview takes place directly on the shop floor, in the middle of all the action of the plant. After discussing the type of work Speedway

SOLIDWORKS Blog

6 days ago

地球温暖化が進む中、誰もが環境に配慮する責任を負っています。 製品を生み出す企業には、環境に優しい製品をデザインする方法で変化をもたらすという、さらに大きな責任と機会があります。 弊社のお客様はこのことをよく認識しており、より環境に配慮することに間違いなく注目しています。 SOLIDWORKS は、より持続可能で革新的であること、そしてもちろんエクスペリエンスを生み出すことなど、お客様の目標を達成するためのツールを提供することが最優先事項です。

SOLIDWORKS JAPAN Blog

6 days ago

Annotating your drawings is as old as drafting itself. There’s just no way to fully convey your design intent without adding verbiage. You have two options for adding text in DraftSight; the very basic SimpleNote and the highly functional Note

DRAFTSIGHT Blog

6 days ago

Annotating your drawings is as old as drafting itself. There’s just no way to fully convey your design intent without adding verbiage. You have two options for adding text in DraftSight; the very basic SimpleNote and the highly functional Note entity.

DRAFTSIGHT Blog

6 days ago

Since the inception of SOLIDWORKS Electrical, the Environmental Archive function has allowed users and administrators of SOLIDWORKS Electrical to back up their vital data for restoration. As of SOLIDWORKS Electrical 2021, your team can automatically use Windows Task Scheduler to set and run the archive in the background without interruption. (See #1 feature in this blog). In this guide, we’ll go over the options and steps for setting up automatic archiving on your Electrical Server. Setting Up

SOLIDWORKS Tech Blog

6 days ago

Dies ist die Übersetzung des englischsprachigen Blogbeitrags von Chris Pagliarini, Product Portfolio Manager for SOLIDWORKS Bedeutet künstliche Intelligenz (KI) das Aus für Konstrukteure? Diese Frage wurde mir kürzlich in einem Gespräch über KI und maschinelles Lernen gestellt. Meiner Meinung nach lautet die Antwort nein. Was diese Technologien definitiv nicht ersetzen können, ist die Kreativität des Menschen.

SOLIDWORKS DEUTSCH Blog

7 days ago

Our friend and SOLIDWORKS Master Teacher, Patrick Haley shared with us the The Watermaster as part of his library of SOLIDWORKS Tutorials. These SOLIDWORKS tutorials from Cuda Country are certain to bring smiles on your students’ faces. Try this solar project in your favorite bird bath. The one and only Bird Bath Solar Fountain Pump Water Jet Boat!

SOLIDWORKS EDU Blog

7 days ago

The SOLIDWORKS Community contains some of the most passionate and creative people in the world. Designers, Engineers, Makers, Analysts, Machinists, and more use SOLIDWORKS to bring their ideas to life with an accurate and realistic 3D file. This community has people in Aerospace, Infrastructure, Life Sciences, Transportation, High-Tech and much more. These individuals are the architects of tomorrow, designing a world that is smarter, more efficient, and truly transformative.

YouTube

7 days ago

Community Library

3 hours ago

Community Library

1 day ago

Community Library

1 day ago

Community Library

1 day ago

Community Library

1 day ago

Community Library

1 day ago

Community Library

1 day ago

16 часов назад, Simlion сказал:

Строка выделенная желтым есть. А вот что с ней делать?

В предыдущей строчке для переменной strTemp берётся файл шаблона выбранный в программе как по умолчанию, но у вас вероятно такой шаблон не настроен:

Инструменты-Параметры…-Настройки пользователя-Шаблоны по умолчанию и вероятно стоит выбрать Всегда использовать шаблоны по умолчанию.

Так же возможно стоит указать путь к шаблонам чуть ниже Местоположение файлов, для элемента в списке Шаблоны документов.

Можно при возникновении ошибки навести мышку на strTemp  (или через контекстное меню по правой кнопке мыше AddWatch…) и убедиться в показанной всплывающей подсказке что там путь не верен или вовсе ни чего нет.

Так же можно навести мышку на swDefaultTemplateDrawing и если подключена библиотека констант (меню Tools-References… и библиотека Solidworks #### Constant Type Library, где #### — номер вашей версии программы) для программы, то там будет 10, а если нет, то скорее всего 0.

Have you ever ran into a situation where your SOLIDWORKS Macro is not running? Or it looks like it runs but nothing happens and it doesn’t give you an error message?

The most common reason for this is that you’ve recently performed an upgrade on your SOLIDWORKS systems and the macro was created in an older version of SOLIDWORKS.

Use Case:

  • User Created the macro in SOLIDWORKS 2016
  • Performed an upgrade to SOLIDWORKS 2019
  • Macro does not run anymore and doesn’t give any errors

Approach:

  • Launch up the Macro in Edit mode. Ensure that you have access to the code (some code may be password protected – Check with the developer of the Macro)
    • Open SOLIDWORKS > Tools > Macro > Edit > Browse to the Macro Location
  • In the VBA Editor Window, Navigate to Tools > References and update the references seen below to the 2019 version.
    • SldWorks 2016 Type Library TO 2019
    • SOLIDWORKS 2016 Constants Type Library TO 2019
    • SOLIDWORKS 2016 Commands Type Library TO 2019

SOLIDWORKS Macro 2016 References

SOLIDWORKS Macro Not Running

SOLIDWORKS Macro 2019 References

Run the Macro and it should run as expected.

Learn more about SOLIDWORKS Macros/API

Javelin provides SOLIDWORKS VB for Applications and SOLIDWORKS API training courses, which you can take live online, or in one of our Canadian classrooms. Check our schedule to learn more.

В последнее время часто встречается ошибка Windows, которая приводит к неработоспособности или ошибкам в Solidworks. К примеру: не загружены часть аддонов, не работают макросы (нет возможности их отладить или нельзя выбрать метод при назначении кнопок). Часто можно встретить сообщение с ошибкой

Для исправления ситуации нужно:

  • добавить в реестр информацию из файла RunBeforeRepair (просто щёлкнуть по нему 2 раза и согласиться) СКАЧАТЬ
  • запустить исправление установки Solidworks (вставить диск, хоть реально хоть виртуально, запустить установку, выбрать «Исправление индивидуальной установки»)
  • после окончания добавить информацию из файла RunAfterRepair (просто щёлкнуть по нему 2 раза и согласиться) СКАЧАТЬ
  • перезагрузиться

Errors when running downloaded SolidWorks macros (Visual Basic 6) can be caused by many different issues, depending on the macro and which version of SolidWorks being used.  Here are some general points that may help.

Reference Libraries
Check reference libraries associated with the macro. These can be accessed by opening the macro through SolidWorks API editor (edit macro function), then going to pulldown Tools>Reference Libraries. If any of the listed libraries have the word MISSING in front of them, remove their check mark. You may need to replace it with a similarly named reference library that is included on your system. For example, if “SolidWorks 2008 Object Library” is missing and you are running SolidWorks 2007, then look for and activate the library named something like “SolidWorks 2007 Object Library”. SolidWorks may be able to do this automatically, but on many computer systems, you will need to manually make this edit, particularly if using a macro made on a version of SolidWorks newer than you are using.

Conversely, errors can be caused by having conflicting libraries loaded at the same time (i.e., having too many libraries).  No errors will appear in the reference library list.  If you are certain the correct library is loaded already, trying removing other SolidWorks related libraries one by one until the issue is resolved.

Also, the correct reference library may not be loaded at all. Research the line of code causing the error to make sure the correct reference library is loaded to support those instructions.

Additionally, if a macro was made on a newer version of SolidWorks than what you are currently using, its instructions may not be supported at all on the system running the older version of SolidWorks. In this case, you will need to find an equivalent API method for the older SolidWorks version, if one exists.

If the macro does not use Forms, a quick way to make sure you are using current reference libraries is to simply cut and paste the complete code from the existing macro file to a new one created fresh on your system. Often, this will fix any mismatched reference libraries, but it might still require research to make sure all the necessary reference libraries are loaded for that macro.

Sub-Modules
When executing the macro, make sure you specify the “Main” sub-module as the starting point. This is the section of code following the line “Sub Main ()”. Most macros are set up with Main as their starting sub-module. This is usually a fix if you are having issues associating your macro with an icon on a Toolbar, assigning a shortcut key, or trying to execute the macro from within another macro.

If the macro does not have a Main sub-module, then you may need to study the macro to discover which sub-module is meant as the starting point.

Copying code from online or plain text source
Sometimes when code appears in plain text, such as in a .txt file or from a forum online, it may not be formatted properly. Some of the lines may be too long for the plain text source, so they are line broken. This will disrupt the code, as SolidWorks API will misunderstand the instructions. When copy and pasting code from a plain text source, make sure to go over the code to insure all the lines are properly reconstructed by removing erroneous line breaks.

Sources for help
If issues are still occuring, contact the author(s), if available. Also, make sure to read over the material and examples provided in the SolidWorks API Help file included with SolidWorks. If those do not completely solve the issue, then search over various online forums dedicated to SolidWorks and SolidWorks API support. Many of these forums are listed under Forum Links.  If the search doesn’t resolve the issue, then post a question on those forums detailing the issue and requesting help from other SolidWorks users. You may also contact your VAR, as the issue you are having may actually be a bug or known issue in the SolidWorks API system itself.

As a drafter, mechanical designer and CAD engineer, I’ve been in the mechanical design field since 1991.

For the first 8 years of my career, I was an AutoCAD professional. I utilized AutoLISP and many other AutoCAD customization features to streamline drafting activities for 6+ drafters and designers. I authored several custom functions, one of which was published in the March 1997 issue of Cadalyst Magazine.

Since 1998, I’ve been used SolidWorks non-stop. I’ve worked to utilize the SolidWorks’ user environment to simplify drafting and design activities for 20+ engineers. I’ve created this website to provide current information about SolidWorks from a variety of contributors.

More recently, I am now employed by Dassault Systemes as SOLIDWORKS Sr. Product Definition Manager to improve drawing, annotation and MBD related areas.
View all posts by fcsuper

Понравилась статья? Поделить с друзьями:
  • Solidworks возникла непоправимая ошибка менеджера установки
  • Solidworks simulation ошибка предобуславливания
  • Sony a65 ошибка фотоаппарата
  • Solidworks flexnet server ошибка 5
  • Sony a6000 ошибка фотоаппарата