Adams Basic Package > Adams View > View Command Language > file > file stereo_lithography read

file stereo_lithography read

Allows you to import stereo lithography (SLA) geometry into Adams. As you import the SLA geometry, you associate the geometry with an existing part or you create a new part with which to associate it.

Format:

 
file stereo_lithography read
file_name =
string
part_name =
an existing part
scale =
real
relative_to =
an existing model, part or marker
orientation =
orientation
location =
location

Example:

 
file stereo_lithography read &
file_name =
"c:\mydir\desktop\steriolitho" &
part_name =
ground &
scale =
2 &
location =
2,90,50

Description:

 
Parameter
Value Type
Description
File_name
String
Specifies the name of the file that is to be read, written, or executed
part_name
An Existing Partf
Specifies the name of an existing Adams View PART onto which the translated geometry will be placed
scale
Real
Specifies the scale factor to be applied to the size of the geometry created in Adams View
location
Location
Specifies the translational position where the geometry in the IGES file is to be located relative to the Adams View part lprf
orientation
Orientation
Specifies the angular position where the geometry in the IGES file is to be oriented relative to the Adams View part lprf
relative_to
An Existing Model, Part Or Marker
Specifies the coordinate system that location coordinates and orientation angles correspond to
 
Note:  
Only ASCII STL files can be imported in Adams View. Binary STL is not supported.

Extended Definition:

1. The proper extension is the default but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory paths, you must enclose the name in quotes.
2. The geometry may be placed upon a part and used for preprocessing and postprocessing. Markers created by the IGES translator will be located on the part specified in this parameter.
You may identify a part by typing its name or by picking it from the screen.
If the part is not visible on the screen, you must type the name. You may also find it convenient to type the name even if the part is displayed.
If you created the part by reading an Adams data set or graphics file, the part name is the letters PAR followed by the Adams data set part ID number. For example, the name of Adams PART/101 is PAR101. If you created the part during preprocessing, you will have given it a name at that time.
If a part is available by default, you may identify it by entering only its name. If it is not, you must enter its full name. To identify a part under another model, for instance, you may need to enter the model name as well. For example, you may specify part 'arm' from model 'robot' by entering ".robot.arm". If you type a "?", Adams View will list the parts available by default.
You must separate multiple part names by commas.
If the part is visible in one of your views, you may identify it by picking on any of the graphics associated with it.
You need not separate multiple part picks by commas.
3. The default scale factor is 1.0. If the scale factor of 1.0 is used the geometry created in the Adams VIEW will be the same size as the geometry in the IGES file. A scale factor less than 1.0 will reduce the size of geometry and a scale factor greater than 1.0 will increase the size of the geometry. For example, assume the scale factor specified is 0.5, a cylinder of length 2 meters and diameter .5 meters would be translated to Adams View with the length of 1 meter and diameter of .25 meters. The distance from geometry to the RELATIVE_TO coordinate system will be scaled accordingly. If the previously mentioned cylinder was located at 3,2,0 in the IGES file, it would be located at 1.5,1,0 after it is translated to Adams View.
The orientation of the geometry is not affected by the SCALE parameter.
4. These coordinates can be relative to any other coordinate system defined in the Adams View model (See the RELATIVE_TO parameter for this command).
By default, you supply Cartesian (x, y, z) coordinates. You may use the 'defaults units coordinate_system_type =' command to change this convention. For example, selecting 'cylindrical' means you will subsequently be supplying r, theta, and z coordinates.
5. These orientation coordinates can be relative to any other coordinate system defined in the Adams View model (See the RELATIVE_TO parameter for this command).
Adams View will orient the coordinate system by starting from the initial coordinate system and applying three successive rotations. Depending on the convention you have selected, the rotations may occur about space-fixed or body-fixed axes in any meaningful combination of the x, y, and z axes.
By default, you supply Euler (known as body313, or body-fixed z, x, z) angles. You may change this convention with the 'DEFAULTS UNITS ORIENTATION_TYPE=' command. For example, selecting SPACE123 means you will subsequently be supplying space-fixed x, y, and z, angles.
Adams View applies your orientation angles starting from the coordinate system you identify with the RELATIVE_TO parameter. The default for the RELATIVE_TO parameter is the default coordinate system.
6. Refer to the Appendix on "Specifying Locations and Orientations in Adams View" in the Adams View Users Manual for more information on the ORIENTATION parameter.
7. If relative_to parameter is not specified, the default coordinate system is used. The default coordinate system is initially your model, that is, the global coordinate system. You may change the default coordinate system using the 'defaults coordinate_system' command
.
Caution:  
File name required for file stereo_lithography read part_name