file command write
Allows you to write a command file from an existing Adams View model.
Adams View will create a file that contains all the commands necessary to create the model you specify with the parameter entity_name. This will allow you to move the model from the computing platform you are currently on, to another computer from a different hardware vendor.
Format:
file command write |
|---|
entity_name = | an existing model |
file_name = | string |
use_parasolid = | as_is/full |
Example
file command write & |
|---|
entity_name = | .model_1 & |
file_name = | mymodel_1.cmd & |
use_parasolid = | as_is |
Description:
Parameter | Value Type | Description |
|---|
entity_name | an existing model | Specifies an existing model to be written as Adams View command file. |
file_name | string | Specifies the name of the file that is to be written. |
use_parasolid | as_is/full | Allows you to write the geometric definition of an Adams model in Parasolids file format or in Adams View command language format. |
Extended Definition:
1. The proper extension in the file_name parameter is the default (.cmd), but you can override it by supplying a different extension.
It is not necessary 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 file name in quotes.
2. You may identify a model by typing its name or by picking it from the screen. If the model is not visible on the screen, you must type the name. You may also find it convenient to type the name even if the model is displayed.
You must separate multiple model names by commas. If the model 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 model picks by commas.
3. For the use_parasolid value select either:
a. As is - Adams View exports any geometry that was imported from a Parasolid file out to a Parasolid file when it writes the command file. The command file references the newly created Parasolid file. All other geometry (for example, cylinder, shell, and spring-dampers) are defined using Adams View command language and included in the command file.
b. Full - Adams View exports all static geometry to Parasolid files instead of using Adams View command language. This includes cylinders, shells, Parasolid, solids, and so on. It does not include dynamic outlines, spring-damper graphics, and graphic force vectors. These graphics continue to be defined in the Adams View command language.
4. The commands written to the file may or may not be in the order you originally entered them. Adams View writes out the commands in the following order.
a. Units for the model.
b. The model create command.
c. The Parts
The attributes of the part.
The markers belonging to the part.
The attributes of the marker.
The geometry belonging to the part.
The attributes of the geometry.
d. The constraints.
The attributes of the constraint.
e. The Forces.
The attributes of the force.
f. The Dynamic geometry. Geometry that spans two different parts.
The attributes of the geometry.
g. Acceleration due to gravity.
h. Adams Analysis Settings.