AD中导入PCB过程中出现Failed to add class member

项目场景:

项目场景:今天使用AD21绘制PCB过程中出现了一个比较奇怪的问题,问题具体就是在从原理图的器件更新到PCB验证变更时出现了Failed to add class member
在这里插入图片描述


问题描述

比较奇怪的是如果新建的PCB文件,在导入时不会存在这样的问题,而当导入过一次时,将原有的PCB元器件删除后,再重新导入时验证变更就会产生这样的问题,下面就是新建一个PCB文件重新导入时的场景,不会出现上述问题
在这里插入图片描述


原因分析:

这里我也参考了大佬们的博客,https://blog.csdn.net/qq_45876990/article/details/106761896
但是还是想弄清楚问题的原因,于是对比了二者不同的地方,在设计->类->Object Classes->Component,这一状态栏中可以发现
在这里插入图片描述
在这里插入图片描述
第一张图片是导入过器件的PCB文件,第二张是新建的PCB文件,二者对比发现,component class一栏已经添加了我们需要的component class,所以才导致添加class number失败。


解决方案:

上述分析完后,解决方案就显而易见了,一共有两种办法,

1.新建一个PCB文件,删除原有的文件,重新导入这个新建的PCB文件
2.将已经存在的Component class右键选中删除,如图中的keyboard和mainboard,然后重新导入

  • 20
    点赞
  • 79
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
ModelMaker Code Explorer: Delphi Refactoring made easy! As a Class Browser it shows classes (inheritance) and members (fields, methods, properties) in two filtered views, similar to the windows explorer. On the left the Explorer docked in the IDE editor. The Classes view (top) displays classes and inheritance relations for the current module. The Members view (bottom) show the filtered members for the selected class.Integrated with CodeGear Delphi 5 6 7 and Delphi 2005 2006 2007 2009 and 2010. Navigation features like Member search bar Member Favorites Navigation history help finding your way around in code. Code Explorer is fully Form Designer aware and, for example, has a special filter to suppress component fields and event handler methods. As a Refactoring Editor, it makes changing code easy and fast: Classes and members can be created and modified through drag and drop or by selecting options in dedicated dialogs. You to Refactor, edit, correct and delete existing classes and members just as easy as you created them. Cut,Copy and Paste let you pick up a class, properties and methods and duplicate them or move them to another class or module. Where necessary names and modifiers are automatically adjusted. Drag and Drop Members on a class to copy / move / convert them. For example: Drag interface members on a class to implement the interface (C#, pascal), Drag a module or local procedure on a class to convert it to a method (pascal) Use Editor Refactoring抯 to refactor an entity at cursor position or operate on selected code. For example press Ctrl Shift X to invoke Extract Method for the selected code. Configurable keyboard shortcuts make these refactoring-s available with just one keystroke. Common tasks like Add a Field, Modify a Property and Rename Local are all invoked with just one keystroke. Check a demo movie Beyond Templates demo movie with some editor enhancements. Advanced Code Sort and Rearrange features include: * Rearrange members in Members view using Drag and Drop in Interface and Implementation (pascal) rearrange modes. * Rearrange class members using predefined sorting schemes. * Sort class members according the customizable default scheme. * Sorting maintains Source Regions and optionally sorts inside regions * Sorting hints are emitted for classes not matching the default sorting scheme.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值