ASSIGN_FIELD_VALUE_BBDD_ENTITY
Assign a new value to a database field for an entity.
Parameters
| Parameter number | Description | Optional |
|---|---|---|
| 1 | Code | No |
| 2 | Field name | No |
| 3 | Value | No |
Notes
When run, the command checks that all three parameters were supplied, that the code has an associated database table in the code table, that the table exists in the database schema, and that it contains the specified field. If any check fails, it displays an error message and ends.
The command then prompts you to select an entity. Only entities in the current model with the specified code can be selected. The command converts the value to the field's existing type, assigns it to that field in the specified code's attributes on the selected entity, and ends.
If Digi3D.AI rejects the entity with the modified attribute (for example, due to a database or extension constraint), the original entity is preserved unchanged.
Command characteristics
| Command type | Interactive command |
|---|---|
| Repeats automatically | No |
| Menu option | This command has no associated menu option |
| Toolbar | This command has no associated toolbar button |
| Extension | DigiNG.OrdenesBaseDatos.dll |
| Implementation | Native |
| Related variables | No related variables |
| Related commands | ASSIGN_ANGLE_ATTRIBUTE ASSIGN_AZIMUTH_ATTRIBUTE ASSIGN_DISTANCE_ATTRIBUTE CHANGE_DDBB_VALUES COPY_BBDD_ENTITY_ATTRIBUTE_TO_ENTITY |
| Internal name |