| Importing Points, Lines, and Splines to Alibre Design |
|
|
Using Point Import Wizard for Alibre Design, you can easily import large sets of points as points, connected lines, or as a b-spline of configurable polynomial order on to either an existing sketch or a new sketch based on a design plane. IMPORTANT NOTE: The screen shots in this tutorial were taken before a change in the user interface. Details about this change can be found on this thread in the support forum. ![]() Getting Set UpIf you don't already have Alibre Design, you can get it here -- either by downloading the a free version of their software called Alibre Design Xpress, or by selecting a version below to purchase from Amazon.com. You must have Alibre Design installed and running for this application to work. This application was built on the Microsoft .Net 2.0 framework. It requires Windows with .Net 2.0, which can be installed with Microsoft Update or by visiting Microsoft and searching for "Installing .Net 2.0". The .Net 2.0 framework is free, easy to install, and it only needs to be installed once to allow these any many other applications to run. It is installed by default with Windows Vista. Finally, the application uses a relatively new deployment technology from Microsoft called "Click Once," which makes it easy for you to download and install applications, and make sure you always have the latest version available. If you're using Internet Explorer, simply click on the download link, and then then follow the instructions to install. If you're using Firefox, be sure you have the Firefox Click Once Extension installed before clicking the download link. Once the application is installed on your computer, it will be available from your Windows Start menu (whether or not you're online) by browsing to All Programs > plans.theFrankes.com (or All Programs > CodeCreations for some recently updated versions). So to recap:
Download, install, and register Point Import Wizard for Alibre Design now! Getting StartedStart up Alibre Design or Alibre Design Xpress and create a new, empty part. Then from the Windows Start menu, browse to All Programs > plans.theFrankes.com > Point Import Wizard for Alibre Design You should see a screen similar to this. (Except if you haven't yet registered, you'll also see a picture of the boy who will benefit from your product registration.) IMPORTANT NOTE: The screen shots in this tutorial were taken before a change in the user interface. Details about this change can be found on this thread in the support forum.
![]()
This window shows you the parts you currently have open in Alibre Design sessions, as well as the design planes and sketches for each part. For this example, select the XY-Plane in the Sketch or Plane box (you may need to expand some of the tree nodes), and enter the five X,Y coordinates shown below. Ensure that Points is selected in Import Points As, and that the Units box shows Centimeters (cm), as show here. We're using very simple coordinates in these examples, so it's important to note that Point Import Wizard accepts decimal numbers with an approximate range of +/-1.5e-45 to +/-3.4e38. Also you can import hundreds or thousands of points at a time, and if the processor gets bogged down with extremely large imports, you can easily break down the task into smaller batches because the tool can import any number of sets of points, lines, or spline into a single sketch. Now click Import, and you should see a small window appear that tells you haw many points were imported, as well as what the minimum and maximum X and Y values were. For very large sets of data, this can be used as a sanity check. For example, if I know my part should only be about five centimeters square, then the Max Y value of 19 should raise a red flag. If you switch over to your Alibre Design session, you'll see that a new sketch has been added that is based on the XY-Plane, and that it not contains the five points you imported (first illustration below). (You may need to edit or activate the sketch in order to see the points.) Similarly, you'll see that Sketch<1> has also been added to the Point Import Wizard Sketch or Plane box, as shown in the second screen shot below. Working with UnitsPoint Import Wizard allows you to import points that are based on a wide variety of units of measure, including
The application will convert points in any of these units to the units of the units you're using in your Alibre Design session. LinesPoint Import Wizard also allows you to import the same set of points multiple times, to any sketch (new or existing), or to any design plane. In the case of design planes, Point Import Wizard will create a new sketch based on the plane you select, as you say in the example above. For this example, we'll use the same set of points we entered above, and add them as connected lines to Sketch<1>, which we created above. We'll also cause the lines to be scaled to inches. Select Sketch<1> in the Sketch or Plane box, select Inches (in) from the Units drop-down box, select Lines in the Import Points As section. Leave the same points you entered above in the Points to Add section, and click Import. If you get an error message at this point, if may mean that Sketch<1> is activated in an Alibre Design session. When you're working with an activated sketch, Alibre Design essentially "locks" the sketch so that other application cannot access it. Just be sure the sketch is not activated (see the illustration below) and click Import to try again. (Point Import Wizard tries to catch lots of errors like this so that it doesn't just crash when it encounters something unexpected.) Next, you should see the "Import successful" dialog with information about the lines you just imported. In this case there were four lines described by five points. Switch back to Alibre Design, and you'll see the lines you added. Note that the points that define the lines are scaled larger than the original points. This is because for this example we assumed the points were in inch units as opposed to centimeters. You can have Point Import Wizard connect the start point to the end point by simply adding the start point again to the end of the point list. b-SplinesNext we'll import the same points as the control points for a basis spline (b-spline), except this time on a sketch based on the ZX-Plane. Select ZX-Plane in the Sketch or Plane box, and select Curve (B-Spline) in the Import Points As area. Leave everything else the same and click Import. Switch back to Alibre Design and turn the part until you see the curve on the ZX-Plane. Point Import Wizard allows you to specify the polynomial order of the b-spline it produces, and it uniformly distributes spline knots. The higher the order, the smoother the curve because each knot of the curve is affected by more control points. With an order of 2, the b-spline is essentially a set of connected lines, but with an order of 4 (the default for Alibre Design), the curve is much smoother. Change the order to 3 as shown below, select the sketch you created with the first b-spline import above, and click Import again. Note that the result is not as smooth as the first. This is because the order is a lower number. Loft Using Data From ExcelNow let's create a loft across sketches on two different planes. First Select the YZ-Plane and change the Points to Add to the five points shown in the screen shot below. Note that the first and last points are the same, which means that the lines will create a closed figure (a square in this case). Click Import to add the lines to a new sketch on the YZ-Plane. The Sketch or Plane portion of the window will be refreshed and the new sketch will be listed. Next, go back to Alibre Design and insert a new plane that is offset 2 inches from the YZ-Plane. When you switch back to Point Import Wizard, you'll notice that the change you just made is not automatically reflected in the Sketch or Plane area. (This is due to a technical flaw in the way Alibre Design attempts to inform other applications of what it's doing.) To see the plane you added, refresh the part list in Point Import Wizard by selecting Refresh Part List from the Tools menu. Now open up a Microsoft Excel spread sheet that has point data. In this case it's a simple spreadsheet that contains all the coordinates required to draw a 4-by-4 square. Select only the point data (the range B4:C7 in this example) and copy that data to the clipboard (Ctrl-C). Switch back to Point Import Wizard, delete any text that may already be in the Points to Add text box, and paste the data you copied from Excel (Ctrl-V). Note that the columns are separated by tabs. Add the first point again to the end of the list so that a line will be drawn from the last point back to the first. You don't need to add a tab between the columns. In fact the Point Import Wizard is fairly forgiving in this respect; it will ignore leading and trailing white space, parentheses, brackets, braces, greater-than and less-than symbols, and forward slashes, and will accept as delimiters a comma, semicolon, colon, space, tab, or pipe (vertical line). It will also ignore empty lines and lines that it cannot parse as a pair of coordinates. For example, the data shown below is perfectly acceptable. Be sure to select the new plane (Plane<1>) as shown above and click Import. You'll end up with two figures on two different planes separated by two inches. Next, in Alibre Design, use the Loft Boss to create the loft feature. Customizing Point Import WizardIf you usually use a specific unit of measure, a certain spline order, or have gotten tired of all the pop-up help bubbles, there are several properties you can change and save so the next time you use Point Import Wizard, it will be set up the way you want it. You do this by selecting Save Settings As Defaults from the File menu. There are the settings that are saved:
And Don't Forget...Registering this software with even a small contribution will help a bright young boy have an even brighter future. |
|
| Last Updated ( Monday, 11 February 2008 18:02 ) |


