30.07.2013 Views

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Macros<br />

The namespace approach is not a requirement in any way. However, this<br />

approach can be helpful when working with a large number of macros. If, on the<br />

contrary, there are few macros in a Project, and those macros all belong to one<br />

class, then their appearance in the «Macros» window will be much simpler.<br />

To create a new project, you just need to create a new T-<strong>FLEX</strong> <strong>CAD</strong> file. When opened in the macro editor,<br />

this project will contain only references. At that time, the user will need to select the programming language,<br />

which will be used for writing the macro. For this, use the project properties.<br />

Project Properties<br />

To access project properties, you can use the following option of the macro editor:<br />

Project Properties<br />

This command can also be accessed from the context menu by<br />

right clicking over the Project in the «Projects» window.<br />

After calling this option, a dialog appears with the properties of<br />

current project. The Project name is displayed in the «Project»<br />

box of the dialog. The field «Document» displays the name of<br />

the T-<strong>FLEX</strong> <strong>CAD</strong> file that contains the current project.<br />

The «Language» combo box provides selection of the<br />

programming language, which will be used in the Project.<br />

Currently, the polling programming languages are available for<br />

selection: Visual Basic, C#.<br />

Upon clicking the button [Edit], a dialog will appear with the list of the current project methods. Working<br />

with this dialog is described in the macro launching section.<br />

If modules already exist in the Project, then a warning about those modules becoming outdated will<br />

appear upon changing the programming language, offering to delete those.<br />

745

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!