• No results found

Calling up PDM functions via command

In document TruTops Help (Page 46-54)

1. Basics

1.9 Calling up PDM functions via command

command prompt/scripts (pdmCLI.exe)

The following PDM functions can be called up via the Windows command prompt or can be executed in an automated manner via script files (*.bat).

Function Command Comment

Exporting files/directories from a directory Get (see "Importing/exporting files and folders (PDM)", pg. 67)

Importing files into a folder Put (see "Importing/exporting files and folders (PDM)", pg. 67)

Deleting files from a folder Delete (see "Examples of PDM functions which can be performed with pdmCLI.exe", pg. 35)

Listing files in a folder List (see "Examples of PDM functions which can be performed with pdmCLI.exe", pg. 35)

Generating lists of attributes ListAttributes (see "Examples of PDM functions which can be performed with pdmCLI.exe", pg. 35)

Creating a new (sub) folder Mkdir (see "Examples of PDM functions which can be performed with pdmCLI.exe", pg. 35)

Deleting an empty (sub) folder Rmdir (see "Examples of PDM functions which can be performed with pdmCLI.exe", pg. 35)

Copying a file or folder into a target folder Copy (see "Examples of PDM functions which can be performed with pdmCLI.exe", pg. 35)

Moving a file or folder into a target folder Move (see "Examples of PDM functions which can be performed with pdmCLI.exe", pg. 35)

Determining file properties and dependencies again

Rescan (see "Examples of PDM functions which can be performed with pdmCLI.exe", pg. 35)

Executing commands contained in a script file

Batch (see "Examples of PDM functions which can be performed with pdmCLI.exe", pg. 35)

Calling up help for pdmCLI.exe

1. Start Windows command prompt.

2. Change to the '…:\TRUMPF.NET\Utils\PDM2\bin' folder.

3. Enter the following command:

pdmCLI.exe –h

Help for pdmCLI.exe is displayed:

Tab. 2

Help for pdmCLI.exe

4. To call up help for a specific command (e.g. "Put"), enter the following command:

pdmCLI.exe –h Put

Help for the specific command is displayed:

Help on the "Put" command

Fig. 43561

Fig. 43562

Examples of PDM functions which can be performed with pdmCLI.exe

Notes

• When entering the commands in the prompt or in the script files, write everything in a single line.

• Be sure that slashes or backslashes and spaces are correct.

• Replace server name with the actual name of the server.

• The commands listed in the examples are distinguished only by the parts highlighted in bold. Everything before and after it remains the same.

1. Either

¾ Start prompt from Windows.

¾ Go to the '…:\TRUMPF.NET\Utils\PDM2\bin'' folder.

or

¾ Write cd C:\TRUMPF.NET\Utils\PDM2\bin in a self-written BAT script file (*.bat).

¾ Add the following (exemplary) command lines.

2. To delete the 'box.mi' file in the '/TRUMPF.NET/ TEST_DIR_1/' folder, enter the following command:

pdmCLI.exe Delete /TRUMPF.NET/ TEST_DIR_1/

box.mi --service-name=TruTopsPDM2 --port-addre ss=servername:9999

3. Press <Enter> or <Return> (↲ ).

4. To list all files in the '/TRUMPF.NET/ TEST_DIR_1' folder, enter the following command:

pdmCLI.exe List /TRUMPF.NET/TEST_DIR_1 --servi ce-name=TruTopsPDM2 --port-address=servername:

9999

5. Press <Enter> or <Return> (↲ ).

6. To create a list of attributes, enter the following command:

pdmCLI.exe ListAttributes --service-name=

TruTopsPDM2 --port-address=servername:9999 7. Press <Enter> or <Return> (↲ ).

Opening prompts, creating script files

Deleting file

Listing files in a folder

Creating a list of attributes

8. To create a folder '/TRUMPF.NET/TEST_DIR_1', enter the following command:

pdmCLI.exe Mkdir /TRUMPF.NET/TEST_DIR_1 --serv ice-name=TruTopsPDM2 --port-address

=servername:9999

9. Press <Enter> or <Return> (↲ ).

10. To delete the folder '/TRUMPF.NET/TEST_DIR_1', enter the following command:

pdmCLI.exe Rmdir /TRUMPF.NET/TEST_DIR_1 --serv ice-name=TruTopsPDM2 --port-address

=servername:9999

11. Press <Enter> or <Return> (↲ ).

12. To copy the 'box.mi' im Ordner '/TRUMPF.NET/ TEST_DIR_1' file into the '/TRUMPF.NET/ TEST_DIR_2' folder, enter the following command:

pdmCLI.exe Copy /TRUMPF.NET/TEST_DIR_1/ box.mi target-directory=/TRUMPF.NET/ TEST_DIR_2 --service-name=TruTopsPDM2 -- port-address

=servername:9999

13. Press <Enter> or <Return> (↲ ).

14. To copy all files from the '/TRUMPF.NET/ TEST_DIR_1'' folder into the '/TRUMPF.NET/ TEST_DIR_2' folder, enter the following command:

