Цитата(cniism @ Sep 10 2013, 11:19)
А ещё раз можно выложить материалы по скриптам в DxD в частности - Expedition PCB Flow Automation & Scripting
Solution
DxDesigner Automation Documentation and Reference Material
Documentation on DxDesigner automation methods and properties
iCDB Flows
For documentation on DxDesigner automation methods and properties in the iCDB flows please refer to the DxDesigner Automation Reference, %SDD_HOME%\..\docs\pdfdocs\dxdesigner_auto.pdf. For a depiction of the DxDesigner Automation Object Model, please refer to the DxDesigner Automation Model. %SDD_HOME%\..\docs\pdfdocs\dxdesignerautomationoverview.pdf
pre-iCDB Flows
For documentation on DxDesigner automation methods and properties in the pre-iCDB flows (version 2005.x and earlier), please refer to the vdauto.hlp file in %SDD_HOME%\wv\help. Although there have been additions and changes with the transition to the iCDB flow, most of the methods and properties described in vdauto.hlp are still available in the iCDB flow.
For either flow - Using the Visual Basic Editor to determine the syntax for methods and properties
To determine the syntax for the methods and properties associated with DxDesigner, another option is the object browser in the Visual Basic Editor, which is available in Microsoft Office Applications. The steps to open the Visual Basic Editor depend on the version of Microsoft Office.
In Microsoft Word 2003 use Tools > Macro > Visual Basic Editor
In Microsoft Word 2007, enable the Developer tab by clicking the Microsoft Office button > Word Options > Popular > Enable Show Developer tab in the Ribbon. Then click the Developer Tab > Visual Basic to open the Microsoft Visual Basic window.
In Microsoft Word 2010, enable the Developer tab by clicking File > Options > Customize Ribbon. That opens the Word Options dialog. In the Customize the Ribbon panel on the right side of the Word Options dialog, add a check mark next to Developer. Then click the Developer Tab > Visual Basic to open the Microsoft Visual Basic window.
Once you have the Microsoft Visual Basic window open, click F2 (or View > Object Browser), then click Tools > References, Scroll down to find and put a check mark next to ViewDraw, then click OK. In the Object Browser drop down list in the upper left, select ViewDraw. The object browser then displays the methods and properties for various ViewDraw (DxDesigner) objects. The Visual Basic Editor is also available from Excel, Access and PowerPoint, by following similar steps.
Using VBScript and DxDesigner Forms
There are a number of resources supporting VBScript, so it is easiest to get started by using VBScript initially.
Microsoft Windows Script 5.6 Documentation, describes how to use the basic VBScript objects, methods and functions. This document can be downloaded from Microsoft’s website at www.microsoft.com. Search for “Windows Script Documentation” and download the file script56.chm.
In general, forms are a great resource for developing and debugging snippets of code. Forms provide easy access to the Application object and the limited completion feature shows the methods and properties for that object. Forms are created in Pre-iCDB DxDesigner using File > New > Scripting Form and in iCDB DxDesigner using File > New > Script Form. Forms support VBScript, and once the code is debugged in a form, it can be incorporated into more complex scripts or converted for use in other languages, for example C++.
A series of videos that introduce beginners to the use of Dx Forms
Approved video icon Video: Making a Hello World Form This 5 minute video illustrates making a form that displays a "Hello World" message. For more detail on making a similar script see AppNote 10056: Getting Started With Scripting - The Design of a Simple Form.
Approved video icon Video: Reporting Properties with a Form This 12 minute video illustrates making a form that reports the values of Properties on components.
A series of AppNotes that introduce beginners to the use of Dx Forms
AppNote 10056: Getting Started With Scripting – The Design of a Simple Form
AppNote 10066: Getting Started With Scripting – The Design of a Form that Executes Commands.
AppNote 10104: Getting Started With Scripting – The Design of a Form Using a ComboBox
AppNotes that discuss more advanced topics
AppNote 10191: Using Scripts in Dx Forms - File Input/Output
AppNote 10211: A Form–based Illustration of the DxDesigner Object Model
AppNote 10244: Launching Dx Tools Using Scripts
Examples of Forms and Scripts
Working examples are provided in the form of numerous .efm files and .vbs files in the installation directory:
Dx forms (.efm files) in %SDD_HOME%\wv\samples\viewdraw\scripting
VBScript .vbs files within the directories under %SDD_HOME%\standard\examples\pcb\Automation.
DxTopics New IconRelated TechNotes
These TechNotes include script examples or links to scripts.
Adding Lines
TechNote MG540579: Adding a Line With a DxDesigner Script
Using environment variables:
TechNote MG77764: Environment Variables in DxDesigner Automation
Using the gauge object:
TechNote MG78858: Using Dynamic Gauge Objects In a DxDesigner Form
Using the gauge and Variable Text object
TechNote MG78663: Using Gauge And Variable Text Objects In A Form
REFDES assignment
TechNote MG522864: Using Automation to Reset All Ref Designators on a Schematic Sheet
Accessing Central Library data:
TechNote MG542604: Using a Script to Extract Symbols, Part Number and Other Properties from a Central Library
remove XREFS
TechNote MG544322: Removing XREF Properties with a Script (iCDB)
nse - New Symbol Editor
MG244101: Using Scripts with nse, the New Symbol Editor
Additional Reference Material
For Expedition customers, another resource is the Automation Documentation for Expedition PCB. It contains a number of useful working examples. Although they are not DxDesigner examples, the Expedition examples can be used to infer how to use scripting in a general way.
A general reference for VBScript and Visual Basic is available at this link to the MSDN Visual Basic Language Reference.
http://msdn2.microsoft.com/en-us/library/d1wf56tt.aspxThe U2U conference frequently has sessions that focus on Automation/Scripting. The link is www.mentor.com/user2user.
There is a DxDesigner User group, the DxDesigner_Users forum, that occasionally discusses Scripting issues. The link is
http://tech.groups.yahoo.com/group/DxDesigner_Users/.
There is an Automation and Scripting Community in the Mentor PCB Community site:
http://communities.mentor.com/mgcx/community/pcb.
Related to this TechNote
MG75441 Is There a Macro Play and Record Feature in DxDesigner