TubeCAD Define command

From ATTWiki
Jump to: navigation, search

This command allows you to enter Layout XYZ* coordinates directly in the command line and will allow other devices to stream centerline Layout XYZ* coordinates into TubeCAD from an external source. *It is always the LAYOUT coordinates that change - never the DESIGN coordinates. The values changed are found in the General Specification menu.

The MicroScribe measuring arm (from Immersion) can collect points in 3D space, inputting them into TubeCAD using the format in this command.

Microscribe.jpg


Contents

Editing the Points

Enter "Define" in the command line and press Enter.

Either enter "P" and enter, or click on the Points option in the popup menu.

Definepopup.jpg


You will see a command bar like this:

Define01.jpg


To change the first point and move to the second, enter the values starting with the X value, then a semicolon ";", then the Y value, etc. The three values shown here X, Y, Z, and Radius values:

20;10;-5;0

  • X = 20
  • Y = 10
  • Z = -5
  • Radius = 0


Define02.jpg


Moving to the Next Coordinate Point

Press the Enter key to move to the next point. If the next point index is too high for the currently defined number of points, then TubeCAD will add a new point row in the Layout XYZ coordinates.

Define03.jpg


Entering Partial Values

You don't have to change the values as shown inside the square brackets. For example, you may want to change the X coordinate of point 2 to 100, but leave the other values at zero. Just enter a "100" in the command line then press Enter:
Define04.jpg


After you press Enter this is what you will see:
Define05.jpg


Now, enter the "<" symbol and press enter to move back to the second point.
Define06.jpg

You will see the second point X value has been changed.
Define07.jpg

The "@" Symbol

The @ symbol can be used to preserve values on any line. Suppose you want to preserve the "100" for the X value in point 2. However, you want to change the Y value to something new. Use the @ symbol like this to preserve the 100:


Define08.jpg

Now press Enter and then press "<" and then Enter again.


The Y value in point 2 is changed, while preserving the X value:
Define09.jpg


Note also that we never entered the Z or Radius values. TubeCAD only took in as much data as you gave it, then ignored the rest.

Exiting the Command One Level

You can stay in the Define command, but display the [[Points, Diameter] options, by press Enter with no value entered.


Completely Exiting the Command

Press Escape any time to completely exit the command.


Extra Lines at the End

TubeCAD will always act as if you added one extra line at the end of the XYZ data when you use this mode. So, it will be necessary to delete the last line in the General Specification Layout XYZ data when you are finished entering data here.

Complete Example of Entering Data Using the Define Command

Here's an example of how to build a layout using this command:

  • Clear the TubeCAD layout for MM by pressing the document with the red ball.
  • Enter "define" in the command line and press Enter
  • Enter "P" and press Enter
  • Enter "@", press Enter
  • Enter "100", press Enter
  • Enter "100;100", press Enter
  • Enter "200;100", press Enter
  • Press Escape
  • Press the GS toolbar button
  • Click on the Layout XYZ tab

You will see these values in the menu:
Define10.jpg

Note that the number of points is 5 because TubeCAD entered one more point than you entered.

  • Select the Number of points edit box and press 4 to trim the last line from the data.
  • Press Enter

Define11.jpg

  • Enter radius values of 25 in both radius cells

Define12.jpg


  • Click on the General tab
  • Reset the diameter values (all of them) to 19
  • Press the OK button

Define13.jpg

Define14.jpg

  • Type "auto" and Enter
  • Type "4" and Enter (this will automatically reorganize the layout)
  • Type "zoom" and Enter
  • Type "e" and Enter

Your layout will appear something like this:
Define15.jpg