pdmCLI.exe Copy /TRUMPF.NET/TEST_DIR_1 --targe t-directory=/TRUMPF.NET/TEST_DIR_2 --service-n ame=ToPs_PDM --port-address =servername:9999 15. Press <Enter> or <Return> (↲ ).

16. To move the 'box.mi' file from the

'/TRUMPF.NET/TEST_DIR_1/' folderto the '/TRUMPF.NET/TEST_DIR_2' folder, enter the following

command:

pdmCLI.exe Move /TRUMPF.NET/ TEST_DIR_1/ box.m i targetdirectory=/TRUMPF.NET/ TEST_DIR_2 --service-name=TruTopsPDM2 -- port-address

=servername:9999

17. Press <Enter> or <Return> (↲ ).

18. To move the '/TRUMPF.NET/TEST_DIR_1' folder to the '/TRUMPF.NET/TEST_DIR_2' folder, enter the following command:

pdmCLI.exe Move /TRUMPF.NET/ TEST_DIR_1 --targ Creating a new (sub) folder

Deleting a (sub) folder

Copying a single file into a different folder

Copying several files into a different folder

Moving a single file into a different folder

Moving a folder

20. Enter the following command:

pdmCLI.exe Rescan servicename=TruTopsPDM2 --port-address=servername:9999

21. Press <Enter> or <Return> (↲ ).

Redefining file properties and dependencies

1.10 Characteristics: a property of elements and contours

A characteristic is a property which one or more elements or one or more contours possess.

Characteristics are created in TruTops CAD, saved in the geo file and can be evaluated in other TruTops applications.

Advantages:

• Rows of holes and hole grids can be machined more easily:

Rows of holes that have been created in TruTops CAD through

>Create >Macros >Row of hole can also be evaluated in other TruTops applications. The conversion into rows of holes is no longer required. As a result, it is also possible to create rows of holes which are not axially parallel. The NC program is shortened.

• In TruTops CAD, Geometries with the characteristic Property are interpreted as a unit. All actions are applied to the entire unit, reducing the drawing effort considerably.

Switching "Characteristic fixed" on or off - TruTops behavior

"Characteristic fixed" is active:

• Certain elements are combined to form a unit with the characteristic property. If the "Characteristic fixed" is active, then a certain action is applied either to the complete unit (i.e.

to all elements) or the action is rejected.

For example, a single element of the "Single square hole" unit cannot be deleted. The entire single hole is deleted.

• All impermissible actions result in the contour or the element being displayed in pink. The colored highlight is kept up to the next redrawing.

Examples:

A single stroke cannot be stretched. The single stroke is displayed in pink.

It is not possible to shorten elements for single strokes. The elements are displayed in pink.

• Clicking on an element results in the selection of the entire unit (all elements). When boxing in an element using the mouse, an action is executed only if the entire unit has been boxed in.

"Characteristic fixed" is not active:

• If "Characteristic fixed" is not active, the elements of contours can be arbitrarily modified with the Property characteristic. A single element of the single square hole can be deleted, for example. During modification, the Property characteristic is lost and the display color "orange" is reset to the normal line color.

Example "Characteristic

fixed" Delete Effect

Active Not active.

Element Contour

X X The entire single hole is deleted.

X X The entire single hole is deleted.

X X The single element of the single hole is deleted.

The display color changes from orange to the normal line color. The characteristic is dissolved.

Single square hole

X X The entire single hole is deleted.

X X The entire row of holes is deleted.

X X The row of holes remains unchanged.

The clicked contour of the row of holes is displayed in pink.

If the drawing is updated ( ), the original state is restored.

X X The clicked element of the contour is deleted.

The remaining holes are assembled into smaller rows of holes.

(Example: row of holes with 10 holes, an element of hole 3 is deleted: one of the new rows of holes consists of holes 1 and 2, the other consists of holes 4 to 10.)

Row of square holes

X X The clicked contour is deleted.

The remaining holes are assembled into smaller rows of holes.

(Example: row of holes with 10 holes, an element of hole 3 is deleted: one of the new rows of holes consists of holes 1 and 2, the other consists of holes 4 to 10.)

1. Select >Edit >Characteristic fixed.

or

¾ Select Fix characteristics . (If "Characteristic fixed" is activated, the button is pressed).

2. Select Highlight characteristics .

The characteristics are displayed in orange.

3. Select >Edit >Delete >Characteristics.

or

¾ Select Delete characteristics .

Tab. 3

Switching "Characteristic fixed" on and off

Highlighting characteristics

Removing characteristics

Notches: Advanced options through the

"Characteristic" property

The "Characteristic" property automatically increases the number of options for shaping and processing notches:

• Notches can be enhanced by roundings, bevels or sub-notches.

• Roundings, bevels, separating cuts or sub-notches can be removed from a notch. TruTops CAD joins adjacent notch elements automatically.

• If a notch is deleted entirely, the adjacent elements are joined again.

• Notches can be copied, moved, rotated, mirrored and stretched.

• The length of end elements of notches can be changed.

1.11 Screen display

In document TruTops Help (Page 46-54)